| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 | 291 |
| 292 // Changes application locale for a profile. | 292 // Changes application locale for a profile. |
| 293 virtual void ChangeAppLocale( | 293 virtual void ChangeAppLocale( |
| 294 const std::string& locale, AppLocaleChangedVia via) = 0; | 294 const std::string& locale, AppLocaleChangedVia via) = 0; |
| 295 | 295 |
| 296 // Called after login. | 296 // Called after login. |
| 297 virtual void OnLogin() = 0; | 297 virtual void OnLogin() = 0; |
| 298 | 298 |
| 299 // Initializes Chrome OS's preferences. | 299 // Initializes Chrome OS's preferences. |
| 300 virtual void InitChromeOSPreferences() = 0; | 300 virtual void InitChromeOSPreferences() = 0; |
| 301 | |
| 302 // True if the profile is for login session. | |
| 303 virtual bool IsLoginProfile() = 0; | |
| 304 #endif // defined(OS_CHROMEOS) | 301 #endif // defined(OS_CHROMEOS) |
| 305 | 302 |
| 306 // Returns the helper object that provides the proxy configuration service | 303 // Returns the helper object that provides the proxy configuration service |
| 307 // access to the the proxy configuration possibly defined by preferences. | 304 // access to the the proxy configuration possibly defined by preferences. |
| 308 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; | 305 virtual PrefProxyConfigTracker* GetProxyConfigTracker() = 0; |
| 309 | 306 |
| 310 // Returns the Predictor object used for dns prefetch. | 307 // Returns the Predictor object used for dns prefetch. |
| 311 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 308 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
| 312 | 309 |
| 313 // Deletes all network related data since |time|. It deletes transport | 310 // Deletes all network related data since |time|. It deletes transport |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 struct hash<Profile*> { | 404 struct hash<Profile*> { |
| 408 std::size_t operator()(Profile* const& p) const { | 405 std::size_t operator()(Profile* const& p) const { |
| 409 return reinterpret_cast<std::size_t>(p); | 406 return reinterpret_cast<std::size_t>(p); |
| 410 } | 407 } |
| 411 }; | 408 }; |
| 412 | 409 |
| 413 } // namespace BASE_HASH_NAMESPACE | 410 } // namespace BASE_HASH_NAMESPACE |
| 414 #endif | 411 #endif |
| 415 | 412 |
| 416 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 413 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |