| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILE_H_ |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Returns the DownloadManager associated with this profile | 181 // Returns the DownloadManager associated with this profile |
| 182 virtual DownloadManager* GetDownloadManager() = 0; | 182 virtual DownloadManager* GetDownloadManager() = 0; |
| 183 virtual bool HasCreatedDownloadManager() const = 0; | 183 virtual bool HasCreatedDownloadManager() const = 0; |
| 184 | 184 |
| 185 // Init our themes system. | 185 // Init our themes system. |
| 186 virtual void InitThemes() = 0; | 186 virtual void InitThemes() = 0; |
| 187 | 187 |
| 188 // Set the theme to the specified extension. | 188 // Set the theme to the specified extension. |
| 189 virtual void SetTheme(Extension* extension) = 0; | 189 virtual void SetTheme(Extension* extension) = 0; |
| 190 | 190 |
| 191 // Set the theme to the machine's native theme. |
| 192 virtual void SetNativeTheme() = 0; |
| 193 |
| 191 // Clear the theme and reset it to default. | 194 // Clear the theme and reset it to default. |
| 192 virtual void ClearTheme() = 0; | 195 virtual void ClearTheme() = 0; |
| 193 | 196 |
| 194 // Returns or creates the ThemeProvider associated with this profile | 197 // Returns or creates the ThemeProvider associated with this profile |
| 195 virtual ThemeProvider* GetThemeProvider() = 0; | 198 virtual ThemeProvider* GetThemeProvider() = 0; |
| 196 | 199 |
| 197 virtual ThumbnailStore* GetThumbnailStore() = 0; | 200 virtual ThumbnailStore* GetThumbnailStore() = 0; |
| 198 | 201 |
| 199 // Returns the request context information associated with this profile. Call | 202 // Returns the request context information associated with this profile. Call |
| 200 // this only on the UI thread, since it can send notifications that should | 203 // this only on the UI thread, since it can send notifications that should |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 virtual ExtensionProcessManager* GetExtensionProcessManager(); | 336 virtual ExtensionProcessManager* GetExtensionProcessManager(); |
| 334 virtual HistoryService* GetHistoryService(ServiceAccessType sat); | 337 virtual HistoryService* GetHistoryService(ServiceAccessType sat); |
| 335 virtual WebDataService* GetWebDataService(ServiceAccessType sat); | 338 virtual WebDataService* GetWebDataService(ServiceAccessType sat); |
| 336 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); | 339 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); |
| 337 virtual PrefService* GetPrefs(); | 340 virtual PrefService* GetPrefs(); |
| 338 virtual TemplateURLModel* GetTemplateURLModel(); | 341 virtual TemplateURLModel* GetTemplateURLModel(); |
| 339 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 342 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
| 340 virtual DownloadManager* GetDownloadManager(); | 343 virtual DownloadManager* GetDownloadManager(); |
| 341 virtual void InitThemes(); | 344 virtual void InitThemes(); |
| 342 virtual void SetTheme(Extension* extension); | 345 virtual void SetTheme(Extension* extension); |
| 346 virtual void SetNativeTheme(); |
| 343 virtual void ClearTheme(); | 347 virtual void ClearTheme(); |
| 344 virtual ThemeProvider* GetThemeProvider(); | 348 virtual ThemeProvider* GetThemeProvider(); |
| 345 virtual ThumbnailStore* GetThumbnailStore(); | 349 virtual ThumbnailStore* GetThumbnailStore(); |
| 346 virtual bool HasCreatedDownloadManager() const; | 350 virtual bool HasCreatedDownloadManager() const; |
| 347 virtual URLRequestContext* GetRequestContext(); | 351 virtual URLRequestContext* GetRequestContext(); |
| 348 virtual URLRequestContext* GetRequestContextForMedia(); | 352 virtual URLRequestContext* GetRequestContextForMedia(); |
| 349 virtual URLRequestContext* GetRequestContextForExtensions(); | 353 virtual URLRequestContext* GetRequestContextForExtensions(); |
| 350 virtual Blacklist* GetBlacklist(); | 354 virtual Blacklist* GetBlacklist(); |
| 351 virtual SessionService* GetSessionService(); | 355 virtual SessionService* GetSessionService(); |
| 352 virtual void ShutdownSessionService(); | 356 virtual void ShutdownSessionService(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 #endif | 481 #endif |
| 478 | 482 |
| 479 // This struct is used to pass the spellchecker object through the notification | 483 // This struct is used to pass the spellchecker object through the notification |
| 480 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 484 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
| 481 // notification service. | 485 // notification service. |
| 482 struct SpellcheckerReinitializedDetails { | 486 struct SpellcheckerReinitializedDetails { |
| 483 scoped_refptr<SpellChecker> spellchecker; | 487 scoped_refptr<SpellChecker> spellchecker; |
| 484 }; | 488 }; |
| 485 | 489 |
| 486 #endif // CHROME_BROWSER_PROFILE_H_ | 490 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |