blob: dfde501c8a4e1699b6eb113d8191cc1e89225174 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// 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_BOOKMARKS_BOOKMARK_CONTROLLER_FACTORY_H_
#define IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_CONTROLLER_FACTORY_H_
#import <Foundation/Foundation.h>
@class BookmarkHomeHandsetViewController;
@class BookmarkHomeTabletNTPController;
@protocol NewTabPagePanelProtocol;
@protocol UrlLoader;
namespace ios {
class ChromeBrowserState;
} // namespace ios
// This factory is responsible for providing an instance of a bookmark
// controller that can browse and edit the bookmark hierarchy.
@interface BookmarkControllerFactory : NSObject
- (BookmarkHomeHandsetViewController*)
bookmarkControllerWithBrowserState:(ios::ChromeBrowserState*)browserState
loader:(id<UrlLoader>)loader;
// Returns an instance of a NewTabPagePanelProtocol that can navigate and edit
// the bookmark hierarchy.
- (BookmarkHomeTabletNTPController*)
bookmarkPanelControllerForBrowserState:(ios::ChromeBrowserState*)browserState
loader:(id<UrlLoader>)loader
colorCache:(NSMutableDictionary*)cache;
@end
#endif // IOS_CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_CONTROLLER_FACTORY_H_