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

Unified Diff: ios/web/navigation/navigation_manager_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_item_impl.mm ('k') | ios/web/navigation/navigation_manager_facade_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_manager_delegate.h
diff --git a/ios/web/navigation/navigation_manager_delegate.h b/ios/web/navigation/navigation_manager_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..bc1e0584129c6af683d890ec011c53aeff4249de
--- /dev/null
+++ b/ios/web/navigation/navigation_manager_delegate.h
@@ -0,0 +1,34 @@
+// Copyright 2015 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_DELEGATE_H_
+#define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
+
+namespace web {
+
+struct LoadCommittedDetails;
+class WebState;
+
+// Delegate for NavigationManager to hand off parts of the navigation flow.
+// TODO(stuartmorgan): See if this can be eliminated by moving more
+class NavigationManagerDelegate {
+ public:
+ virtual ~NavigationManagerDelegate() {}
+
+ // Instructs the delegate to begin navigating to the pending entry.
+ // TODO(stuartmorgan): Remove this once more navigation logic moves to
+ // NavigationManagerImpl.
+ virtual void NavigateToPendingEntry() = 0;
+
+ // Informs the delegate that a navigation item has been commited.
+ virtual void OnNavigationItemCommitted(
+ const LoadCommittedDetails& load_details) = 0;
+
+ // Returns the WebState associated with this delegate.
+ virtual WebState* GetWebState() = 0;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_DELEGATE_H_
« no previous file with comments | « ios/web/navigation/navigation_item_impl.mm ('k') | ios/web/navigation/navigation_manager_facade_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698