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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class Time; | 15 class Time; |
16 } | 16 } |
17 | 17 |
18 #if defined(OS_CHROMEOS) | |
19 namespace chromeos { | |
20 class EnterpriseExtensionObserver; | |
21 class ProxyConfigServiceImpl; | |
22 } | |
23 #endif | |
24 | |
25 namespace fileapi { | 18 namespace fileapi { |
26 class FileSystemContext; | 19 class FileSystemContext; |
27 class SandboxedFileSystemContext; | 20 class SandboxedFileSystemContext; |
28 } | 21 } |
29 | 22 |
30 namespace history { | 23 namespace history { |
31 class TopSites; | 24 class TopSites; |
32 } | 25 } |
33 | 26 |
34 namespace net { | 27 namespace net { |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 // From login screen. | 506 // From login screen. |
514 APP_LOCALE_CHANGED_VIA_LOGIN, | 507 APP_LOCALE_CHANGED_VIA_LOGIN, |
515 // Source unknown. | 508 // Source unknown. |
516 APP_LOCALE_CHANGED_VIA_UNKNOWN | 509 APP_LOCALE_CHANGED_VIA_UNKNOWN |
517 }; | 510 }; |
518 | 511 |
519 // Changes application locale for a profile. | 512 // Changes application locale for a profile. |
520 virtual void ChangeAppLocale( | 513 virtual void ChangeAppLocale( |
521 const std::string& locale, AppLocaleChangedVia via) = 0; | 514 const std::string& locale, AppLocaleChangedVia via) = 0; |
522 | 515 |
523 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | |
524 virtual chromeos::ProxyConfigServiceImpl* | |
525 GetChromeOSProxyConfigServiceImpl() = 0; | |
526 | |
527 // Creates ChromeOS's EnterpriseExtensionListener. | 516 // Creates ChromeOS's EnterpriseExtensionListener. |
528 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; | 517 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; |
529 | 518 |
530 // Initializes Chrome OS's preferences. | 519 // Initializes Chrome OS's preferences. |
531 virtual void InitChromeOSPreferences() = 0; | 520 virtual void InitChromeOSPreferences() = 0; |
532 | |
533 #endif // defined(OS_CHROMEOS) | 521 #endif // defined(OS_CHROMEOS) |
534 | 522 |
535 // Returns the helper object that provides the proxy configuration service | 523 // Returns the helper object that provides the proxy configuration service |
536 // access to the the proxy configuration possibly defined by preferences. | 524 // access to the the proxy configuration possibly defined by preferences. |
537 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 525 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
538 | 526 |
539 // Returns the PrerenderManager used to prerender entire webpages for this | 527 // Returns the PrerenderManager used to prerender entire webpages for this |
540 // profile. | 528 // profile. |
541 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; | 529 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; |
542 | 530 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 bool restored_last_session_; | 578 bool restored_last_session_; |
591 | 579 |
592 // Accessibility events will only be propagated when the pause | 580 // Accessibility events will only be propagated when the pause |
593 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 581 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
594 // increment and decrement the level, respectively, rather than set it to | 582 // increment and decrement the level, respectively, rather than set it to |
595 // true or false, so that calls can be nested. | 583 // true or false, so that calls can be nested. |
596 int accessibility_pause_level_; | 584 int accessibility_pause_level_; |
597 }; | 585 }; |
598 | 586 |
599 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 587 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |