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 29 matching lines...) Expand all Loading... |
40 class SpellChecker; | 40 class SpellChecker; |
41 class SSLHostState; | 41 class SSLHostState; |
42 class SQLitePersistentCookieStore; | 42 class SQLitePersistentCookieStore; |
43 class TabRestoreService; | 43 class TabRestoreService; |
44 class TemplateURLFetcher; | 44 class TemplateURLFetcher; |
45 class TemplateURLModel; | 45 class TemplateURLModel; |
46 class ThumbnailStore; | 46 class ThumbnailStore; |
47 class URLRequestContext; | 47 class URLRequestContext; |
48 class UserScriptMaster; | 48 class UserScriptMaster; |
49 class VisitedLinkMaster; | 49 class VisitedLinkMaster; |
| 50 class VisitedLinkEventListener; |
50 class WebDataService; | 51 class WebDataService; |
51 class WebKitContext; | 52 class WebKitContext; |
52 | 53 |
53 class Profile { | 54 class Profile { |
54 public: | 55 public: |
55 // Profile services are accessed with the following parameter. This parameter | 56 // Profile services are accessed with the following parameter. This parameter |
56 // defines what the caller plans to do with the service. | 57 // defines what the caller plans to do with the service. |
57 // The caller is responsible for not performing any operation that would | 58 // The caller is responsible for not performing any operation that would |
58 // result in persistent implicit records while using an OffTheRecord profile. | 59 // result in persistent implicit records while using an OffTheRecord profile. |
59 // This flag allows the profile to perform an additional check. | 60 // This flag allows the profile to perform an additional check. |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // spellchecker language can be changed without restarting the browser. | 397 // spellchecker language can be changed without restarting the browser. |
397 // NOTE: This is being currently called in the UI thread, which is OK as long | 398 // NOTE: This is being currently called in the UI thread, which is OK as long |
398 // as the spellchecker object is USED in the IO thread. | 399 // as the spellchecker object is USED in the IO thread. |
399 // The |need_to_broadcast| parameter tells it whether to broadcast the new | 400 // The |need_to_broadcast| parameter tells it whether to broadcast the new |
400 // spellchecker to the resource message filters. | 401 // spellchecker to the resource message filters. |
401 void InitializeSpellChecker(bool need_to_broadcast); | 402 void InitializeSpellChecker(bool need_to_broadcast); |
402 | 403 |
403 NotificationRegistrar registrar_; | 404 NotificationRegistrar registrar_; |
404 | 405 |
405 FilePath path_; | 406 FilePath path_; |
| 407 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
406 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 408 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
407 scoped_refptr<ExtensionsService> extensions_service_; | 409 scoped_refptr<ExtensionsService> extensions_service_; |
408 scoped_refptr<UserScriptMaster> user_script_master_; | 410 scoped_refptr<UserScriptMaster> user_script_master_; |
409 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 411 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
410 scoped_ptr<SSLHostState> ssl_host_state_; | 412 scoped_ptr<SSLHostState> ssl_host_state_; |
411 scoped_ptr<net::ForceTLSState> force_tls_state_; | 413 scoped_ptr<net::ForceTLSState> force_tls_state_; |
412 scoped_ptr<PrefService> prefs_; | 414 scoped_ptr<PrefService> prefs_; |
413 scoped_refptr<ThumbnailStore> thumbnail_store_; | 415 scoped_refptr<ThumbnailStore> thumbnail_store_; |
414 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; | 416 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |
415 scoped_ptr<TemplateURLModel> template_url_model_; | 417 scoped_ptr<TemplateURLModel> template_url_model_; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 #endif | 479 #endif |
478 | 480 |
479 // This struct is used to pass the spellchecker object through the notification | 481 // This struct is used to pass the spellchecker object through the notification |
480 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 482 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
481 // notification service. | 483 // notification service. |
482 struct SpellcheckerReinitializedDetails { | 484 struct SpellcheckerReinitializedDetails { |
483 scoped_refptr<SpellChecker> spellchecker; | 485 scoped_refptr<SpellChecker> spellchecker; |
484 }; | 486 }; |
485 | 487 |
486 #endif // CHROME_BROWSER_PROFILE_H_ | 488 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |