// Copyright 2015 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_SETTINGS_UI_BUNDLED_SYNC_SYNC_ENCRYPTION_TABLE_VIEW_CONTROLLER_H_
#define IOS_CHROME_BROWSER_SETTINGS_UI_BUNDLED_SYNC_SYNC_ENCRYPTION_TABLE_VIEW_CONTROLLER_H_

#import "ios/chrome/browser/settings/ui_bundled/settings_controller_protocol.h"
#import "ios/chrome/browser/settings/ui_bundled/settings_root_table_view_controller.h"

class Browser;
@class SyncEncryptionTableViewController;

@protocol SyncEncryptionTableViewControllerPresentationDelegate <NSObject>

// Called when the SyncEncryptionTableViewController has been
// dismissed.
- (void)syncEncryptionTableViewControllerDidDismiss:
    (SyncEncryptionTableViewController*)viewController;

@end

// Controller to allow user to specify encryption passphrase for Sync.
@interface SyncEncryptionTableViewController
    : SettingsRootTableViewController <SettingsControllerProtocol>

@property(nonatomic, weak)
    id<SyncEncryptionTableViewControllerPresentationDelegate>
        presentationDelegate;

// Designated initializer. `profile` must not be nil.
- (instancetype)initWithBrowser:(Browser*)browser NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE;

@end

#endif  // IOS_CHROME_BROWSER_SETTINGS_UI_BUNDLED_SYNC_SYNC_ENCRYPTION_TABLE_VIEW_CONTROLLER_H_
