| 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 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 class ExtensionSpecialStoragePolicy; | 29 class ExtensionSpecialStoragePolicy; |
| 30 class FaviconService; | 30 class FaviconService; |
| 31 class GAIAInfoUpdateService; | 31 class GAIAInfoUpdateService; |
| 32 class HistoryService; | 32 class HistoryService; |
| 33 class HostContentSettingsMap; | 33 class HostContentSettingsMap; |
| 34 class PasswordStore; | 34 class PasswordStore; |
| 35 class PrefService; | 35 class PrefService; |
| 36 class PromoCounter; | 36 class PromoCounter; |
| 37 class ProtocolHandlerRegistry; | 37 class ProtocolHandlerRegistry; |
| 38 class TestingProfile; | 38 class TestingProfile; |
| 39 class UsbService; |
| 39 class UserScriptMaster; | 40 class UserScriptMaster; |
| 40 class VisitedLinkMaster; | 41 class VisitedLinkMaster; |
| 41 class WebDataService; | 42 class WebDataService; |
| 42 | 43 |
| 43 namespace base { | 44 namespace base { |
| 44 class Time; | 45 class Time; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace chromeos { | 48 namespace chromeos { |
| 48 class LibCrosServiceLibraryImpl; | 49 class LibCrosServiceLibraryImpl; |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // method returns data is not guaranteed to be deleted. | 389 // method returns data is not guaranteed to be deleted. |
| 389 virtual void ClearNetworkingHistorySince(base::Time time) = 0; | 390 virtual void ClearNetworkingHistorySince(base::Time time) = 0; |
| 390 | 391 |
| 391 // Returns the home page for this profile. | 392 // Returns the home page for this profile. |
| 392 virtual GURL GetHomePage() = 0; | 393 virtual GURL GetHomePage() = 0; |
| 393 | 394 |
| 394 // Returns whether or not the profile was created by a version of Chrome | 395 // Returns whether or not the profile was created by a version of Chrome |
| 395 // more recent (or equal to) the one specified. | 396 // more recent (or equal to) the one specified. |
| 396 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; | 397 virtual bool WasCreatedByVersionOrLater(const std::string& version) = 0; |
| 397 | 398 |
| 399 // TODO(gdk): Documentation. |
| 400 virtual UsbService* GetUsbService() = 0; |
| 401 |
| 398 std::string GetDebugName(); | 402 std::string GetDebugName(); |
| 399 | 403 |
| 400 // Returns whether it is a guest session. | 404 // Returns whether it is a guest session. |
| 401 static bool IsGuestSession(); | 405 static bool IsGuestSession(); |
| 402 | 406 |
| 403 #ifdef UNIT_TEST | 407 #ifdef UNIT_TEST |
| 404 // Use with caution. GetDefaultRequestContext may be called on any thread! | 408 // Use with caution. GetDefaultRequestContext may be called on any thread! |
| 405 static void set_default_request_context(net::URLRequestContextGetter* c) { | 409 static void set_default_request_context(net::URLRequestContextGetter* c) { |
| 406 default_request_context_ = c; | 410 default_request_context_ = c; |
| 407 } | 411 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 struct hash<Profile*> { | 483 struct hash<Profile*> { |
| 480 std::size_t operator()(Profile* const& p) const { | 484 std::size_t operator()(Profile* const& p) const { |
| 481 return reinterpret_cast<std::size_t>(p); | 485 return reinterpret_cast<std::size_t>(p); |
| 482 } | 486 } |
| 483 }; | 487 }; |
| 484 | 488 |
| 485 } // namespace BASE_HASH_NAMESPACE | 489 } // namespace BASE_HASH_NAMESPACE |
| 486 #endif | 490 #endif |
| 487 | 491 |
| 488 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 492 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |