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

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

Issue 387055: Always destruct url request context getter on io thread.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/gtk/options/cookies_view_unittest.cc ('k') | chrome/browser/spellcheck_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/url_request_context_getter.h
===================================================================
--- chrome/browser/net/url_request_context_getter.h (revision 32111)
+++ chrome/browser/net/url_request_context_getter.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_NET_URL_REQUEST_CONTEXT_GETTER_H_
#include "base/ref_counted.h"
+#include "chrome/browser/chrome_thread.h"
namespace net {
class CookieStore;
@@ -15,7 +16,8 @@
// Interface for retrieving an URLRequestContext.
class URLRequestContextGetter
- : public base::RefCountedThreadSafe<URLRequestContextGetter> {
+ : public base::RefCountedThreadSafe<URLRequestContextGetter,
+ ChromeThread::DeleteOnIOThread> {
public:
virtual URLRequestContext* GetURLRequestContext() = 0;
@@ -24,7 +26,8 @@
virtual net::CookieStore* GetCookieStore();
protected:
- friend class base::RefCountedThreadSafe<URLRequestContextGetter>;
+ friend class ChromeThread;
+ friend class DeleteTask<URLRequestContextGetter>;
virtual ~URLRequestContextGetter() {}
};
« no previous file with comments | « chrome/browser/gtk/options/cookies_view_unittest.cc ('k') | chrome/browser/spellcheck_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698