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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 | 142 |
143 // New navigations ----------------------------------------------------------- | 143 // New navigations ----------------------------------------------------------- |
144 | 144 |
145 // Loads the specified URL, specifying extra http headers to add to the | 145 // Loads the specified URL, specifying extra http headers to add to the |
146 // request. Extra headers are separated by \n. | 146 // request. Extra headers are separated by \n. |
147 virtual void LoadURL(const GURL& url, | 147 virtual void LoadURL(const GURL& url, |
148 const Referrer& referrer, | 148 const Referrer& referrer, |
149 PageTransition type, | 149 PageTransition type, |
150 const std::string& extra_headers) = 0; | 150 const std::string& extra_headers) = 0; |
151 | 151 |
152 // Same as LoadURL, but allows overriding the user agent of the | |
153 // NavigationEntry before it loaded. | |
Charlie Reis
2012/06/01 00:36:08
Again, how does this related to renderer-initiated
gone
2012/06/14 00:46:39
Added in a hook to the renderer version.
| |
154 virtual void LoadURLWithUserAgentOverride(const GURL& url, | |
155 const Referrer& referrer, | |
156 PageTransition type, | |
157 const std::string& extra_headers, | |
158 bool is_overriding_user_agent) = 0; | |
159 | |
152 // Same as LoadURL, but for renderer-initiated navigations. This state is | 160 // Same as LoadURL, but for renderer-initiated navigations. This state is |
153 // important for tracking whether to display pending URLs. | 161 // important for tracking whether to display pending URLs. |
154 virtual void LoadURLFromRenderer(const GURL& url, | 162 virtual void LoadURLFromRenderer(const GURL& url, |
155 const Referrer& referrer, | 163 const Referrer& referrer, |
156 PageTransition type, | 164 PageTransition type, |
157 const std::string& extra_headers) = 0; | 165 const std::string& extra_headers) = 0; |
158 | 166 |
159 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new | 167 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new |
160 // navigation as being transferred from one RVH to another. In this case the | 168 // navigation as being transferred from one RVH to another. In this case the |
161 // browser can recycle the old request once the new renderer wants to | 169 // browser can recycle the old request once the new renderer wants to |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 257 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
250 | 258 |
251 // Removes all the entries except the active entry. If there is a new pending | 259 // Removes all the entries except the active entry. If there is a new pending |
252 // navigation it is preserved. | 260 // navigation it is preserved. |
253 virtual void PruneAllButActive() = 0; | 261 virtual void PruneAllButActive() = 0; |
254 }; | 262 }; |
255 | 263 |
256 } // namespace content | 264 } // namespace content |
257 | 265 |
258 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 266 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |