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

Unified Diff: chrome/browser/net/chrome_url_request_context.h

Issue 10918279: Provide mutable members of UrlRequestContext via pure-virtual interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address erikwright's second round of comments. Created 8 years, 3 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: chrome/browser/net/chrome_url_request_context.h
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h
index 7d20f4e1fe03cd3d6e09a1e92a1c527f2932c954..718bbf8c901fc680020c67328bdc7dbf8f37ee9d 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -14,6 +14,7 @@
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
+class ChromeHttpUserAgentSettings;
class ChromeURLDataManagerBackend;
class ChromeURLRequestContextFactory;
class IOThread;
@@ -52,8 +53,6 @@ class ChromeURLRequestContext : public net::URLRequestContext {
return is_incognito_;
}
- virtual const std::string& GetUserAgent(const GURL& url) const OVERRIDE;
-
// TODO(willchan): Get rid of the need for this accessor. Really, this should
// move completely to ProfileIOData.
ChromeURLDataManagerBackend* chrome_url_data_manager_backend() const;
@@ -82,6 +81,7 @@ class ChromeURLRequestContext : public net::URLRequestContext {
ChromeURLDataManagerBackend* chrome_url_data_manager_backend_;
bool is_incognito_;
chrome_browser_net::LoadTimeStats* load_time_stats_;
+ scoped_ptr<ChromeHttpUserAgentSettings> chrome_http_user_agent_settings_;
// ---------------------------------------------------------------------------
// Important: When adding any new members above, consider whether they need to

Powered by Google App Engine
This is Rietveld 408576698