summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-29 23:14:02 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-29 23:14:02 +0000
commit9adb9693e8a90bb63be325dbb5d3391f47f839ba (patch)
tree555765afd7bc851de6f3a2bf4a35151435d58d77 /chrome/browser/profile.h
parent5b5a5c976aead85a87ced0847c068012d3979cae (diff)
downloadchromium_src-9adb9693e8a90bb63be325dbb5d3391f47f839ba.zip
chromium_src-9adb9693e8a90bb63be325dbb5d3391f47f839ba.tar.gz
chromium_src-9adb9693e8a90bb63be325dbb5d3391f47f839ba.tar.bz2
Part 3 of immutable Extension refactor.
Make ExtensionsService hold const Extension pointers only. This ensures that extensions can't be modified after they're created, and lets us share them between threads. BUG=56558 TEST=no functional change Review URL: http://codereview.chromium.org/4138006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64517 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r--chrome/browser/profile.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h
index 31b3fc8..fac699d 100644
--- a/chrome/browser/profile.h
+++ b/chrome/browser/profile.h
@@ -297,7 +297,7 @@ class Profile {
virtual void InitThemes() = 0;
// Set the theme to the specified extension.
- virtual void SetTheme(Extension* extension) = 0;
+ virtual void SetTheme(const Extension* extension) = 0;
// Set the theme to the machine's native theme.
virtual void SetNativeTheme() = 0;
@@ -307,7 +307,7 @@ class Profile {
// Gets the theme that was last set. Returns NULL if the theme is no longer
// installed, if there is no installed theme, or the theme was cleared.
- virtual Extension* GetTheme() = 0;
+ virtual const Extension* GetTheme() = 0;
// Returns or creates the ThemeProvider associated with this profile
virtual BrowserThemeProvider* GetThemeProvider() = 0;
@@ -330,12 +330,14 @@ class Profile {
// notification has fired. The purpose for handling this event first is to
// avoid race conditions by making sure URLRequestContexts learn about new
// extensions before anything else needs them to know.
- virtual void RegisterExtensionWithRequestContexts(Extension* extension) {}
+ virtual void RegisterExtensionWithRequestContexts(
+ const Extension* extension) {}
// Called by the ExtensionsService that lives in this profile. Lets the
// profile clean up its RequestContexts once all the listeners to the
// EXTENSION_UNLOADED notification have finished running.
- virtual void UnregisterExtensionWithRequestContexts(Extension* extension) {}
+ virtual void UnregisterExtensionWithRequestContexts(
+ const Extension* extension) {}
// Returns the SSLConfigService for this profile.
virtual net::SSLConfigService* GetSSLConfigService() = 0;