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

Unified 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: Diff shows what we do downstream Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/navigation_controller.h
diff --git a/content/public/browser/navigation_controller.h b/content/public/browser/navigation_controller.h
index 4829349e8930ebc4eb0eb4a4fe488833dcb57011..6d0bb59d9a3ff3a1afda9536c30acacb9a8509d6 100644
--- a/content/public/browser/navigation_controller.h
+++ b/content/public/browser/navigation_controller.h
@@ -149,6 +149,14 @@ class NavigationController {
PageTransition type,
const std::string& extra_headers) = 0;
+ // Same as LoadURL, but allows overriding the user agent of the
+ // 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.
+ virtual void LoadURLWithUserAgentOverride(const GURL& url,
+ const Referrer& referrer,
+ PageTransition type,
+ const std::string& extra_headers,
+ bool is_overriding_user_agent) = 0;
+
// Same as LoadURL, but for renderer-initiated navigations. This state is
// important for tracking whether to display pending URLs.
virtual void LoadURLFromRenderer(const GURL& url,

Powered by Google App Engine
This is Rietveld 408576698