OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 // Returns the IO-thread-accessible profile data for this profile. | 478 // Returns the IO-thread-accessible profile data for this profile. |
479 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; | 479 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; |
480 | 480 |
481 // Returns the PromoCounter for Instant, or NULL if not applicable. | 481 // Returns the PromoCounter for Instant, or NULL if not applicable. |
482 virtual PromoCounter* GetInstantPromoCounter() = 0; | 482 virtual PromoCounter* GetInstantPromoCounter() = 0; |
483 | 483 |
484 // Gets the policy context associated with this profile. | 484 // Gets the policy context associated with this profile. |
485 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; | 485 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; |
486 | 486 |
487 #if defined(OS_CHROMEOS) | 487 #if defined(OS_CHROMEOS) |
488 // Changes application locale. | 488 enum AppLocaleChangedVia { |
489 // "Keep local" means that changes should not be propagated to other devices. | 489 // Caused by chrome://settings change. |
490 virtual void ChangeApplicationLocale( | 490 APP_LOCALE_CHANGED_VIA_SETTINGS, |
491 const std::string& locale, bool keep_local) = 0; | 491 // Locale has been reverted via LocaleChangeGuard. |
| 492 APP_LOCALE_CHANGED_VIA_REVERT, |
| 493 // From login screen. |
| 494 APP_LOCALE_CHANGED_VIA_LOGIN, |
| 495 // Source unknown. |
| 496 APP_LOCALE_CHANGED_VIA_UNKNOWN |
| 497 }; |
| 498 |
| 499 // Changes application locale for a profile. |
| 500 virtual void ChangeAppLocale( |
| 501 const std::string& locale, AppLocaleChangedVia via) = 0; |
492 | 502 |
493 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | 503 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. |
494 virtual chromeos::ProxyConfigServiceImpl* | 504 virtual chromeos::ProxyConfigServiceImpl* |
495 GetChromeOSProxyConfigServiceImpl() = 0; | 505 GetChromeOSProxyConfigServiceImpl() = 0; |
496 | 506 |
497 // Creates ChromeOS's EnterpriseExtensionListener. | 507 // Creates ChromeOS's EnterpriseExtensionListener. |
498 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; | 508 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; |
499 | 509 |
500 #endif // defined(OS_CHROMEOS) | 510 #endif // defined(OS_CHROMEOS) |
501 | 511 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 bool restored_last_session_; | 562 bool restored_last_session_; |
553 | 563 |
554 // Accessibility events will only be propagated when the pause | 564 // Accessibility events will only be propagated when the pause |
555 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 565 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
556 // increment and decrement the level, respectively, rather than set it to | 566 // increment and decrement the level, respectively, rather than set it to |
557 // true or false, so that calls can be nested. | 567 // true or false, so that calls can be nested. |
558 int accessibility_pause_level_; | 568 int accessibility_pause_level_; |
559 }; | 569 }; |
560 | 570 |
561 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 571 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |