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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 // Works asynchronously, however if the |completion| callback is non-null, it | 296 // Works asynchronously, however if the |completion| callback is non-null, it |
297 // will be posted on the UI thread once the removal process completes. | 297 // will be posted on the UI thread once the removal process completes. |
298 // Be aware that theoretically it is possible that |completion| will be | 298 // Be aware that theoretically it is possible that |completion| will be |
299 // invoked after the Profile instance has been destroyed. | 299 // invoked after the Profile instance has been destroyed. |
300 virtual void ClearNetworkingHistorySince(base::Time time, | 300 virtual void ClearNetworkingHistorySince(base::Time time, |
301 const base::Closure& completion) = 0; | 301 const base::Closure& completion) = 0; |
302 | 302 |
303 // Returns the home page for this profile. | 303 // Returns the home page for this profile. |
304 virtual GURL GetHomePage() = 0; | 304 virtual GURL GetHomePage() = 0; |
305 | 305 |
| 306 // Returns Goodies URL if first New Window (and other conditions) in ChromeOS. |
| 307 virtual GURL ShowingGoodiesPageInNewWindow(); |
| 308 |
306 // Returns whether or not the profile was created by a version of Chrome | 309 // Returns whether or not the profile was created by a version of Chrome |
307 // more recent (or equal to) the one specified. | 310 // more recent (or equal to) the one specified. |
308 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; | 311 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; |
309 | 312 |
310 std::string GetDebugName(); | 313 std::string GetDebugName(); |
311 | 314 |
312 // Returns whether it is a guest session. | 315 // Returns whether it is a guest session. |
313 virtual bool IsGuestSession() const; | 316 virtual bool IsGuestSession() const; |
314 | 317 |
315 // Returns whether it is a system profile. | 318 // Returns whether it is a system profile. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 404 |
402 DISALLOW_COPY_AND_ASSIGN(Profile); | 405 DISALLOW_COPY_AND_ASSIGN(Profile); |
403 }; | 406 }; |
404 | 407 |
405 // The comparator for profile pointers as key in a map. | 408 // The comparator for profile pointers as key in a map. |
406 struct ProfileCompare { | 409 struct ProfileCompare { |
407 bool operator()(Profile* a, Profile* b) const; | 410 bool operator()(Profile* a, Profile* b) const; |
408 }; | 411 }; |
409 | 412 |
410 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 413 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |