summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authoreroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 03:43:19 +0000
committereroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-19 03:43:19 +0000
commit13c30929c4c0daaf891554ddb52ebebb80a36afa (patch)
tree919dc81ccd716828c8a09edca0d68531b9e4b27b /chrome/browser/profile.h
parent5fc341a9731fd518bbe6314a3eec3ebc98109de7 (diff)
downloadchromium_src-13c30929c4c0daaf891554ddb52ebebb80a36afa.zip
chromium_src-13c30929c4c0daaf891554ddb52ebebb80a36afa.tar.gz
chromium_src-13c30929c4c0daaf891554ddb52ebebb80a36afa.tar.bz2
Cleanup some callers now that the restriction that ChromeURLRequestContextGetter be released from the IO thread is gone.
This was an anoyance for consumers of URLRequestContextGetter, as they would play tricks doing manual AddRef/Release. The actual removal of this policy happened in: r32129. BUG=None Test=Existing tests don't crash/leak. Review URL: http://codereview.chromium.org/332006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32488 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index 7497e6d..98e7aab 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -116,9 +116,6 @@ class Profile {
// from any thread. This CAN return NULL if a first request context has not
// yet been created. If necessary, listen on the UI thread for
// NOTIFY_DEFAULT_REQUEST_CONTEXT_AVAILABLE.
- //
- // The returned object is ref'd by the profile. Callers who AddRef() it (to
- // keep it alive longer than the profile) must Release() it on the I/O thread.
static URLRequestContextGetter* GetDefaultRequestContext();
// Returns a unique Id that can be used to identify this profile at runtime.
@@ -278,9 +275,6 @@ class Profile {
// Returns the request context information associated with this profile. Call
// this only on the UI thread, since it can send notifications that should
// happen on the UI thread.
- //
- // The returned object is ref'd by the profile. Callers who AddRef() it (to
- // keep it alive longer than the profile) must Release() it on the I/O thread.
virtual URLRequestContextGetter* GetRequestContext() = 0;
// Returns the request context for media resources asociated with this
@@ -548,11 +542,11 @@ class ProfileImpl : public Profile,
scoped_ptr<ProfileSyncService> sync_service_;
- ChromeURLRequestContextGetter* request_context_;
+ scoped_refptr<ChromeURLRequestContextGetter> request_context_;
- ChromeURLRequestContextGetter* media_request_context_;
+ scoped_refptr<ChromeURLRequestContextGetter> media_request_context_;
- ChromeURLRequestContextGetter* extensions_request_context_;
+ scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_;
scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;