| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 // Set the theme to the specified extension. | 194 // Set the theme to the specified extension. |
| 195 virtual void SetTheme(Extension* extension) = 0; | 195 virtual void SetTheme(Extension* extension) = 0; |
| 196 | 196 |
| 197 // Set the theme to the machine's native theme. | 197 // Set the theme to the machine's native theme. |
| 198 virtual void SetNativeTheme() = 0; | 198 virtual void SetNativeTheme() = 0; |
| 199 | 199 |
| 200 // Clear the theme and reset it to default. | 200 // Clear the theme and reset it to default. |
| 201 virtual void ClearTheme() = 0; | 201 virtual void ClearTheme() = 0; |
| 202 | 202 |
| 203 // Gets the theme that was last set. Returns NULL if the theme is no longer |
| 204 // installed, if there is no installed theme, or the theme was cleared. |
| 205 virtual Extension* GetTheme() = 0; |
| 206 |
| 203 // Returns or creates the ThemeProvider associated with this profile | 207 // Returns or creates the ThemeProvider associated with this profile |
| 204 virtual ThemeProvider* GetThemeProvider() = 0; | 208 virtual ThemeProvider* GetThemeProvider() = 0; |
| 205 | 209 |
| 206 virtual ThumbnailStore* GetThumbnailStore() = 0; | 210 virtual ThumbnailStore* GetThumbnailStore() = 0; |
| 207 | 211 |
| 208 // Returns the request context information associated with this profile. Call | 212 // Returns the request context information associated with this profile. Call |
| 209 // this only on the UI thread, since it can send notifications that should | 213 // this only on the UI thread, since it can send notifications that should |
| 210 // happen on the UI thread. | 214 // happen on the UI thread. |
| 211 // | 215 // |
| 212 // The returned object is ref'd by the profile. Callers who AddRef() it (to | 216 // The returned object is ref'd by the profile. Callers who AddRef() it (to |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 virtual WebDataService* GetWebDataService(ServiceAccessType sat); | 349 virtual WebDataService* GetWebDataService(ServiceAccessType sat); |
| 346 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); | 350 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); |
| 347 virtual PrefService* GetPrefs(); | 351 virtual PrefService* GetPrefs(); |
| 348 virtual TemplateURLModel* GetTemplateURLModel(); | 352 virtual TemplateURLModel* GetTemplateURLModel(); |
| 349 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 353 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
| 350 virtual DownloadManager* GetDownloadManager(); | 354 virtual DownloadManager* GetDownloadManager(); |
| 351 virtual void InitThemes(); | 355 virtual void InitThemes(); |
| 352 virtual void SetTheme(Extension* extension); | 356 virtual void SetTheme(Extension* extension); |
| 353 virtual void SetNativeTheme(); | 357 virtual void SetNativeTheme(); |
| 354 virtual void ClearTheme(); | 358 virtual void ClearTheme(); |
| 359 virtual Extension* GetTheme(); |
| 355 virtual ThemeProvider* GetThemeProvider(); | 360 virtual ThemeProvider* GetThemeProvider(); |
| 356 virtual ThumbnailStore* GetThumbnailStore(); | 361 virtual ThumbnailStore* GetThumbnailStore(); |
| 357 virtual bool HasCreatedDownloadManager() const; | 362 virtual bool HasCreatedDownloadManager() const; |
| 358 virtual URLRequestContext* GetRequestContext(); | 363 virtual URLRequestContext* GetRequestContext(); |
| 359 virtual URLRequestContext* GetRequestContextForMedia(); | 364 virtual URLRequestContext* GetRequestContextForMedia(); |
| 360 virtual URLRequestContext* GetRequestContextForExtensions(); | 365 virtual URLRequestContext* GetRequestContextForExtensions(); |
| 361 virtual Blacklist* GetBlacklist(); | 366 virtual Blacklist* GetBlacklist(); |
| 362 virtual SessionService* GetSessionService(); | 367 virtual SessionService* GetSessionService(); |
| 363 virtual void ShutdownSessionService(); | 368 virtual void ShutdownSessionService(); |
| 364 virtual bool HasSessionService() const; | 369 virtual bool HasSessionService() const; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 #endif | 495 #endif |
| 491 | 496 |
| 492 // This struct is used to pass the spellchecker object through the notification | 497 // This struct is used to pass the spellchecker object through the notification |
| 493 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 498 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
| 494 // notification service. | 499 // notification service. |
| 495 struct SpellcheckerReinitializedDetails { | 500 struct SpellcheckerReinitializedDetails { |
| 496 scoped_refptr<SpellChecker> spellchecker; | 501 scoped_refptr<SpellChecker> spellchecker; |
| 497 }; | 502 }; |
| 498 | 503 |
| 499 #endif // CHROME_BROWSER_PROFILE_H_ | 504 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |