| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 67 class HistoryService; | 67 class HistoryService; | 
| 68 class HostContentSettingsMap; | 68 class HostContentSettingsMap; | 
| 69 class NavigationController; | 69 class NavigationController; | 
| 70 class PasswordStore; | 70 class PasswordStore; | 
| 71 class PersonalDataManager; | 71 class PersonalDataManager; | 
| 72 class PrefProxyConfigTracker; | 72 class PrefProxyConfigTracker; | 
| 73 class PrefService; | 73 class PrefService; | 
| 74 class ProfileSyncFactory; | 74 class ProfileSyncFactory; | 
| 75 class ProfileSyncService; | 75 class ProfileSyncService; | 
| 76 class PromoCounter; | 76 class PromoCounter; | 
|  | 77 class PromoResourceService; | 
| 77 class ProtocolHandlerRegistry; | 78 class ProtocolHandlerRegistry; | 
| 78 class SQLitePersistentCookieStore; | 79 class SQLitePersistentCookieStore; | 
| 79 class SSLConfigServiceManager; | 80 class SSLConfigServiceManager; | 
| 80 class SpellCheckHost; | 81 class SpellCheckHost; | 
| 81 class TemplateURLFetcher; | 82 class TemplateURLFetcher; | 
| 82 class TokenService; | 83 class TokenService; | 
| 83 class TransportSecurityPersister; | 84 class TransportSecurityPersister; | 
| 84 class UserScriptMaster; | 85 class UserScriptMaster; | 
| 85 class UserStyleSheetWatcher; | 86 class UserStyleSheetWatcher; | 
| 86 class VisitedLinkEventListener; | 87 class VisitedLinkEventListener; | 
| 87 class VisitedLinkMaster; | 88 class VisitedLinkMaster; | 
| 88 class WebDataService; | 89 class WebDataService; | 
| 89 class PromoResourceService; | 90 class WebUI; | 
| 90 | 91 | 
| 91 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 92 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX) | 
| 92 // Local profile ids are used to associate resources stored outside the profile | 93 // Local profile ids are used to associate resources stored outside the profile | 
| 93 // directory, like saved passwords in GNOME Keyring / KWallet, with a profile. | 94 // directory, like saved passwords in GNOME Keyring / KWallet, with a profile. | 
| 94 // With high probability, they are unique on the local machine. They are almost | 95 // With high probability, they are unique on the local machine. They are almost | 
| 95 // certainly not unique globally, by design. Do not send them over the network. | 96 // certainly not unique globally, by design. Do not send them over the network. | 
| 96 typedef int LocalProfileId; | 97 typedef int LocalProfileId; | 
| 97 #endif | 98 #endif | 
| 98 | 99 | 
| 99 class Profile : public content::BrowserContext { | 100 class Profile : public content::BrowserContext { | 
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 176   // Create a new profile given a path. | 177   // Create a new profile given a path. | 
| 177   static Profile* CreateProfile(const FilePath& path); | 178   static Profile* CreateProfile(const FilePath& path); | 
| 178 | 179 | 
| 179   // Same as above, but uses async initialization. | 180   // Same as above, but uses async initialization. | 
| 180   static Profile* CreateProfileAsync(const FilePath& path, | 181   static Profile* CreateProfileAsync(const FilePath& path, | 
| 181                                      Delegate* delegate); | 182                                      Delegate* delegate); | 
| 182 | 183 | 
| 183   // Returns the profile corresponding to the given browser context. | 184   // Returns the profile corresponding to the given browser context. | 
| 184   static Profile* FromBrowserContext(content::BrowserContext* browser_context); | 185   static Profile* FromBrowserContext(content::BrowserContext* browser_context); | 
| 185 | 186 | 
|  | 187   // Returns the profile corresponding to the given WebUI. | 
|  | 188   static Profile* FromWebUI(WebUI* web_ui); | 
|  | 189 | 
| 186   // content::BrowserContext implementation ------------------------------------ | 190   // content::BrowserContext implementation ------------------------------------ | 
| 187 | 191 | 
| 188   virtual FilePath GetPath() = 0; | 192   virtual FilePath GetPath() = 0; | 
| 189   virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 193   virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; | 
| 190   virtual SSLHostState* GetSSLHostState() = 0; | 194   virtual SSLHostState* GetSSLHostState() = 0; | 
| 191   virtual DownloadManager* GetDownloadManager() = 0; | 195   virtual DownloadManager* GetDownloadManager() = 0; | 
| 192   virtual bool HasCreatedDownloadManager() const = 0; | 196   virtual bool HasCreatedDownloadManager() const = 0; | 
| 193   virtual quota::QuotaManager* GetQuotaManager() = 0; | 197   virtual quota::QuotaManager* GetQuotaManager() = 0; | 
| 194   virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 198   virtual net::URLRequestContextGetter* GetRequestContext() = 0; | 
| 195   virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 199   virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( | 
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 582 struct hash<Profile*> { | 586 struct hash<Profile*> { | 
| 583   std::size_t operator()(Profile* const& p) const { | 587   std::size_t operator()(Profile* const& p) const { | 
| 584     return reinterpret_cast<std::size_t>(p); | 588     return reinterpret_cast<std::size_t>(p); | 
| 585   } | 589   } | 
| 586 }; | 590 }; | 
| 587 | 591 | 
| 588 }  // namespace __gnu_cxx | 592 }  // namespace __gnu_cxx | 
| 589 #endif | 593 #endif | 
| 590 | 594 | 
| 591 #endif  // CHROME_BROWSER_PROFILES_PROFILE_H_ | 595 #endif  // CHROME_BROWSER_PROFILES_PROFILE_H_ | 
| OLD | NEW | 
|---|