| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 class ChromeURLRequestContextGetter; | 54 class ChromeURLRequestContextGetter; |
| 55 class CloudPrintProxyService; | 55 class CloudPrintProxyService; |
| 56 class DesktopNotificationService; | 56 class DesktopNotificationService; |
| 57 class DownloadManager; | 57 class DownloadManager; |
| 58 class Extension; | 58 class Extension; |
| 59 class ExtensionDevToolsManager; | 59 class ExtensionDevToolsManager; |
| 60 class ExtensionEventRouter; | 60 class ExtensionEventRouter; |
| 61 class ExtensionInfoMap; | 61 class ExtensionInfoMap; |
| 62 class ExtensionMessageService; | 62 class ExtensionMessageService; |
| 63 class ExtensionProcessManager; | 63 class ExtensionProcessManager; |
| 64 class ExtensionsService; | 64 class ExtensionService; |
| 65 class FaviconService; | 65 class FaviconService; |
| 66 class FilePath; | 66 class FilePath; |
| 67 class FindBarState; | 67 class FindBarState; |
| 68 class GeolocationContentSettingsMap; | 68 class GeolocationContentSettingsMap; |
| 69 class GeolocationPermissionContext; | 69 class GeolocationPermissionContext; |
| 70 class HistoryService; | 70 class HistoryService; |
| 71 class HostContentSettingsMap; | 71 class HostContentSettingsMap; |
| 72 class HostZoomMap; | 72 class HostZoomMap; |
| 73 class NTPResourceCache; | 73 class NTPResourceCache; |
| 74 class NavigationController; | 74 class NavigationController; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 virtual history::TopSites* GetTopSites() = 0; | 188 virtual history::TopSites* GetTopSites() = 0; |
| 189 | 189 |
| 190 // Variant of GetTopSites that doesn't force creation. | 190 // Variant of GetTopSites that doesn't force creation. |
| 191 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; | 191 virtual history::TopSites* GetTopSitesWithoutCreating() = 0; |
| 192 | 192 |
| 193 // Retrieves a pointer to the VisitedLinkMaster associated with this | 193 // Retrieves a pointer to the VisitedLinkMaster associated with this |
| 194 // profile. The VisitedLinkMaster is lazily created the first time | 194 // profile. The VisitedLinkMaster is lazily created the first time |
| 195 // that this method is called. | 195 // that this method is called. |
| 196 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; | 196 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; |
| 197 | 197 |
| 198 // Retrieves a pointer to the ExtensionsService associated with this | 198 // Retrieves a pointer to the ExtensionService associated with this |
| 199 // profile. The ExtensionsService is created at startup. | 199 // profile. The ExtensionService is created at startup. |
| 200 virtual ExtensionsService* GetExtensionsService() = 0; | 200 virtual ExtensionService* GetExtensionService() = 0; |
| 201 | 201 |
| 202 // Retrieves a pointer to the UserScriptMaster associated with this | 202 // Retrieves a pointer to the UserScriptMaster associated with this |
| 203 // profile. The UserScriptMaster is lazily created the first time | 203 // profile. The UserScriptMaster is lazily created the first time |
| 204 // that this method is called. | 204 // that this method is called. |
| 205 virtual UserScriptMaster* GetUserScriptMaster() = 0; | 205 virtual UserScriptMaster* GetUserScriptMaster() = 0; |
| 206 | 206 |
| 207 // Retrieves a pointer to the ExtensionDevToolsManager associated with this | 207 // Retrieves a pointer to the ExtensionDevToolsManager associated with this |
| 208 // profile. The instance is created at startup. | 208 // profile. The instance is created at startup. |
| 209 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() = 0; | 209 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() = 0; |
| 210 | 210 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 virtual URLRequestContextGetter* GetRequestContext() = 0; | 333 virtual URLRequestContextGetter* GetRequestContext() = 0; |
| 334 | 334 |
| 335 // Returns the request context for media resources asociated with this | 335 // Returns the request context for media resources asociated with this |
| 336 // profile. | 336 // profile. |
| 337 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; | 337 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
| 338 | 338 |
| 339 // Returns the request context used for extension-related requests. This | 339 // Returns the request context used for extension-related requests. This |
| 340 // is only used for a separate cookie store currently. | 340 // is only used for a separate cookie store currently. |
| 341 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; | 341 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| 342 | 342 |
| 343 // Called by the ExtensionsService that lives in this profile. Gives the | 343 // Called by the ExtensionService that lives in this profile. Gives the |
| 344 // profile a chance to react to the load event before the EXTENSION_LOADED | 344 // profile a chance to react to the load event before the EXTENSION_LOADED |
| 345 // notification has fired. The purpose for handling this event first is to | 345 // notification has fired. The purpose for handling this event first is to |
| 346 // avoid race conditions by making sure URLRequestContexts learn about new | 346 // avoid race conditions by making sure URLRequestContexts learn about new |
| 347 // extensions before anything else needs them to know. | 347 // extensions before anything else needs them to know. |
| 348 virtual void RegisterExtensionWithRequestContexts( | 348 virtual void RegisterExtensionWithRequestContexts( |
| 349 const Extension* extension) {} | 349 const Extension* extension) {} |
| 350 | 350 |
| 351 // Called by the ExtensionsService that lives in this profile. Lets the | 351 // Called by the ExtensionService that lives in this profile. Lets the |
| 352 // profile clean up its RequestContexts once all the listeners to the | 352 // profile clean up its RequestContexts once all the listeners to the |
| 353 // EXTENSION_UNLOADED notification have finished running. | 353 // EXTENSION_UNLOADED notification have finished running. |
| 354 virtual void UnregisterExtensionWithRequestContexts( | 354 virtual void UnregisterExtensionWithRequestContexts( |
| 355 const Extension* extension) {} | 355 const Extension* extension) {} |
| 356 | 356 |
| 357 // Returns the SSLConfigService for this profile. | 357 // Returns the SSLConfigService for this profile. |
| 358 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 358 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
| 359 | 359 |
| 360 // Returns the Hostname <-> Content settings map for this profile. | 360 // Returns the Hostname <-> Content settings map for this profile. |
| 361 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 361 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 bool restored_last_session_; | 550 bool restored_last_session_; |
| 551 | 551 |
| 552 // Accessibility events will only be propagated when the pause | 552 // Accessibility events will only be propagated when the pause |
| 553 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 553 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 554 // increment and decrement the level, respectively, rather than set it to | 554 // increment and decrement the level, respectively, rather than set it to |
| 555 // true or false, so that calls can be nested. | 555 // true or false, so that calls can be nested. |
| 556 int accessibility_pause_level_; | 556 int accessibility_pause_level_; |
| 557 }; | 557 }; |
| 558 | 558 |
| 559 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 559 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |