[go: nahoru, domu]

blob: 6caef4c97800ea6cecbf4bb99275802838acdb0b [file] [log] [blame]
// Copyright 2018 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_HISTORY_HISTORY_COORDINATOR_H_
#define IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_COORDINATOR_H_
#import <UIKit/UIKit.h>
#import "base/ios/block_types.h"
#import "ios/chrome/browser/shared/coordinator/chrome_coordinator/chrome_coordinator.h"
enum class UrlLoadStrategy;
@protocol HistoryCoordinatorDelegate;
@protocol HistoryPresentationDelegate;
// Coordinator that presents History.
@interface HistoryCoordinator : ChromeCoordinator
// Opaque instructions on how to open urls.
@property(nonatomic) UrlLoadStrategy loadStrategy;
// Optional: If provided, search terms to filter the displayed history items.
@property(nonatomic, copy) NSString* searchTerms;
// Delegate used to make the Tab UI visible.
@property(nonatomic, weak) id<HistoryPresentationDelegate> presentationDelegate;
// The delegate handling coordinator dismissal.
@property(nonatomic, weak) id<HistoryCoordinatorDelegate> delegate;
// Dismisses this Coordinator then calls `completionHandler`.
- (void)dismissWithCompletion:(ProceduralBlock)completionHandler;
@end
#endif // IOS_CHROME_BROWSER_UI_HISTORY_HISTORY_COORDINATOR_H_