Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Side by Side Diff: chrome/browser/profiles/profile.h

Issue 5976005: show notification on locale change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 virtual void ChangeApplicationLocale(
whywhat 2011/01/11 10:24:14 Comment? Shouldn't be pure virtual functions like
490 const std::string& locale, bool dont_sync) {}
491
490 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created. 492 // Returns ChromeOS's ProxyConfigServiceImpl, creating if not yet created.
491 virtual chromeos::ProxyConfigServiceImpl* 493 virtual chromeos::ProxyConfigServiceImpl*
492 GetChromeOSProxyConfigServiceImpl() = 0; 494 GetChromeOSProxyConfigServiceImpl() = 0;
493 495
494 // Creates ChromeOS's EnterpriseExtensionListener. 496 // Creates ChromeOS's EnterpriseExtensionListener.
495 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0; 497 virtual void SetupChromeOSEnterpriseExtensionObserver() = 0;
496 498
497 #endif // defined(OS_CHROMEOS) 499 #endif // defined(OS_CHROMEOS)
498 500
499 // Returns the helper object that provides the proxy configuration service 501 // Returns the helper object that provides the proxy configuration service
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 bool restored_last_session_; 551 bool restored_last_session_;
550 552
551 // Accessibility events will only be propagated when the pause 553 // Accessibility events will only be propagated when the pause
552 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 554 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
553 // increment and decrement the level, respectively, rather than set it to 555 // increment and decrement the level, respectively, rather than set it to
554 // true or false, so that calls can be nested. 556 // true or false, so that calls can be nested.
555 int accessibility_pause_level_; 557 int accessibility_pause_level_;
556 }; 558 };
557 559
558 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 560 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698