Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Unified Diff: ios/web/navigation/navigation_manager_facade_delegate.h

Issue 1028603004: Upstream ios/web/navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-testing
Patch Set: Rebase and resync Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/navigation/navigation_manager_delegate.h ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_manager_facade_delegate.h
diff --git a/ios/web/navigation/navigation_manager_facade_delegate.h b/ios/web/navigation/navigation_manager_facade_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..b405f04067896fed37d3af992e2f656d7cfccf97
--- /dev/null
+++ b/ios/web/navigation/navigation_manager_facade_delegate.h
@@ -0,0 +1,47 @@
+// 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_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_
+#define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_
+
+namespace content {
+class NavigationController;
+}
+
+namespace web {
+
+class NavigationItemImpl;
+class NavigationManagerImpl;
+
+// Interface used by the NavigationManager to drive the NavigationController
+// facade. This pushes the ownership of the facade out of the web-layer to
+// simplify upstreaming efforts. Once upstream features are componentized and
+// use NavigationManager, this class will no longer be necessary.
+class NavigationManagerFacadeDelegate {
+ public:
+ NavigationManagerFacadeDelegate() {}
+ virtual ~NavigationManagerFacadeDelegate() {}
+
+ // Sets the NavigationManagerImpl that backs the NavigationController facade.
+ virtual void SetNavigationManager(
+ NavigationManagerImpl* navigation_manager) = 0;
+ // Returns the facade object being driven by this delegate.
+ virtual content::NavigationController* GetNavigationControllerFacade() = 0;
+
+ // Callbacks for triggering notifications:
+
+ // Called when the NavigationManager has a pending NavigationItem.
+ virtual void OnNavigationItemPending() = 0;
+ // Called when the NavigationManager has updated a NavigationItem.
+ virtual void OnNavigationItemChanged() = 0;
+ // Called when the NavigationManager has committed a pending NavigationItem.
+ virtual void OnNavigationItemCommitted(int previous_item_index,
+ bool is_in_page) = 0;
+ // Called when the NavigationManager has pruned committed NavigationItems.
+ virtual void OnNavigationItemsPruned(size_t pruned_item_count) = 0;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_FACADE_DELEGATE_H_
« no previous file with comments | « ios/web/navigation/navigation_manager_delegate.h ('k') | ios/web/navigation/navigation_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698