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

Side by Side Diff: ios/web/public/navigation_manager.h

Issue 1838323003: [ios] Added NavigationManager::LoadURLWithParams public API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // Removes the transient and pending NavigationItems. 92 // Removes the transient and pending NavigationItems.
93 virtual void DiscardNonCommittedItems() = 0; 93 virtual void DiscardNonCommittedItems() = 0;
94 94
95 // Currently a no-op, but present to be called in contexts where 95 // Currently a no-op, but present to be called in contexts where
96 // NavigationController::LoadIfNecessary() is called in the analogous 96 // NavigationController::LoadIfNecessary() is called in the analogous
97 // //content-based context. In particular, likely will become more than 97 // //content-based context. In particular, likely will become more than
98 // a no-op if NavigationManager::SetNeedsReload() becomes necessary to 98 // a no-op if NavigationManager::SetNeedsReload() becomes necessary to
99 // match NavigationController::SetNeedsReload(). 99 // match NavigationController::SetNeedsReload().
100 virtual void LoadIfNecessary() = 0; 100 virtual void LoadIfNecessary() = 0;
101 101
102 // Loads the URL with specified |params|.
103 virtual void LoadURLWithParams(
104 const NavigationManager::WebLoadParams& params) = 0;
105
102 // Adds |rewriter| to a transient list of URL rewriters. Transient URL 106 // Adds |rewriter| to a transient list of URL rewriters. Transient URL
103 // rewriters will be executed before the rewriters already added to the 107 // rewriters will be executed before the rewriters already added to the
104 // BrowserURLRewriter singleton, and the list will be cleared after the next 108 // BrowserURLRewriter singleton, and the list will be cleared after the next
105 // attempted page load. |rewriter| must not be null. 109 // attempted page load. |rewriter| must not be null.
106 virtual void AddTransientURLRewriter( 110 virtual void AddTransientURLRewriter(
107 BrowserURLRewriter::URLRewriter rewriter) = 0; 111 BrowserURLRewriter::URLRewriter rewriter) = 0;
108 112
109 // Returns the number of items in the NavigationManager, excluding 113 // Returns the number of items in the NavigationManager, excluding
110 // pending and transient entries. 114 // pending and transient entries.
111 virtual int GetItemCount() const = 0; 115 virtual int GetItemCount() const = 0;
(...skipping 26 matching lines...) Expand all
138 // Reloads the current entry. If |check_for_repost| is true and the current 142 // Reloads the current entry. If |check_for_repost| is true and the current
139 // entry has POST data the user is prompted to see if they really want to 143 // entry has POST data the user is prompted to see if they really want to
140 // reload the page. In nearly all cases pass in true. If a transient entry 144 // reload the page. In nearly all cases pass in true. If a transient entry
141 // is showing, initiates a new navigation to its URL. 145 // is showing, initiates a new navigation to its URL.
142 virtual void Reload(bool check_for_repost) = 0; 146 virtual void Reload(bool check_for_repost) = 0;
143 }; 147 };
144 148
145 } // namespace web 149 } // namespace web
146 150
147 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 151 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/navigation_manager_impl.mm ('k') | ios/web/shell/view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698