blob: f4ce177e6ce8944393407bcc6867d80b49b6c797 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_BWG_COMMANDS_H_
#define IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_BWG_COMMANDS_H_
#import "base/ios/block_types.h"
namespace bwg {
enum class EntryPoint;
}
// Commands relating to the BWG flow.
@protocol BWGCommands
// Starts the BWG flow.
- (void)startBWGFlowWithEntryPoint:(bwg::EntryPoint)entryPoint;
// Dismiss the BWG flow with a completion block.
- (void)dismissBWGFlowWithCompletion:(ProceduralBlock)completion;
// Attempts to display the automatic BWG promo depending on whether the active
// web state is eligible. If the page is ineligible, does nothing.
- (void)showBWGPromoIfPageIsEligible;
@end
#endif // IOS_CHROME_BROWSER_SHARED_PUBLIC_COMMANDS_BWG_COMMANDS_H_