Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 10450002: Transfer user agent override info between browser and renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Default to not overriding in prerender config Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/renderer_preferences.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // TODO(dfalcantara): Consolidate the LoadURL* interfaces.
173 virtual void LoadURLWithUserAgentOverride(const GURL& url,
174 const Referrer& referrer,
175 PageTransition type,
176 bool is_renderer_initiated,
177 const std::string& extra_headers,
178 bool is_overriding_user_agent) = 0;
179
170 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new 180 // Behaves like LoadURL() and LoadURLFromRenderer() but marks the new
171 // navigation as being transferred from one RVH to another. In this case the 181 // 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 182 // browser can recycle the old request once the new renderer wants to
173 // navigate. 183 // navigate.
174 // |transferred_global_request_id| identifies the request ID of the old 184 // |transferred_global_request_id| identifies the request ID of the old
175 // request. 185 // request.
176 virtual void TransferURL( 186 virtual void TransferURL(
177 const GURL& url, 187 const GURL& url,
178 const Referrer& referrer, 188 const Referrer& referrer,
179 PageTransition transition, 189 PageTransition transition,
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 virtual void CopyStateFromAndPrune(NavigationController* source) = 0; 270 virtual void CopyStateFromAndPrune(NavigationController* source) = 0;
261 271
262 // Removes all the entries except the active entry. If there is a new pending 272 // Removes all the entries except the active entry. If there is a new pending
263 // navigation it is preserved. 273 // navigation it is preserved.
264 virtual void PruneAllButActive() = 0; 274 virtual void PruneAllButActive() = 0;
265 }; 275 };
266 276
267 } // namespace content 277 } // namespace content
268 278
269 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 279 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/renderer_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698