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

Unified Diff: chrome/service/net/service_url_request_context.h

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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/service/net/service_url_request_context.h
diff --git a/chrome/service/net/service_url_request_context.h b/chrome/service/net/service_url_request_context.h
index 33ab2e1d94ad27479d0fa95fa15f054ddac29a80..379371f6de3790071147a2cd914106cb451dc774 100644
--- a/chrome/service/net/service_url_request_context.h
+++ b/chrome/service/net/service_url_request_context.h
@@ -8,7 +8,6 @@
#include <string>
-#include "base/message_loop_proxy.h"
#include "chrome/common/net/url_request_context_getter.h"
#include "net/base/cookie_monster.h"
#include "net/base/cookie_policy.h"
@@ -22,6 +21,10 @@
#include "net/proxy/proxy_service.h"
#include "net/url_request/url_request_context.h"
+namespace base {
+class MessageLoopProxy;
+}
+
// Subclass of URLRequestContext which can be used to store extra information
// for requests. This subclass is meant to be used in the service process where
// the profile is not available.
@@ -55,20 +58,14 @@ class ServiceURLRequestContextGetter : public URLRequestContextGetter {
public:
ServiceURLRequestContextGetter();
- virtual URLRequestContext* GetURLRequestContext() {
- if (!url_request_context_)
- url_request_context_ = new ServiceURLRequestContext();
- return url_request_context_;
- }
- virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() {
- return io_message_loop_proxy_;
- }
+ virtual URLRequestContext* GetURLRequestContext();
+ virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy();
void set_user_agent(const std::string& ua) {
user_agent_ = ua;
}
private:
- ~ServiceURLRequestContextGetter() {}
+ virtual ~ServiceURLRequestContextGetter();
std::string user_agent_;
scoped_refptr<URLRequestContext> url_request_context_;

Powered by Google App Engine
This is Rietveld 408576698