| OLD | NEW | 
|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 175                                      Delegate* delegate); | 175                                      Delegate* delegate); | 
| 176 | 176 | 
| 177   // Returns the profile corresponding to the given browser context. | 177   // Returns the profile corresponding to the given browser context. | 
| 178   static Profile* FromBrowserContext(content::BrowserContext* browser_context); | 178   static Profile* FromBrowserContext(content::BrowserContext* browser_context); | 
| 179 | 179 | 
| 180   // Returns the profile corresponding to the given WebUI. | 180   // Returns the profile corresponding to the given WebUI. | 
| 181   static Profile* FromWebUI(content::WebUI* web_ui); | 181   static Profile* FromWebUI(content::WebUI* web_ui); | 
| 182 | 182 | 
| 183   // content::BrowserContext implementation ------------------------------------ | 183   // content::BrowserContext implementation ------------------------------------ | 
| 184 | 184 | 
| 185   virtual FilePath GetPath() = 0; |  | 
| 186   virtual content::DownloadManager* GetDownloadManager() = 0; |  | 
| 187   virtual net::URLRequestContextGetter* GetRequestContext() = 0; |  | 
| 188   virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( |  | 
| 189       int renderer_child_id) = 0; |  | 
| 190   virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; |  | 
| 191   virtual content::ResourceContext* GetResourceContext() = 0; |  | 
| 192   virtual content::HostZoomMap* GetHostZoomMap() = 0; |  | 
| 193   virtual content::GeolocationPermissionContext* |  | 
| 194       GetGeolocationPermissionContext() = 0; |  | 
| 195   virtual content::SpeechInputPreferences* GetSpeechInputPreferences() = 0; |  | 
| 196   virtual quota::QuotaManager* GetQuotaManager() = 0; |  | 
| 197   virtual webkit_database::DatabaseTracker* GetDatabaseTracker() = 0; |  | 
| 198   virtual WebKitContext* GetWebKitContext() = 0; |  | 
| 199   virtual ChromeAppCacheService* GetAppCacheService() = 0; |  | 
| 200   virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |  | 
| 201   virtual fileapi::FileSystemContext* GetFileSystemContext() = 0; |  | 
| 202 |  | 
| 203   // content::BrowserContext implementation ------------------------------------ |  | 
| 204 |  | 
| 205   // Typesafe upcast. | 185   // Typesafe upcast. | 
| 206   virtual TestingProfile* AsTestingProfile(); | 186   virtual TestingProfile* AsTestingProfile(); | 
| 207 | 187 | 
| 208   // Returns the name associated with this profile. This name is displayed in | 188   // Returns the name associated with this profile. This name is displayed in | 
| 209   // the browser frame. | 189   // the browser frame. | 
| 210   virtual std::string GetProfileName() = 0; | 190   virtual std::string GetProfileName() = 0; | 
| 211 | 191 | 
| 212   // Return whether this profile is incognito. Default is false. | 192   // Return whether this profile is incognito. Default is false. | 
| 213   virtual bool IsOffTheRecord() = 0; | 193   virtual bool IsOffTheRecord() = 0; | 
| 214 | 194 | 
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 371 | 351 | 
| 372   // Returns the SSLConfigService for this profile. | 352   // Returns the SSLConfigService for this profile. | 
| 373   virtual net::SSLConfigService* GetSSLConfigService() = 0; | 353   virtual net::SSLConfigService* GetSSLConfigService() = 0; | 
| 374 | 354 | 
| 375   // Returns the Hostname <-> Content settings map for this profile. | 355   // Returns the Hostname <-> Content settings map for this profile. | 
| 376   virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 356   virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 
| 377 | 357 | 
| 378   // Returns the user style sheet watcher. | 358   // Returns the user style sheet watcher. | 
| 379   virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; | 359   virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; | 
| 380 | 360 | 
| 381   // Returns true if the last time this profile was open it was exited cleanly. |  | 
| 382   virtual bool DidLastSessionExitCleanly() = 0; |  | 
| 383 |  | 
| 384   // Returns the BookmarkModel, creating if not yet created. | 361   // Returns the BookmarkModel, creating if not yet created. | 
| 385   virtual BookmarkModel* GetBookmarkModel() = 0; | 362   virtual BookmarkModel* GetBookmarkModel() = 0; | 
| 386 | 363 | 
| 387   // Returns the ProtocolHandlerRegistry, creating if not yet created. | 364   // Returns the ProtocolHandlerRegistry, creating if not yet created. | 
| 388   virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; | 365   virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() = 0; | 
| 389 | 366 | 
| 390   // Returns the Gaia Token Service, creating if not yet created. | 367   // Returns the Gaia Token Service, creating if not yet created. | 
| 391   virtual TokenService* GetTokenService() = 0; | 368   virtual TokenService* GetTokenService() = 0; | 
| 392 | 369 | 
| 393   // Return whether 2 profiles are the same. 2 profiles are the same if they | 370   // Return whether 2 profiles are the same. 2 profiles are the same if they | 
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 552 struct hash<Profile*> { | 529 struct hash<Profile*> { | 
| 553   std::size_t operator()(Profile* const& p) const { | 530   std::size_t operator()(Profile* const& p) const { | 
| 554     return reinterpret_cast<std::size_t>(p); | 531     return reinterpret_cast<std::size_t>(p); | 
| 555   } | 532   } | 
| 556 }; | 533 }; | 
| 557 | 534 | 
| 558 }  // namespace BASE_HASH_NAMESPACE | 535 }  // namespace BASE_HASH_NAMESPACE | 
| 559 #endif | 536 #endif | 
| 560 | 537 | 
| 561 #endif  // CHROME_BROWSER_PROFILES_PROFILE_H_ | 538 #endif  // CHROME_BROWSER_PROFILES_PROFILE_H_ | 
| OLD | NEW | 
|---|