| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |