OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 25 matching lines...) Expand all Loading... |
36 class ExtensionDevToolsManager; | 36 class ExtensionDevToolsManager; |
37 class ExtensionProcessManager; | 37 class ExtensionProcessManager; |
38 class ExtensionMessageService; | 38 class ExtensionMessageService; |
39 class ExtensionsService; | 39 class ExtensionsService; |
40 class FaviconService; | 40 class FaviconService; |
41 class HistoryService; | 41 class HistoryService; |
42 class NavigationController; | 42 class NavigationController; |
43 class PasswordStore; | 43 class PasswordStore; |
44 class PrefService; | 44 class PrefService; |
45 class ProfileSyncService; | 45 class ProfileSyncService; |
| 46 class SearchVersusNavigateClassifier; |
46 class SessionService; | 47 class SessionService; |
47 class SpellChecker; | 48 class SpellChecker; |
48 class SSLConfigServiceManager; | 49 class SSLConfigServiceManager; |
49 class SSLHostState; | 50 class SSLHostState; |
50 class StrictTransportSecurityPersister; | 51 class StrictTransportSecurityPersister; |
51 class SQLitePersistentCookieStore; | 52 class SQLitePersistentCookieStore; |
52 class TabRestoreService; | 53 class TabRestoreService; |
53 class TemplateURLFetcher; | 54 class TemplateURLFetcher; |
54 class TemplateURLModel; | 55 class TemplateURLModel; |
55 class ThemeProvider; | 56 class ThemeProvider; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // process may decide to shut down). | 195 // process may decide to shut down). |
195 // | 196 // |
196 // |access| defines what the caller plans to do with the service. See | 197 // |access| defines what the caller plans to do with the service. See |
197 // the ServiceAccessType definition above. | 198 // the ServiceAccessType definition above. |
198 virtual HistoryService* GetHistoryService(ServiceAccessType access) = 0; | 199 virtual HistoryService* GetHistoryService(ServiceAccessType access) = 0; |
199 | 200 |
200 // Similar to GetHistoryService(), but won't create the history service if it | 201 // Similar to GetHistoryService(), but won't create the history service if it |
201 // doesn't already exist. | 202 // doesn't already exist. |
202 virtual HistoryService* GetHistoryServiceWithoutCreating() = 0; | 203 virtual HistoryService* GetHistoryServiceWithoutCreating() = 0; |
203 | 204 |
| 205 // Retrieves a pointer to the SearchVersusNavigateClassifier associated with |
| 206 // this profile. The SearchVersusNavigateClassifier is lazily created the |
| 207 // first time that this method is called. |
| 208 virtual SearchVersusNavigateClassifier* |
| 209 GetSearchVersusNavigateClassifier() = 0; |
| 210 |
204 // Returns the WebDataService for this profile. This is owned by | 211 // Returns the WebDataService for this profile. This is owned by |
205 // the Profile. Callers that outlive the life of this profile need to be | 212 // the Profile. Callers that outlive the life of this profile need to be |
206 // sure they refcount the returned value. | 213 // sure they refcount the returned value. |
207 // | 214 // |
208 // |access| defines what the caller plans to do with the service. See | 215 // |access| defines what the caller plans to do with the service. See |
209 // the ServiceAccessType definition above. | 216 // the ServiceAccessType definition above. |
210 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; | 217 virtual WebDataService* GetWebDataService(ServiceAccessType access) = 0; |
211 | 218 |
212 // Similar to GetWebDataService(), but won't create the web data service if it | 219 // Similar to GetWebDataService(), but won't create the web data service if it |
213 // doesn't already exist. | 220 // doesn't already exist. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 virtual UserScriptMaster* GetUserScriptMaster(); | 405 virtual UserScriptMaster* GetUserScriptMaster(); |
399 virtual SSLHostState* GetSSLHostState(); | 406 virtual SSLHostState* GetSSLHostState(); |
400 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState(); | 407 virtual net::StrictTransportSecurityState* GetStrictTransportSecurityState(); |
401 virtual ExtensionsService* GetExtensionsService(); | 408 virtual ExtensionsService* GetExtensionsService(); |
402 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); | 409 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager(); |
403 virtual ExtensionProcessManager* GetExtensionProcessManager(); | 410 virtual ExtensionProcessManager* GetExtensionProcessManager(); |
404 virtual ExtensionMessageService* GetExtensionMessageService(); | 411 virtual ExtensionMessageService* GetExtensionMessageService(); |
405 virtual FaviconService* GetFaviconService(ServiceAccessType sat); | 412 virtual FaviconService* GetFaviconService(ServiceAccessType sat); |
406 virtual HistoryService* GetHistoryService(ServiceAccessType sat); | 413 virtual HistoryService* GetHistoryService(ServiceAccessType sat); |
407 virtual HistoryService* GetHistoryServiceWithoutCreating(); | 414 virtual HistoryService* GetHistoryServiceWithoutCreating(); |
| 415 virtual SearchVersusNavigateClassifier* GetSearchVersusNavigateClassifier(); |
408 virtual WebDataService* GetWebDataService(ServiceAccessType sat); | 416 virtual WebDataService* GetWebDataService(ServiceAccessType sat); |
409 virtual WebDataService* GetWebDataServiceWithoutCreating(); | 417 virtual WebDataService* GetWebDataServiceWithoutCreating(); |
410 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); | 418 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); |
411 virtual PrefService* GetPrefs(); | 419 virtual PrefService* GetPrefs(); |
412 virtual TemplateURLModel* GetTemplateURLModel(); | 420 virtual TemplateURLModel* GetTemplateURLModel(); |
413 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 421 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
414 virtual DownloadManager* GetDownloadManager(); | 422 virtual DownloadManager* GetDownloadManager(); |
415 virtual void InitThemes(); | 423 virtual void InitThemes(); |
416 virtual void SetTheme(Extension* extension); | 424 virtual void SetTheme(Extension* extension); |
417 virtual void SetNativeTheme(); | 425 virtual void SetNativeTheme(); |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 516 |
509 ChromeURLRequestContextGetter* extensions_request_context_; | 517 ChromeURLRequestContextGetter* extensions_request_context_; |
510 | 518 |
511 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; | 519 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; |
512 | 520 |
513 Blacklist* blacklist_; | 521 Blacklist* blacklist_; |
514 | 522 |
515 scoped_refptr<DownloadManager> download_manager_; | 523 scoped_refptr<DownloadManager> download_manager_; |
516 scoped_refptr<HistoryService> history_service_; | 524 scoped_refptr<HistoryService> history_service_; |
517 scoped_refptr<FaviconService> favicon_service_; | 525 scoped_refptr<FaviconService> favicon_service_; |
| 526 scoped_ptr<SearchVersusNavigateClassifier> search_versus_navigate_classifier_; |
518 scoped_refptr<WebDataService> web_data_service_; | 527 scoped_refptr<WebDataService> web_data_service_; |
519 scoped_refptr<PasswordStore> password_store_; | 528 scoped_refptr<PasswordStore> password_store_; |
520 scoped_refptr<SessionService> session_service_; | 529 scoped_refptr<SessionService> session_service_; |
521 scoped_ptr<BrowserThemeProvider> theme_provider_; | 530 scoped_ptr<BrowserThemeProvider> theme_provider_; |
522 scoped_refptr<WebKitContext> webkit_context_; | 531 scoped_refptr<WebKitContext> webkit_context_; |
523 scoped_ptr<DesktopNotificationService> desktop_notification_service_; | 532 scoped_ptr<DesktopNotificationService> desktop_notification_service_; |
524 bool history_service_created_; | 533 bool history_service_created_; |
525 bool favicon_service_created_; | 534 bool favicon_service_created_; |
526 bool created_web_data_service_; | 535 bool created_web_data_service_; |
527 bool created_password_store_; | 536 bool created_password_store_; |
(...skipping 27 matching lines...) Expand all Loading... |
555 }; | 564 }; |
556 | 565 |
557 // This struct is used to pass the spellchecker object through the notification | 566 // This struct is used to pass the spellchecker object through the notification |
558 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification | 567 // SPELLCHECKER_REINITIALIZED. This is used as the details for the notification |
559 // service. | 568 // service. |
560 struct SpellcheckerReinitializedDetails { | 569 struct SpellcheckerReinitializedDetails { |
561 scoped_refptr<SpellChecker> spellchecker; | 570 scoped_refptr<SpellChecker> spellchecker; |
562 }; | 571 }; |
563 | 572 |
564 #endif // CHROME_BROWSER_PROFILE_H_ | 573 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |