| 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 DeviceManagementPolicyProvider; | 34 class ProfilePolicyContext; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace webkit_database { | 37 namespace webkit_database { |
| 38 class DatabaseTracker; | 38 class DatabaseTracker; |
| 39 } | 39 } |
| 40 | 40 |
| 41 class AutocompleteClassifier; | 41 class AutocompleteClassifier; |
| 42 class BackgroundContentsService; | 42 class BackgroundContentsService; |
| 43 class BackgroundModeManager; | 43 class BackgroundModeManager; |
| 44 class BookmarkModel; | 44 class BookmarkModel; |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 // Returns a pointer to the ChromeBlobStorageContext instance for this | 469 // Returns a pointer to the ChromeBlobStorageContext instance for this |
| 470 // profile. | 470 // profile. |
| 471 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; | 471 virtual ChromeBlobStorageContext* GetBlobStorageContext() = 0; |
| 472 | 472 |
| 473 // Returns the IO-thread-accessible profile data for this profile. | 473 // Returns the IO-thread-accessible profile data for this profile. |
| 474 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; | 474 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; |
| 475 | 475 |
| 476 // Returns the PromoCounter for Instant, or NULL if not applicable. | 476 // Returns the PromoCounter for Instant, or NULL if not applicable. |
| 477 virtual PromoCounter* GetInstantPromoCounter() = 0; | 477 virtual PromoCounter* GetInstantPromoCounter() = 0; |
| 478 | 478 |
| 479 // Get the device management policy provider for this profile. | 479 // Gets the device management service associated with this profile. |
| 480 virtual policy::DeviceManagementPolicyProvider* | 480 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; |
| 481 GetDeviceManagementPolicyProvider() = 0; | |
| 482 | 481 |
| 483 #if defined(OS_CHROMEOS) | 482 #if defined(OS_CHROMEOS) |
| 484 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | 483 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. |
| 485 virtual chromeos::ProxyConfigServiceImpl* | 484 virtual chromeos::ProxyConfigServiceImpl* |
| 486 GetChromeOSProxyConfigServiceImpl() = 0; | 485 GetChromeOSProxyConfigServiceImpl() = 0; |
| 487 #endif // defined(OS_CHROMEOS) | 486 #endif // defined(OS_CHROMEOS) |
| 488 | 487 |
| 489 #ifdef UNIT_TEST | 488 #ifdef UNIT_TEST |
| 490 // Use with caution. GetDefaultRequestContext may be called on any thread! | 489 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 491 static void set_default_request_context(URLRequestContextGetter* c) { | 490 static void set_default_request_context(URLRequestContextGetter* c) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 bool restored_last_session_; | 530 bool restored_last_session_; |
| 532 | 531 |
| 533 // Accessibility events will only be propagated when the pause | 532 // Accessibility events will only be propagated when the pause |
| 534 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 533 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 535 // increment and decrement the level, respectively, rather than set it to | 534 // increment and decrement the level, respectively, rather than set it to |
| 536 // true or false, so that calls can be nested. | 535 // true or false, so that calls can be nested. |
| 537 int accessibility_pause_level_; | 536 int accessibility_pause_level_; |
| 538 }; | 537 }; |
| 539 | 538 |
| 540 #endif // CHROME_BROWSER_PROFILE_H_ | 539 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |