Chromium Code Reviews| 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_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_H_ |
| 8 #define CHROME_BROWSER_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 24 namespace history { | 24 namespace history { |
| 25 class TopSites; | 25 class TopSites; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace net { | 28 namespace net { |
| 29 class TransportSecurityState; | 29 class TransportSecurityState; |
| 30 class SSLConfigService; | 30 class SSLConfigService; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace policy { | 33 namespace policy { |
| 34 class DeviceManagementService; | |
| 34 class DeviceManagementPolicyProvider; | 35 class DeviceManagementPolicyProvider; |
| 35 } | 36 } |
| 36 | 37 |
| 37 namespace webkit_database { | 38 namespace webkit_database { |
| 38 class DatabaseTracker; | 39 class DatabaseTracker; |
| 39 } | 40 } |
| 40 | 41 |
| 41 class AutocompleteClassifier; | 42 class AutocompleteClassifier; |
| 42 class BackgroundContentsService; | 43 class BackgroundContentsService; |
| 43 class BackgroundModeManager; | 44 class BackgroundModeManager; |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 // Returns a pointer to the ChromeBlobStorageContext instance for this | 470 // Returns a pointer to the ChromeBlobStorageContext instance for this |
| 470 // profile. | 471 // profile. |
| 471 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 472 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
| 472 | 473 |
| 473 // Returns the IO-thread-accessible profile data for this profile. | 474 // Returns the IO-thread-accessible profile data for this profile. |
| 474 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; | 475 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; |
| 475 | 476 |
| 476 // Returns the PromoCounter for Instant, or NULL if not applicable. | 477 // Returns the PromoCounter for Instant, or NULL if not applicable. |
| 477 virtual PromoCounter* GetInstantPromoCounter() = 0; | 478 virtual PromoCounter* GetInstantPromoCounter() = 0; |
| 478 | 479 |
| 480 // Gets the device management service associated with this profile. | |
| 481 virtual policy::DeviceManagementService* GetDeviceManagementService() = 0; | |
|
Nico
2010/11/18 15:36:33
Do you think it might be worth it to have a Policy
Mattias Nissler (ping if slow)
2010/11/19 16:03:56
That is definitely worthwile. I created a new Poli
| |
| 482 | |
| 479 // Get the device management policy provider for this profile. | 483 // Get the device management policy provider for this profile. |
| 480 virtual policy::DeviceManagementPolicyProvider* | 484 virtual policy::DeviceManagementPolicyProvider* |
| 481 GetDeviceManagementPolicyProvider() = 0; | 485 GetDeviceManagementPolicyProvider() = 0; |
| 482 | 486 |
| 483 #if defined(OS_CHROMEOS) | 487 #if defined(OS_CHROMEOS) |
| 484 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | 488 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. |
| 485 virtual chromeos::ProxyConfigServiceImpl* | 489 virtual chromeos::ProxyConfigServiceImpl* |
| 486 GetChromeOSProxyConfigServiceImpl() = 0; | 490 GetChromeOSProxyConfigServiceImpl() = 0; |
| 487 #endif // defined(OS_CHROMEOS) | 491 #endif // defined(OS_CHROMEOS) |
| 488 | 492 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 531 bool restored_last_session_; | 535 bool restored_last_session_; |
| 532 | 536 |
| 533 // Accessibility events will only be propagated when the pause | 537 // Accessibility events will only be propagated when the pause |
| 534 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 538 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 535 // increment and decrement the level, respectively, rather than set it to | 539 // increment and decrement the level, respectively, rather than set it to |
| 536 // true or false, so that calls can be nested. | 540 // true or false, so that calls can be nested. |
| 537 int accessibility_pause_level_; | 541 int accessibility_pause_level_; |
| 538 }; | 542 }; |
| 539 | 543 |
| 540 #endif // CHROME_BROWSER_PROFILE_H_ | 544 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |