OLD | NEW |
1 // Copyright (c) 2011 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 |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
483 | 483 |
484 // Returns the Predictor object used for dns prefetch. | 484 // Returns the Predictor object used for dns prefetch. |
485 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; | 485 virtual chrome_browser_net::Predictor* GetNetworkPredictor() = 0; |
486 | 486 |
487 // Deletes all network related data since |time|. It deletes transport | 487 // Deletes all network related data since |time|. It deletes transport |
488 // security state since |time| and it also delete HttpServerProperties data. | 488 // security state since |time| and it also delete HttpServerProperties data. |
489 // The implementation is free to run this on a background thread, so when this | 489 // The implementation is free to run this on a background thread, so when this |
490 // method returns data is not guaranteed to be deleted. | 490 // method returns data is not guaranteed to be deleted. |
491 virtual void ClearNetworkingHistorySince(base::Time time) = 0; | 491 virtual void ClearNetworkingHistorySince(base::Time time) = 0; |
492 | 492 |
| 493 // Returns the home page for this profile. |
| 494 virtual GURL GetHomePage() = 0; |
| 495 |
493 std::string GetDebugName(); | 496 std::string GetDebugName(); |
494 | 497 |
495 // Returns whether it is a guest session. | 498 // Returns whether it is a guest session. |
496 static bool IsGuestSession(); | 499 static bool IsGuestSession(); |
497 | 500 |
498 #ifdef UNIT_TEST | 501 #ifdef UNIT_TEST |
499 // Use with caution. GetDefaultRequestContext may be called on any thread! | 502 // Use with caution. GetDefaultRequestContext may be called on any thread! |
500 static void set_default_request_context(net::URLRequestContextGetter* c) { | 503 static void set_default_request_context(net::URLRequestContextGetter* c) { |
501 default_request_context_ = c; | 504 default_request_context_ = c; |
502 } | 505 } |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 struct hash<Profile*> { | 567 struct hash<Profile*> { |
565 std::size_t operator()(Profile* const& p) const { | 568 std::size_t operator()(Profile* const& p) const { |
566 return reinterpret_cast<std::size_t>(p); | 569 return reinterpret_cast<std::size_t>(p); |
567 } | 570 } |
568 }; | 571 }; |
569 | 572 |
570 } // namespace __gnu_cxx | 573 } // namespace __gnu_cxx |
571 #endif | 574 #endif |
572 | 575 |
573 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 576 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |