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 // Loads a 'data:' scheme URL with specified base URL and a history entry URL. | |
171 // This can only be used for browser-initiated navigations. | |
Charlie Reis
2012/06/19 17:17:25
Thanks. Now that I know a bit more, I think we ne
mnaganov (inactive)
2012/07/03 08:07:52
Done. Sorry, I was swamped by other tasks, now I'm
| |
172 virtual void LoadDataWithBaseURL(const GURL& data_url, | |
173 const Referrer& referrer, | |
174 const GURL& base_url, | |
175 const GURL& history_url, | |
176 bool is_overriding_user_agent) = 0; | |
177 | |
170 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new | 178 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new |
171 // navigation as being transferred from one RVH to another. In this case the | 179 // 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 | 180 // browser can recycle the old request once the new renderer wants to |
173 // navigate. | 181 // navigate. |
174 // |transferred_global_request_id| identifies the request ID of the old | 182 // |transferred_global_request_id| identifies the request ID of the old |
175 // request. | 183 // request. |
176 virtual void TransferURL( | 184 virtual void TransferURL( |
177 const GURL& url, | 185 const GURL& url, |
178 const Referrer& referrer, | 186 const Referrer& referrer, |
179 PageTransition transition, | 187 PageTransition transition, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 268 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
261 | 269 |
262 // Removes all the entries except the active entry. If there is a new pending | 270 // Removes all the entries except the active entry. If there is a new pending |
263 // navigation it is preserved. | 271 // navigation it is preserved. |
264 virtual void PruneAllButActive() = 0; | 272 virtual void PruneAllButActive() = 0; |
265 }; | 273 }; |
266 | 274 |
267 } // namespace content | 275 } // namespace content |
268 | 276 |
269 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 277 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |