OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 PageTransition type, | 160 PageTransition type, |
161 const std::string& extra_headers) = 0; | 161 const std::string& extra_headers) = 0; |
162 | 162 |
163 // Same as LoadURL, but for renderer-initiated navigations. This state is | 163 // Same as LoadURL, but for renderer-initiated navigations. This state is |
164 // important for tracking whether to display pending URLs. | 164 // important for tracking whether to display pending URLs. |
165 virtual void LoadURLFromRenderer(const GURL& url, | 165 virtual void LoadURLFromRenderer(const GURL& url, |
166 const Referrer& referrer, | 166 const Referrer& referrer, |
167 PageTransition type, | 167 PageTransition type, |
168 const std::string& extra_headers) = 0; | 168 const std::string& extra_headers) = 0; |
169 | 169 |
170 // Same as LoadURL, but allows overriding the user agent of the | |
171 // NavigationEntry before it loads. | |
172 virtual void LoadURLWithUserAgentOverride(const GURL& url, | |
darin (slow to review)
2012/06/19 18:36:34
it feels like we might be getting to the point whe
gone
2012/06/19 21:44:22
Yeah, there's some discussion on the interfaces be
Charlie Reis
2012/06/19 22:47:59
I think I agree. LoadURLWithUserAgentOverride now
gone
2012/06/20 00:01:10
Yeah, if this replaces LoadURL, it should definite
Charlie Reis
2012/06/20 00:17:52
Sure. Maybe just add a TODO for now, to be sure i
| |
173 const Referrer& referrer, | |
174 PageTransition type, | |
175 bool is_renderer_initiated, | |
176 const std::string& extra_headers, | |
177 bool is_overriding_user_agent) = 0; | |
178 | |
170 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new | 179 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new |
171 // navigation as being transferred from one RVH to another. In this case the | 180 // navigation as being transferred from one RVH to another. In this case the |
172 // browser can recycle the old request once the new renderer wants to | 181 // browser can recycle the old request once the new renderer wants to |
173 // navigate. | 182 // navigate. |
174 // |transferred_global_request_id| identifies the request ID of the old | 183 // |transferred_global_request_id| identifies the request ID of the old |
175 // request. | 184 // request. |
176 virtual void TransferURL( | 185 virtual void TransferURL( |
177 const GURL& url, | 186 const GURL& url, |
178 const Referrer& referrer, | 187 const Referrer& referrer, |
179 PageTransition transition, | 188 PageTransition transition, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 269 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
261 | 270 |
262 // Removes all the entries except the active entry. If there is a new pending | 271 // Removes all the entries except the active entry. If there is a new pending |
263 // navigation it is preserved. | 272 // navigation it is preserved. |
264 virtual void PruneAllButActive() = 0; | 273 virtual void PruneAllButActive() = 0; |
265 }; | 274 }; |
266 | 275 |
267 } // namespace content | 276 } // namespace content |
268 | 277 |
269 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 278 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |