| 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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // or if one profile is the incognito version of another profile (or vice | 251 // or if one profile is the incognito version of another profile (or vice |
| 252 // versa). | 252 // versa). |
| 253 virtual bool IsSameProfile(Profile* profile) = 0; | 253 virtual bool IsSameProfile(Profile* profile) = 0; |
| 254 | 254 |
| 255 // Returns the time the profile was started. This is not the time the profile | 255 // Returns the time the profile was started. This is not the time the profile |
| 256 // was created, rather it is the time the user started chrome and logged into | 256 // was created, rather it is the time the user started chrome and logged into |
| 257 // this profile. For the single profile case, this corresponds to the time | 257 // this profile. For the single profile case, this corresponds to the time |
| 258 // the user started chrome. | 258 // the user started chrome. |
| 259 virtual base::Time GetStartTime() const = 0; | 259 virtual base::Time GetStartTime() const = 0; |
| 260 | 260 |
| 261 // Start up service that gathers data from a promo resource feed. | |
| 262 virtual void InitPromoResources() = 0; | |
| 263 | |
| 264 // Returns the last directory that was chosen for uploading or opening a file. | 261 // Returns the last directory that was chosen for uploading or opening a file. |
| 265 virtual FilePath last_selected_directory() = 0; | 262 virtual FilePath last_selected_directory() = 0; |
| 266 virtual void set_last_selected_directory(const FilePath& path) = 0; | 263 virtual void set_last_selected_directory(const FilePath& path) = 0; |
| 267 | 264 |
| 268 #if defined(OS_CHROMEOS) | 265 #if defined(OS_CHROMEOS) |
| 269 enum AppLocaleChangedVia { | 266 enum AppLocaleChangedVia { |
| 270 // Caused by chrome://settings change. | 267 // Caused by chrome://settings change. |
| 271 APP_LOCALE_CHANGED_VIA_SETTINGS, | 268 APP_LOCALE_CHANGED_VIA_SETTINGS, |
| 272 // Locale has been reverted via LocaleChangeGuard. | 269 // Locale has been reverted via LocaleChangeGuard. |
| 273 APP_LOCALE_CHANGED_VIA_REVERT, | 270 APP_LOCALE_CHANGED_VIA_REVERT, |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 struct hash<Profile*> { | 399 struct hash<Profile*> { |
| 403 std::size_t operator()(Profile* const& p) const { | 400 std::size_t operator()(Profile* const& p) const { |
| 404 return reinterpret_cast<std::size_t>(p); | 401 return reinterpret_cast<std::size_t>(p); |
| 405 } | 402 } |
| 406 }; | 403 }; |
| 407 | 404 |
| 408 } // namespace BASE_HASH_NAMESPACE | 405 } // namespace BASE_HASH_NAMESPACE |
| 409 #endif | 406 #endif |
| 410 | 407 |
| 411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 408 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |