| OLD | NEW |
| 1 // Copyright (c) 2010 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" |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0; | 219 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0; |
| 220 | 220 |
| 221 // Retrieves a pointer to the SSLHostState associated with this profile. | 221 // Retrieves a pointer to the SSLHostState associated with this profile. |
| 222 // The SSLHostState is lazily created the first time that this method is | 222 // The SSLHostState is lazily created the first time that this method is |
| 223 // called. | 223 // called. |
| 224 virtual SSLHostState* GetSSLHostState() = 0; | 224 virtual SSLHostState* GetSSLHostState() = 0; |
| 225 | 225 |
| 226 // Retrieves a pointer to the TransportSecurityState associated with | 226 // Retrieves a pointer to the TransportSecurityState associated with |
| 227 // this profile. The TransportSecurityState is lazily created the | 227 // this profile. The TransportSecurityState is lazily created the |
| 228 // first time that this method is called. | 228 // first time that this method is called. |
| 229 virtual net::TransportSecurityState* | 229 virtual net::TransportSecurityState* GetTransportSecurityState() = 0; |
| 230 GetTransportSecurityState() = 0; | |
| 231 | 230 |
| 232 // Retrieves a pointer to the FaviconService associated with this | 231 // Retrieves a pointer to the FaviconService associated with this |
| 233 // profile. The FaviconService is lazily created the first time | 232 // profile. The FaviconService is lazily created the first time |
| 234 // that this method is called. | 233 // that this method is called. |
| 235 // | 234 // |
| 236 // Although FaviconService is refcounted, this will not addref, and callers | 235 // Although FaviconService is refcounted, this will not addref, and callers |
| 237 // do not need to do any reference counting as long as they keep the pointer | 236 // do not need to do any reference counting as long as they keep the pointer |
| 238 // only for the local scope (which they should do anyway since the browser | 237 // only for the local scope (which they should do anyway since the browser |
| 239 // process may decide to shut down). | 238 // process may decide to shut down). |
| 240 // | 239 // |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 // Returns the IO-thread-accessible profile data for this profile. | 479 // Returns the IO-thread-accessible profile data for this profile. |
| 481 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; | 480 virtual ExtensionInfoMap* GetExtensionInfoMap() = 0; |
| 482 | 481 |
| 483 // Returns the PromoCounter for Instant, or NULL if not applicable. | 482 // Returns the PromoCounter for Instant, or NULL if not applicable. |
| 484 virtual PromoCounter* GetInstantPromoCounter() = 0; | 483 virtual PromoCounter* GetInstantPromoCounter() = 0; |
| 485 | 484 |
| 486 // Gets the policy context associated with this profile. | 485 // Gets the policy context associated with this profile. |
| 487 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; | 486 virtual policy::ProfilePolicyContext* GetPolicyContext() = 0; |
| 488 | 487 |
| 489 #if defined(OS_CHROMEOS) | 488 #if defined(OS_CHROMEOS) |
| 489 // Changes application locale. |
| 490 // "Keep local" means that changes should not be propagated to other devices. |
| 491 virtual void ChangeApplicationLocale( |
| 492 const std::string& locale, bool keep_local) = 0; |
| 493 |
| 490 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. | 494 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. |
| 491 virtual chromeos::ProxyConfigServiceImpl* | 495 virtual chromeos::ProxyConfigServiceImpl* |
| 492 GetChromeOSProxyConfigServiceImpl() = 0; | 496 GetChromeOSProxyConfigServiceImpl() = 0; |
| 493 | 497 |
| 494 // Creates ChromeOS's EnterpriseExtensionListener. | 498 // Creates ChromeOS's EnterpriseExtensionListener. |
| 495 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; | 499 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; |
| 496 | 500 |
| 497 #endif // defined(OS_CHROMEOS) | 501 #endif // defined(OS_CHROMEOS) |
| 498 | 502 |
| 499 // Returns the helper object that provides the proxy configuration service | 503 // Returns the helper object that provides the proxy configuration service |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 bool restored_last_session_; | 553 bool restored_last_session_; |
| 550 | 554 |
| 551 // Accessibility events will only be propagated when the pause | 555 // Accessibility events will only be propagated when the pause |
| 552 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents | 556 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents |
| 553 // increment and decrement the level, respectively, rather than set it to | 557 // increment and decrement the level, respectively, rather than set it to |
| 554 // true or false, so that calls can be nested. | 558 // true or false, so that calls can be nested. |
| 555 int accessibility_pause_level_; | 559 int accessibility_pause_level_; |
| 556 }; | 560 }; |
| 557 | 561 |
| 558 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 562 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |