| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 APP_LOCALE_CHANGED_VIA_UNKNOWN | 516 APP_LOCALE_CHANGED_VIA_UNKNOWN |
| 524 }; | 517 }; |
| 525 | 518 |
| 526 // Changes application locale for a profile. | 519 // Changes application locale for a profile. |
| 527 virtual void ChangeAppLocale( | 520 virtual void ChangeAppLocale( |
| 528 const std::string& locale, AppLocaleChangedVia via) = 0; | 521 const std::string& locale, AppLocaleChangedVia via) = 0; |
| 529 | 522 |
| 530 // Called after login. | 523 // Called after login. |
| 531 virtual void OnLogin() = 0; | 524 virtual void OnLogin() = 0; |
| 532 | 525 |
| 533 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | |
| 534 virtual chromeos::ProxyConfigServiceImpl* | |
| 535 GetChromeOSProxyConfigServiceImpl() = 0; | |
| 536 | |
| 537 // Creates ChromeOS's EnterpriseExtensionListener. | 526 // Creates ChromeOS's EnterpriseExtensionListener. |
| 538 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; | 527 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; |
| 539 | 528 |
| 540 // Initializes Chrome OS's preferences. | 529 // Initializes Chrome OS's preferences. |
| 541 virtual void InitChromeOSPreferences() = 0; | 530 virtual void InitChromeOSPreferences() = 0; |
| 542 | |
| 543 #endif // defined(OS_CHROMEOS) | 531 #endif // defined(OS_CHROMEOS) |
| 544 | 532 |
| 545 // Returns the helper object that provides the proxy configuration service | 533 // Returns the helper object that provides the proxy configuration service |
| 546 // access to the the proxy configuration possibly defined by preferences. | 534 // access to the the proxy configuration possibly defined by preferences. |
| 547 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 535 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 548 | 536 |
| 549 // Returns the PrerenderManager used to prerender entire webpages for this | 537 // Returns the PrerenderManager used to prerender entire webpages for this |
| 550 // profile. | 538 // profile. |
| 551 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; | 539 virtual prerender::PrerenderManager* GetPrerenderManager() = 0; |
| 552 | 540 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 bool restored_last_session_; | 588 bool restored_last_session_; |
| 601 | 589 |
| 602 // Accessibility events will only be propagated when the pause | 590 // Accessibility events will only be propagated when the pause |
| 603 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 591 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 604 // increment and decrement the level, respectively, rather than set it to | 592 // increment and decrement the level, respectively, rather than set it to |
| 605 // true or false, so that calls can be nested. | 593 // true or false, so that calls can be nested. |
| 606 int accessibility_pause_level_; | 594 int accessibility_pause_level_; |
| 607 }; | 595 }; |
| 608 | 596 |
| 609 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 597 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |