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_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 5 #ifndef IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 6 #define IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // Returns the current list of transient url rewriters, passing ownership to | 146 // Returns the current list of transient url rewriters, passing ownership to |
147 // the caller. | 147 // the caller. |
148 // TODO(crbug.com/546197): remove once NavigationItem creation occurs in this | 148 // TODO(crbug.com/546197): remove once NavigationItem creation occurs in this |
149 // class. | 149 // class. |
150 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 150 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
151 GetTransientURLRewriters(); | 151 GetTransientURLRewriters(); |
152 | 152 |
153 // Called to reset the transient url rewriter list. | 153 // Called to reset the transient url rewriter list. |
154 void RemoveTransientURLRewriters(); | 154 void RemoveTransientURLRewriters(); |
155 | 155 |
156 // Copy state from |navigation_manager|, including a copy of that object's | |
157 // CRWSessionController. | |
158 void CopyState(NavigationManagerImpl* navigation_manager); | |
159 | |
160 // Returns the navigation index that differs from the current item (or pending | 156 // Returns the navigation index that differs from the current item (or pending |
161 // item if it exists) by the specified |offset|, skipping redirect navigation | 157 // item if it exists) by the specified |offset|, skipping redirect navigation |
162 // items. The index returned is not guaranteed to be valid. | 158 // items. The index returned is not guaranteed to be valid. |
163 // TODO(crbug.com/661316): Make this method private once navigation code is | 159 // TODO(crbug.com/661316): Make this method private once navigation code is |
164 // moved from CRWWebController to NavigationManagerImpl. | 160 // moved from CRWWebController to NavigationManagerImpl. |
165 int GetIndexForOffset(int offset) const; | 161 int GetIndexForOffset(int offset) const; |
166 | 162 |
167 private: | 163 private: |
168 // The SessionStorageBuilder functions require access to private variables of | 164 // The SessionStorageBuilder functions require access to private variables of |
169 // NavigationManagerImpl. | 165 // NavigationManagerImpl. |
(...skipping 29 matching lines...) Expand all Loading... |
199 // List of transient url rewriters added by |AddTransientURLRewriter()|. | 195 // List of transient url rewriters added by |AddTransientURLRewriter()|. |
200 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> | 196 std::unique_ptr<std::vector<BrowserURLRewriter::URLRewriter>> |
201 transient_url_rewriters_; | 197 transient_url_rewriters_; |
202 | 198 |
203 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); | 199 DISALLOW_COPY_AND_ASSIGN(NavigationManagerImpl); |
204 }; | 200 }; |
205 | 201 |
206 } // namespace web | 202 } // namespace web |
207 | 203 |
208 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ | 204 #endif // IOS_WEB_NAVIGATION_NAVIGATION_MANAGER_IMPL_H_ |
OLD | NEW |