| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 class BookmarkModel; | 22 class BookmarkModel; |
| 23 class ChromeURLRequestContext; | 23 class ChromeURLRequestContext; |
| 24 class DownloadManager; | 24 class DownloadManager; |
| 25 class ExtensionsService; | 25 class ExtensionsService; |
| 26 class HistoryService; | 26 class HistoryService; |
| 27 class NavigationController; | 27 class NavigationController; |
| 28 class PrefService; | 28 class PrefService; |
| 29 class SessionService; | 29 class SessionService; |
| 30 class SpellChecker; | 30 class SpellChecker; |
| 31 class SSLHostState; |
| 31 class TabRestoreService; | 32 class TabRestoreService; |
| 32 class TemplateURLFetcher; | 33 class TemplateURLFetcher; |
| 33 class TemplateURLModel; | 34 class TemplateURLModel; |
| 34 class URLRequestContext; | 35 class URLRequestContext; |
| 35 class UserScriptMaster; | 36 class UserScriptMaster; |
| 36 class VisitedLinkMaster; | 37 class VisitedLinkMaster; |
| 37 class WebDataService; | 38 class WebDataService; |
| 38 | 39 |
| 39 class Profile { | 40 class Profile { |
| 40 public: | 41 public: |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 // Retrieves a pointer to the ExtensionsService associated with this | 105 // Retrieves a pointer to the ExtensionsService associated with this |
| 105 // profile. The ExtensionsService is created at startup. | 106 // profile. The ExtensionsService is created at startup. |
| 106 virtual ExtensionsService* GetExtensionsService() = 0; | 107 virtual ExtensionsService* GetExtensionsService() = 0; |
| 107 | 108 |
| 108 // Retrieves a pointer to the UserScriptMaster associated with this | 109 // Retrieves a pointer to the UserScriptMaster associated with this |
| 109 // profile. The UserScriptMaster is lazily created the first time | 110 // profile. The UserScriptMaster is lazily created the first time |
| 110 // that this method is called. | 111 // that this method is called. |
| 111 virtual UserScriptMaster* GetUserScriptMaster() = 0; | 112 virtual UserScriptMaster* GetUserScriptMaster() = 0; |
| 112 | 113 |
| 114 // Retrieves a pointer to the SSLHostState associated with this profile. |
| 115 // The SSLHostState is lazily created the first time that this method is |
| 116 // called. |
| 117 virtual SSLHostState* GetSSLHostState() = 0; |
| 118 |
| 113 // Retrieves a pointer to the HistoryService associated with this | 119 // Retrieves a pointer to the HistoryService associated with this |
| 114 // profile. The HistoryService is lazily created the first time | 120 // profile. The HistoryService is lazily created the first time |
| 115 // that this method is called. | 121 // that this method is called. |
| 116 // | 122 // |
| 117 // Although HistoryService is refcounted, this will not addref, and callers | 123 // Although HistoryService is refcounted, this will not addref, and callers |
| 118 // do not need to do any reference counting as long as they keep the pointer | 124 // do not need to do any reference counting as long as they keep the pointer |
| 119 // only for the local scope (which they should do anyway since the browser | 125 // only for the local scope (which they should do anyway since the browser |
| 120 // process may decide to shut down). | 126 // process may decide to shut down). |
| 121 // | 127 // |
| 122 // |access| defines what the caller plans to do with the service. See | 128 // |access| defines what the caller plans to do with the service. See |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 public: | 260 public: |
| 255 virtual ~ProfileImpl(); | 261 virtual ~ProfileImpl(); |
| 256 | 262 |
| 257 // Profile implementation. | 263 // Profile implementation. |
| 258 virtual FilePath GetPath(); | 264 virtual FilePath GetPath(); |
| 259 virtual bool IsOffTheRecord(); | 265 virtual bool IsOffTheRecord(); |
| 260 virtual Profile* GetOffTheRecordProfile(); | 266 virtual Profile* GetOffTheRecordProfile(); |
| 261 virtual Profile* GetOriginalProfile(); | 267 virtual Profile* GetOriginalProfile(); |
| 262 virtual VisitedLinkMaster* GetVisitedLinkMaster(); | 268 virtual VisitedLinkMaster* GetVisitedLinkMaster(); |
| 263 virtual UserScriptMaster* GetUserScriptMaster(); | 269 virtual UserScriptMaster* GetUserScriptMaster(); |
| 270 virtual SSLHostState* GetSSLHostState(); |
| 264 virtual ExtensionsService* GetExtensionsService(); | 271 virtual ExtensionsService* GetExtensionsService(); |
| 265 virtual HistoryService* GetHistoryService(ServiceAccessType sat); | 272 virtual HistoryService* GetHistoryService(ServiceAccessType sat); |
| 266 virtual WebDataService* GetWebDataService(ServiceAccessType sat); | 273 virtual WebDataService* GetWebDataService(ServiceAccessType sat); |
| 267 virtual PrefService* GetPrefs(); | 274 virtual PrefService* GetPrefs(); |
| 268 virtual TemplateURLModel* GetTemplateURLModel(); | 275 virtual TemplateURLModel* GetTemplateURLModel(); |
| 269 virtual TemplateURLFetcher* GetTemplateURLFetcher(); | 276 virtual TemplateURLFetcher* GetTemplateURLFetcher(); |
| 270 virtual DownloadManager* GetDownloadManager(); | 277 virtual DownloadManager* GetDownloadManager(); |
| 271 virtual bool HasCreatedDownloadManager() const; | 278 virtual bool HasCreatedDownloadManager() const; |
| 272 virtual URLRequestContext* GetRequestContext(); | 279 virtual URLRequestContext* GetRequestContext(); |
| 273 virtual SessionService* GetSessionService(); | 280 virtual SessionService* GetSessionService(); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 // as the spellchecker object is USED in the IO thread. | 323 // as the spellchecker object is USED in the IO thread. |
| 317 // The |need_to_broadcast| parameter tells it whether to broadcast the new | 324 // The |need_to_broadcast| parameter tells it whether to broadcast the new |
| 318 // spellchecker to the resource message filters. | 325 // spellchecker to the resource message filters. |
| 319 void InitializeSpellChecker(bool need_to_broadcast); | 326 void InitializeSpellChecker(bool need_to_broadcast); |
| 320 | 327 |
| 321 FilePath path_; | 328 FilePath path_; |
| 322 bool off_the_record_; | 329 bool off_the_record_; |
| 323 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 330 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
| 324 scoped_refptr<ExtensionsService> extensions_service_; | 331 scoped_refptr<ExtensionsService> extensions_service_; |
| 325 scoped_refptr<UserScriptMaster> user_script_master_; | 332 scoped_refptr<UserScriptMaster> user_script_master_; |
| 333 scoped_ptr<SSLHostState> ssl_host_state_; |
| 326 scoped_ptr<PrefService> prefs_; | 334 scoped_ptr<PrefService> prefs_; |
| 327 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; | 335 scoped_ptr<TemplateURLFetcher> template_url_fetcher_; |
| 328 scoped_ptr<TemplateURLModel> template_url_model_; | 336 scoped_ptr<TemplateURLModel> template_url_model_; |
| 329 scoped_ptr<BookmarkModel> bookmark_bar_model_; | 337 scoped_ptr<BookmarkModel> bookmark_bar_model_; |
| 330 | 338 |
| 331 #ifdef CHROME_PERSONALIZATION | 339 #ifdef CHROME_PERSONALIZATION |
| 332 scoped_ptr<ProfilePersonalization> personalization_; | 340 scoped_ptr<ProfilePersonalization> personalization_; |
| 333 #endif | 341 #endif |
| 334 | 342 |
| 335 ChromeURLRequestContext* request_context_; | 343 ChromeURLRequestContext* request_context_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 #endif | 386 #endif |
| 379 | 387 |
| 380 // This struct is used to pass the spellchecker object through the notification | 388 // This struct is used to pass the spellchecker object through the notification |
| 381 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 389 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
| 382 // notification service. | 390 // notification service. |
| 383 struct SpellcheckerReinitializedDetails { | 391 struct SpellcheckerReinitializedDetails { |
| 384 scoped_refptr<SpellChecker> spellchecker; | 392 scoped_refptr<SpellChecker> spellchecker; |
| 385 }; | 393 }; |
| 386 | 394 |
| 387 #endif // CHROME_BROWSER_PROFILE_H_ | 395 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |