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