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