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

Unified Diff: sync/internal_api/public/http_bridge.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: sync/internal_api/public/http_bridge.h
diff --git a/sync/internal_api/public/http_bridge.h b/sync/internal_api/public/http_bridge.h
index 15001c2182c737be774b1b36364b9607795dff9d..359484467a17cc264dcf926041fda61b0b3f7370 100644
--- a/sync/internal_api/public/http_bridge.h
+++ b/sync/internal_api/public/http_bridge.h
@@ -24,6 +24,7 @@ class MessageLoop;
class HttpBridgeTest;
namespace net {
+class ConstHttpUserAgentSettings;
class HttpResponseHeaders;
class URLFetcher;
}
@@ -58,12 +59,11 @@ class HttpBridge : public base::RefCountedThreadSafe<HttpBridge>,
// The destructor MUST be called on the IO thread.
virtual ~RequestContext();
- virtual const std::string& GetUserAgent(const GURL& url) const OVERRIDE;
-
private:
net::URLRequestContext* const baseline_context_;
const scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
- const std::string user_agent_;
+ scoped_ptr<net::ConstHttpUserAgentSettings>
+ const_http_user_agent_settings_;
DISALLOW_COPY_AND_ASSIGN(RequestContext);
};

Powered by Google App Engine
This is Rietveld 408576698