| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROFILES_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 class FileSystemContext; | 33 class FileSystemContext; |
| 34 class SandboxedFileSystemContext; | 34 class SandboxedFileSystemContext; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace history { | 37 namespace history { |
| 38 class TopSites; | 38 class TopSites; |
| 39 class ShortcutsBackend; | 39 class ShortcutsBackend; |
| 40 } | 40 } |
| 41 | 41 |
| 42 namespace net { | 42 namespace net { |
| 43 class TransportSecurityState; | |
| 44 class SSLConfigService; | 43 class SSLConfigService; |
| 45 } | 44 } |
| 46 | 45 |
| 47 namespace prerender { | 46 namespace prerender { |
| 48 class PrerenderManager; | 47 class PrerenderManager; |
| 49 } | 48 } |
| 50 | 49 |
| 51 namespace speech_input { | 50 namespace speech_input { |
| 52 class SpeechRecognizer; | 51 class SpeechRecognizer; |
| 53 } | 52 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 82 class ProfileSyncFactory; | 81 class ProfileSyncFactory; |
| 83 class ProfileSyncService; | 82 class ProfileSyncService; |
| 84 class PromoCounter; | 83 class PromoCounter; |
| 85 class PromoResourceService; | 84 class PromoResourceService; |
| 86 class ProtocolHandlerRegistry; | 85 class ProtocolHandlerRegistry; |
| 87 class SQLitePersistentCookieStore; | 86 class SQLitePersistentCookieStore; |
| 88 class SSLConfigServiceManager; | 87 class SSLConfigServiceManager; |
| 89 class SpellCheckHost; | 88 class SpellCheckHost; |
| 90 class TemplateURLFetcher; | 89 class TemplateURLFetcher; |
| 91 class TokenService; | 90 class TokenService; |
| 92 class TransportSecurityPersister; | |
| 93 class UserScriptMaster; | 91 class UserScriptMaster; |
| 94 class UserStyleSheetWatcher; | 92 class UserStyleSheetWatcher; |
| 95 class VisitedLinkEventListener; | 93 class VisitedLinkEventListener; |
| 96 class VisitedLinkMaster; | 94 class VisitedLinkMaster; |
| 97 class WebDataService; | 95 class WebDataService; |
| 98 class WebUI; | 96 class WebUI; |
| 99 | 97 |
| 100 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 98 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) |
| 101 // Local profile ids are used to associate resources stored outside the profile | 99 // Local profile ids are used to associate resources stored outside the profile |
| 102 // directory, like saved passwords in GNOME Keyring / KWallet, with a profile. | 100 // directory, like saved passwords in GNOME Keyring / KWallet, with a profile. |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // profile. The instance is created at startup. | 268 // profile. The instance is created at startup. |
| 271 virtual ExtensionMessageService* GetExtensionMessageService() = 0; | 269 virtual ExtensionMessageService* GetExtensionMessageService() = 0; |
| 272 | 270 |
| 273 // Accessor. The instance is created at startup. | 271 // Accessor. The instance is created at startup. |
| 274 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0; | 272 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0; |
| 275 | 273 |
| 276 // Accessor. The instance is created upon first access. | 274 // Accessor. The instance is created upon first access. |
| 277 virtual ExtensionSpecialStoragePolicy* | 275 virtual ExtensionSpecialStoragePolicy* |
| 278 GetExtensionSpecialStoragePolicy() = 0; | 276 GetExtensionSpecialStoragePolicy() = 0; |
| 279 | 277 |
| 280 // Retrieves a pointer to the TransportSecurityState associated with | |
| 281 // this profile. The TransportSecurityState is lazily created the | |
| 282 // first time that this method is called. | |
| 283 virtual net::TransportSecurityState* GetTransportSecurityState() = 0; | |
| 284 | |
| 285 // Retrieves a pointer to the FaviconService associated with this | 278 // Retrieves a pointer to the FaviconService associated with this |
| 286 // profile. The FaviconService is lazily created the first time | 279 // profile. The FaviconService is lazily created the first time |
| 287 // that this method is called. | 280 // that this method is called. |
| 288 // | 281 // |
| 289 // Although FaviconService is refcounted, this will not addref, and callers | 282 // Although FaviconService is refcounted, this will not addref, and callers |
| 290 // do not need to do any reference counting as long as they keep the pointer | 283 // do not need to do any reference counting as long as they keep the pointer |
| 291 // only for the local scope (which they should do anyway since the browser | 284 // only for the local scope (which they should do anyway since the browser |
| 292 // process may decide to shut down). | 285 // process may decide to shut down). |
| 293 // | 286 // |
| 294 // |access| defines what the caller plans to do with the service. See | 287 // |access| defines what the caller plans to do with the service. See |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 // access to the the proxy configuration possibly defined by preferences. | 490 // access to the the proxy configuration possibly defined by preferences. |
| 498 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 491 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 499 | 492 |
| 500 // Returns the PrerenderManager used to prerender entire webpages for this | 493 // Returns the PrerenderManager used to prerender entire webpages for this |
| 501 // profile. | 494 // profile. |
| 502 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; | 495 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; |
| 503 | 496 |
| 504 // Returns the Predictor object used for dns prefetch. | 497 // Returns the Predictor object used for dns prefetch. |
| 505 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 498 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
| 506 | 499 |
| 500 // Deletes transport security state since |time|. The implementation |
| 501 // is free to run this on a background thread, so when this method |
| 502 // returns data is not guaranteed to be deleted. |
| 503 virtual void DeleteTransportSecurityStateSince(const base::Time& time) = 0; |
| 504 |
| 507 std::string GetDebugName(); | 505 std::string GetDebugName(); |
| 508 | 506 |
| 509 // Returns whether it is a guest session. | 507 // Returns whether it is a guest session. |
| 510 static bool IsGuestSession(); | 508 static bool IsGuestSession(); |
| 511 | 509 |
| 512 #ifdef UNIT_TEST | 510 #ifdef UNIT_TEST |
| 513 // Use with caution. GetDefaultRequestContext may be called on any thread! | 511 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 514 static void set_default_request_context(net::URLRequestContextGetter* c) { | 512 static void set_default_request_context(net::URLRequestContextGetter* c) { |
| 515 default_request_context_ = c; | 513 default_request_context_ = c; |
| 516 } | 514 } |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 struct hash<Profile*> { | 583 struct hash<Profile*> { |
| 586 std::size_t operator()(Profile* const& p) const { | 584 std::size_t operator()(Profile* const& p) const { |
| 587 return reinterpret_cast<std::size_t>(p); | 585 return reinterpret_cast<std::size_t>(p); |
| 588 } | 586 } |
| 589 }; | 587 }; |
| 590 | 588 |
| 591 } // namespace __gnu_cxx | 589 } // namespace __gnu_cxx |
| 592 #endif | 590 #endif |
| 593 | 591 |
| 594 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |