summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/chrome_url_request_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/net/chrome_url_request_context.h')
-rw-r--r--chrome/browser/net/chrome_url_request_context.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.h b/chrome/browser/net/chrome_url_request_context.h
index a580282..51d9246 100644
--- a/chrome/browser/net/chrome_url_request_context.h
+++ b/chrome/browser/net/chrome_url_request_context.h
@@ -240,7 +240,11 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter,
// URLRequestContextGetter implementation.
virtual URLRequestContext* GetURLRequestContext();
virtual net::CookieStore* GetCookieStore();
- virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy();
+ virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() const;
+
+ // Releases |url_request_context_|. It's invalid to call
+ // GetURLRequestContext() after this point.
+ void ReleaseURLRequestContext();
// Convenience overload of GetURLRequestContext() that returns a
// ChromeURLRequestContext* rather than a URLRequestContext*.
@@ -309,6 +313,10 @@ class ChromeURLRequestContextGetter : public URLRequestContextGetter,
PrefChangeRegistrar registrar_;
+ // |io_thread_| is always valid during the lifetime of |this| since |this| is
+ // deleted on the IO thread.
+ IOThread* const io_thread_;
+
// Deferred logic for creating a ChromeURLRequestContext.
// Access only from the IO thread.
scoped_ptr<ChromeURLRequestContextFactory> factory_;