| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 class HistoryService; | 65 class HistoryService; |
| 66 class HostContentSettingsMap; | 66 class HostContentSettingsMap; |
| 67 class HostZoomMap; | 67 class HostZoomMap; |
| 68 class NavigationController; | 68 class NavigationController; |
| 69 class NTPResourceCache; | 69 class NTPResourceCache; |
| 70 class PasswordStore; | 70 class PasswordStore; |
| 71 class PersonalDataManager; | 71 class PersonalDataManager; |
| 72 class PinnedTabService; | 72 class PinnedTabService; |
| 73 class PrefService; | 73 class PrefService; |
| 74 class ExtensionInfoMap; | 74 class ExtensionInfoMap; |
| 75 class PrefProxyConfigTracker; |
| 75 class PromoCounter; | 76 class PromoCounter; |
| 76 class ProfileSyncService; | 77 class ProfileSyncService; |
| 77 class ProfileSyncFactory; | 78 class ProfileSyncFactory; |
| 78 class SessionService; | 79 class SessionService; |
| 79 class SpellCheckHost; | 80 class SpellCheckHost; |
| 80 class SSLConfigServiceManager; | 81 class SSLConfigServiceManager; |
| 81 class SSLHostState; | 82 class SSLHostState; |
| 82 class StatusTray; | 83 class StatusTray; |
| 83 class TransportSecurityPersister; | 84 class TransportSecurityPersister; |
| 84 class SQLitePersistentCookieStore; | 85 class SQLitePersistentCookieStore; |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 479 |
| 479 // Gets the device management service associated with this profile. | 480 // Gets the device management service associated with this profile. |
| 480 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; | 481 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; |
| 481 | 482 |
| 482 #if defined(OS_CHROMEOS) | 483 #if defined(OS_CHROMEOS) |
| 483 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | 484 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. |
| 484 virtual chromeos::ProxyConfigServiceImpl* | 485 virtual chromeos::ProxyConfigServiceImpl* |
| 485 GetChromeOSProxyConfigServiceImpl() = 0; | 486 GetChromeOSProxyConfigServiceImpl() = 0; |
| 486 #endif // defined(OS_CHROMEOS) | 487 #endif // defined(OS_CHROMEOS) |
| 487 | 488 |
| 489 // Returns the helper object that provides the proxy configuration service |
| 490 // access to the the proxy configuration possibly defined by preferences. |
| 491 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 492 |
| 488 #ifdef UNIT_TEST | 493 #ifdef UNIT_TEST |
| 489 // Use with caution. GetDefaultRequestContext may be called on any thread! | 494 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 490 static void set_default_request_context(URLRequestContextGetter* c) { | 495 static void set_default_request_context(URLRequestContextGetter* c) { |
| 491 default_request_context_ = c; | 496 default_request_context_ = c; |
| 492 } | 497 } |
| 493 #endif | 498 #endif |
| 494 | 499 |
| 495 // Did the user restore the last session? This is set by SessionRestore. | 500 // Did the user restore the last session? This is set by SessionRestore. |
| 496 void set_restored_last_session(bool restored_last_session) { | 501 void set_restored_last_session(bool restored_last_session) { |
| 497 restored_last_session_ = restored_last_session; | 502 restored_last_session_ = restored_last_session; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 bool restored_last_session_; | 535 bool restored_last_session_; |
| 531 | 536 |
| 532 // Accessibility events will only be propagated when the pause | 537 // Accessibility events will only be propagated when the pause |
| 533 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 538 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 534 // increment and decrement the level, respectively, rather than set it to | 539 // increment and decrement the level, respectively, rather than set it to |
| 535 // true or false, so that calls can be nested. | 540 // true or false, so that calls can be nested. |
| 536 int accessibility_pause_level_; | 541 int accessibility_pause_level_; |
| 537 }; | 542 }; |
| 538 | 543 |
| 539 #endif // CHROME_BROWSER_PROFILE_H_ | 544 #endif // CHROME_BROWSER_PROFILE_H_ |
| OLD | NEW |