diff options
Diffstat (limited to 'chrome/browser/profile.h')
-rw-r--r-- | chrome/browser/profile.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/chrome/browser/profile.h b/chrome/browser/profile.h index c99981b..aac3f02 100644 --- a/chrome/browser/profile.h +++ b/chrome/browser/profile.h @@ -38,6 +38,7 @@ class AutocompleteClassifier; class BackgroundContentsService; class BackgroundModeManager; class BookmarkModel; +class BrowserSignin; class BrowserThemeProvider; class ChromeAppCacheService; class ChromeBlobStorageContext; @@ -173,6 +174,9 @@ class Profile { // for this profile. virtual history::TopSites* GetTopSites() = 0; + // Variant of GetTopSites that doesn't force creation. + virtual history::TopSites* GetTopSitesWithoutCreating() = 0; + // Retrieves a pointer to the VisitedLinkMaster associated with this // profile. The VisitedLinkMaster is lazily created the first time // that this method is called. @@ -286,11 +290,14 @@ class Profile { // Returns the HTML5 FileSystemHostContext assigned to this profile. virtual FileSystemHostContext* GetFileSystemHostContext() = 0; + // Returns the BrowserSignin object assigned to this profile. + virtual BrowserSignin* GetBrowserSignin() = 0; + // Init our themes system. 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; @@ -300,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; @@ -323,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; @@ -370,6 +379,9 @@ class Profile { // Returns true if this profile has a session service. virtual bool HasSessionService() const = 0; + // Returns true if this profile has a profile sync service. + virtual bool HasProfileSyncService() const = 0; + // Returns true if the last time this profile was open it was exited cleanly. virtual bool DidLastSessionExitCleanly() = 0; |