chromium/ios/chrome/browser/ui/content_suggestions/set_up_list/set_up_list_default_browser_promo_coordinator.h

// Copyright 2023 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_UI_CONTENT_SUGGESTIONS_SET_UP_LIST_SET_UP_LIST_DEFAULT_BROWSER_PROMO_COORDINATOR_H_
#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_SET_UP_LIST_SET_UP_LIST_DEFAULT_BROWSER_PROMO_COORDINATOR_H_

#import "ios/chrome/browser/shared/coordinator/chrome_coordinator/chrome_coordinator.h"

#import "ios/chrome/common/ui/promo_style/promo_style_view_controller_delegate.h"

namespace segmentation_platform {
class DeviceSwitcherResultDispatcher;
class SegmentationPlatformService;
}  // namespace segmentation_platform

@protocol SetUpListDefaultBrowserPromoCoordinatorDelegate;

// A coordinator that handles the display of the Default Browser Promo for the
// Set Up List.
@interface SetUpListDefaultBrowserPromoCoordinator
    : ChromeCoordinator <PromoStyleViewControllerDelegate,
                         UIAdaptivePresentationControllerDelegate>

// The delegate that receives events from this coordinator.
@property(nonatomic, weak) id<SetUpListDefaultBrowserPromoCoordinatorDelegate>
    delegate;

// Creates a coordinator that uses `viewController` and `browser`. Uses
// `application` to open the app's settings. Uses `segmentationService` and
// `deviceSwitcherResultDispatcher` to retrieve segmentation data for
// personalized messaging. Pass  `nullptr` to `segmentationService` and
// `deviceSwitcherResultDispatcher` to not use segmentation features.
- (instancetype)initWithBaseViewController:(UIViewController*)viewController
                                   browser:(Browser*)browser
                               application:(UIApplication*)application
                       segmentationService:
                           (segmentation_platform::SegmentationPlatformService*)
                               segmentationService
            deviceSwitcherResultDispatcher:
                (segmentation_platform::DeviceSwitcherResultDispatcher*)
                    dispatcher NS_DESIGNATED_INITIALIZER;

- (instancetype)initWithBaseViewController:(UIViewController*)viewController
                                   browser:(Browser*)browser NS_UNAVAILABLE;

@end

#endif  // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_SET_UP_LIST_SET_UP_LIST_DEFAULT_BROWSER_PROMO_COORDINATOR_H_