| 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 14 matching lines...) Expand all Loading... |
| 25 class DownloadManager; | 25 class DownloadManager; |
| 26 class Extension; | 26 class Extension; |
| 27 class ExtensionProcessManager; | 27 class ExtensionProcessManager; |
| 28 class ExtensionsService; | 28 class ExtensionsService; |
| 29 class HistoryService; | 29 class HistoryService; |
| 30 class NavigationController; | 30 class NavigationController; |
| 31 class PrefService; | 31 class PrefService; |
| 32 class SessionService; | 32 class SessionService; |
| 33 class SpellChecker; | 33 class SpellChecker; |
| 34 class SSLHostState; | 34 class SSLHostState; |
| 35 class SQLitePersistentCookieStore; |
| 35 class TabRestoreService; | 36 class TabRestoreService; |
| 36 class TemplateURLFetcher; | 37 class TemplateURLFetcher; |
| 37 class TemplateURLModel; | 38 class TemplateURLModel; |
| 38 class BrowserThemeProvider; | 39 class BrowserThemeProvider; |
| 39 class URLRequestContext; | 40 class URLRequestContext; |
| 40 class UserScriptMaster; | 41 class UserScriptMaster; |
| 41 class VisitedLinkMaster; | 42 class VisitedLinkMaster; |
| 42 class WebDataService; | 43 class WebDataService; |
| 43 | 44 |
| 44 class Profile { | 45 class Profile { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 // happen on the UI thread. | 183 // happen on the UI thread. |
| 183 // | 184 // |
| 184 // The returned object is ref'd by the profile. Callers who AddRef() it (to | 185 // The returned object is ref'd by the profile. Callers who AddRef() it (to |
| 185 // keep it alive longer than the profile) must Release() it on the I/O thread. | 186 // keep it alive longer than the profile) must Release() it on the I/O thread. |
| 186 virtual URLRequestContext* GetRequestContext() = 0; | 187 virtual URLRequestContext* GetRequestContext() = 0; |
| 187 | 188 |
| 188 // Returns the request context for media resources asociated with this | 189 // Returns the request context for media resources asociated with this |
| 189 // profile. | 190 // profile. |
| 190 virtual URLRequestContext* GetRequestContextForMedia() = 0; | 191 virtual URLRequestContext* GetRequestContextForMedia() = 0; |
| 191 | 192 |
| 193 // Returns the request context used for extension-related requests. This |
| 194 // is only used for a separate cookie store currently. |
| 195 virtual URLRequestContext* GetRequestContextForExtensions() = 0; |
| 196 |
| 192 // Returns the session service for this profile. This may return NULL. If | 197 // Returns the session service for this profile. This may return NULL. If |
| 193 // this profile supports a session service (it isn't off the record), and | 198 // this profile supports a session service (it isn't off the record), and |
| 194 // the session service hasn't yet been created, this forces creation of | 199 // the session service hasn't yet been created, this forces creation of |
| 195 // the session service. | 200 // the session service. |
| 196 // | 201 // |
| 197 // This returns NULL in two situations: the profile is off the record, or the | 202 // This returns NULL in two situations: the profile is off the record, or the |
| 198 // session service has been explicitly shutdown (browser is exiting). Callers | 203 // session service has been explicitly shutdown (browser is exiting). Callers |
| 199 // should always check the return value for NULL. | 204 // should always check the return value for NULL. |
| 200 virtual SessionService* GetSessionService() = 0; | 205 virtual SessionService* GetSessionService() = 0; |
| 201 | 206 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 virtual TemplateURLModel* GetTemplateURLModel(); | 309 virtual TemplateURLModel* GetTemplateURLModel(); |
| 305 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 310 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
| 306 virtual DownloadManager* GetDownloadManager(); | 311 virtual DownloadManager* GetDownloadManager(); |
| 307 virtual void InitThemes(); | 312 virtual void InitThemes(); |
| 308 virtual void SetTheme(Extension* extension); | 313 virtual void SetTheme(Extension* extension); |
| 309 virtual void ClearTheme(); | 314 virtual void ClearTheme(); |
| 310 virtual ThemeProvider* GetThemeProvider(); | 315 virtual ThemeProvider* GetThemeProvider(); |
| 311 virtual bool HasCreatedDownloadManager() const; | 316 virtual bool HasCreatedDownloadManager() const; |
| 312 virtual URLRequestContext* GetRequestContext(); | 317 virtual URLRequestContext* GetRequestContext(); |
| 313 virtual URLRequestContext* GetRequestContextForMedia(); | 318 virtual URLRequestContext* GetRequestContextForMedia(); |
| 319 virtual URLRequestContext* GetRequestContextForExtensions(); |
| 314 virtual SessionService* GetSessionService(); | 320 virtual SessionService* GetSessionService(); |
| 315 virtual void ShutdownSessionService(); | 321 virtual void ShutdownSessionService(); |
| 316 virtual bool HasSessionService() const; | 322 virtual bool HasSessionService() const; |
| 317 virtual std::wstring GetName(); | 323 virtual std::wstring GetName(); |
| 318 virtual void SetName(const std::wstring& name); | 324 virtual void SetName(const std::wstring& name); |
| 319 virtual std::wstring GetID(); | 325 virtual std::wstring GetID(); |
| 320 virtual void SetID(const std::wstring& id); | 326 virtual void SetID(const std::wstring& id); |
| 321 virtual bool DidLastSessionExitCleanly(); | 327 virtual bool DidLastSessionExitCleanly(); |
| 322 virtual BookmarkModel* GetBookmarkModel(); | 328 virtual BookmarkModel* GetBookmarkModel(); |
| 323 virtual bool IsSameProfile(Profile* profile); | 329 virtual bool IsSameProfile(Profile* profile); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 377 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
| 372 | 378 |
| 373 #ifdef CHROME_PERSONALIZATION | 379 #ifdef CHROME_PERSONALIZATION |
| 374 scoped_ptr<ProfilePersonalization> personalization_; | 380 scoped_ptr<ProfilePersonalization> personalization_; |
| 375 #endif | 381 #endif |
| 376 | 382 |
| 377 ChromeURLRequestContext* request_context_; | 383 ChromeURLRequestContext* request_context_; |
| 378 | 384 |
| 379 ChromeURLRequestContext* media_request_context_; | 385 ChromeURLRequestContext* media_request_context_; |
| 380 | 386 |
| 387 ChromeURLRequestContext* extensions_request_context_; |
| 388 |
| 381 scoped_refptr<DownloadManager> download_manager_; | 389 scoped_refptr<DownloadManager> download_manager_; |
| 382 scoped_refptr<HistoryService> history_service_; | 390 scoped_refptr<HistoryService> history_service_; |
| 383 scoped_refptr<WebDataService> web_data_service_; | 391 scoped_refptr<WebDataService> web_data_service_; |
| 384 scoped_refptr<SessionService> session_service_; | 392 scoped_refptr<SessionService> session_service_; |
| 385 scoped_refptr<BrowserThemeProvider> theme_provider_; | 393 scoped_refptr<BrowserThemeProvider> theme_provider_; |
| 386 bool history_service_created_; | 394 bool history_service_created_; |
| 387 bool created_web_data_service_; | 395 bool created_web_data_service_; |
| 388 bool created_download_manager_; | 396 bool created_download_manager_; |
| 389 bool created_theme_provider_; | 397 bool created_theme_provider_; |
| 390 // Whether or not the last session exited cleanly. This is set only once. | 398 // Whether or not the last session exited cleanly. This is set only once. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 #endif | 432 #endif |
| 425 | 433 |
| 426 // This struct is used to pass the spellchecker object through the notification | 434 // This struct is used to pass the spellchecker object through the notification |
| 427 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 435 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
| 428 // notification service. | 436 // notification service. |
| 429 struct SpellcheckerReinitializedDetails { | 437 struct SpellcheckerReinitializedDetails { |
| 430 scoped_refptr<SpellChecker> spellchecker; | 438 scoped_refptr<SpellChecker> spellchecker; |
| 431 }; | 439 }; |
| 432 | 440 |
| 433 #endif // CHROME_BROWSER_PROFILE_H_ | 441 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |