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

Side by Side Diff: content/browser/web_contents/navigation_controller_impl.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
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_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual int GetPendingEntryIndex() const OVERRIDE; 56 virtual int GetPendingEntryIndex() const OVERRIDE;
57 virtual content::NavigationEntry* GetTransientEntry() const OVERRIDE; 57 virtual content::NavigationEntry* GetTransientEntry() const OVERRIDE;
58 virtual void LoadURL(const GURL& url, 58 virtual void LoadURL(const GURL& url,
59 const content::Referrer& referrer, 59 const content::Referrer& referrer,
60 content::PageTransition type, 60 content::PageTransition type,
61 const std::string& extra_headers) OVERRIDE; 61 const std::string& extra_headers) OVERRIDE;
62 virtual void LoadURLFromRenderer(const GURL& url, 62 virtual void LoadURLFromRenderer(const GURL& url,
63 const content::Referrer& referrer, 63 const content::Referrer& referrer,
64 content::PageTransition type, 64 content::PageTransition type,
65 const std::string& extra_headers) OVERRIDE; 65 const std::string& extra_headers) OVERRIDE;
66 virtual void LoadURLWithUserAgentOverride(
67 const GURL& url,
68 const content::Referrer& referrer,
69 content::PageTransition type,
70 bool is_renderer_initiated,
71 const std::string& extra_headers,
72 bool is_overriding_user_agent) OVERRIDE;
66 virtual void TransferURL( 73 virtual void TransferURL(
67 const GURL& url, 74 const GURL& url,
68 const content::Referrer& referrer, 75 const content::Referrer& referrer,
69 content::PageTransition transition, 76 content::PageTransition transition,
70 const std::string& extra_headers, 77 const std::string& extra_headers,
71 const content::GlobalRequestID& transferred_global_request_id, 78 const content::GlobalRequestID& transferred_global_request_id,
72 bool is_renderer_initiated) OVERRIDE; 79 bool is_renderer_initiated) OVERRIDE;
73 virtual void LoadIfNecessary() OVERRIDE; 80 virtual void LoadIfNecessary() OVERRIDE;
74 virtual bool CanGoBack() const OVERRIDE; 81 virtual bool CanGoBack() const OVERRIDE;
75 virtual bool CanGoForward() const OVERRIDE; 82 virtual bool CanGoForward() const OVERRIDE;
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 static size_t max_entry_count_for_testing_; 328 static size_t max_entry_count_for_testing_;
322 329
323 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE), 330 // If a repost is pending, its type (RELOAD or RELOAD_IGNORING_CACHE),
324 // NO_RELOAD otherwise. 331 // NO_RELOAD otherwise.
325 ReloadType pending_reload_; 332 ReloadType pending_reload_;
326 333
327 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); 334 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
328 }; 335 };
329 336
330 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_ 337 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | content/browser/web_contents/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698