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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Same as LoadURL, but allows overriding the user agent of the | 170 // Same as LoadURL, but allows overriding the user agent of the |
171 // NavigationEntry before it loads. | 171 // NavigationEntry before it loads. |
172 // TODO(dfalcantara): Consolidate the LoadURL* interfaces. | 172 // TODO(dfalcantara): Consolidate the LoadURL* interfaces. |
173 virtual void LoadURLWithUserAgentOverride(const GURL& url, | 173 virtual void LoadURLWithUserAgentOverride(const GURL& url, |
174 const Referrer& referrer, | 174 const Referrer& referrer, |
175 PageTransition type, | 175 PageTransition type, |
176 bool is_renderer_initiated, | 176 bool is_renderer_initiated, |
177 const std::string& extra_headers, | 177 const std::string& extra_headers, |
178 bool is_overriding_user_agent) = 0; | 178 bool is_overriding_user_agent) = 0; |
179 | 179 |
| 180 // Loads a 'data:' scheme URL with specified base URL and a history entry URL. |
| 181 // This is only safe to be used for browser-initiated data: URL navigations, |
| 182 // since it shows arbitrary content as if it comes from |history_url|. |
| 183 virtual void LoadDataWithBaseURL(const GURL& data_url, |
| 184 const Referrer& referrer, |
| 185 const GURL& base_url, |
| 186 const GURL& history_url, |
| 187 bool is_overriding_user_agent) = 0; |
| 188 |
180 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new | 189 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new |
181 // navigation as being transferred from one RVH to another. In this case the | 190 // navigation as being transferred from one RVH to another. In this case the |
182 // browser can recycle the old request once the new renderer wants to | 191 // browser can recycle the old request once the new renderer wants to |
183 // navigate. | 192 // navigate. |
184 // |transferred_global_request_id| identifies the request ID of the old | 193 // |transferred_global_request_id| identifies the request ID of the old |
185 // request. | 194 // request. |
186 virtual void TransferURL( | 195 virtual void TransferURL( |
187 const GURL& url, | 196 const GURL& url, |
188 const Referrer& referrer, | 197 const Referrer& referrer, |
189 PageTransition transition, | 198 PageTransition transition, |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; | 280 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; |
272 | 281 |
273 // Removes all the entries except the active entry. If there is a new pending | 282 // Removes all the entries except the active entry. If there is a new pending |
274 // navigation it is preserved. | 283 // navigation it is preserved. |
275 virtual void PruneAllButActive() = 0; | 284 virtual void PruneAllButActive() = 0; |
276 }; | 285 }; |
277 | 286 |
278 } // namespace content | 287 } // namespace content |
279 | 288 |
280 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 289 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |