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 #if !defined(OS_ANDROID) | |
sail
2012/04/25 21:06:36
it's a bad idea to have #ifdefs in code. The gener
| |
400 // Returns or creates and returns an instance of the UsbService. | |
miket_OOO
2012/04/25 21:24:36
This is a minor point, but the "or creates and ret
| |
401 virtual UsbService* GetUsbService() = 0; | |
402 #endif // !defined(OS_ANDROID) | |
403 | |
398 std::string GetDebugName(); | 404 std::string GetDebugName(); |
399 | 405 |
400 // Returns whether it is a guest session. | 406 // Returns whether it is a guest session. |
401 static bool IsGuestSession(); | 407 static bool IsGuestSession(); |
402 | 408 |
403 #ifdef UNIT_TEST | 409 #ifdef UNIT_TEST |
404 // Use with caution. GetDefaultRequestContext may be called on any thread! | 410 // Use with caution. GetDefaultRequestContext may be called on any thread! |
405 static void set_default_request_context(net::URLRequestContextGetter* c) { | 411 static void set_default_request_context(net::URLRequestContextGetter* c) { |
406 default_request_context_ = c; | 412 default_request_context_ = c; |
407 } | 413 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
479 struct hash<Profile*> { | 485 struct hash<Profile*> { |
480 std::size_t operator()(Profile* const& p) const { | 486 std::size_t operator()(Profile* const& p) const { |
481 return reinterpret_cast<std::size_t>(p); | 487 return reinterpret_cast<std::size_t>(p); |
482 } | 488 } |
483 }; | 489 }; |
484 | 490 |
485 } // namespace BASE_HASH_NAMESPACE | 491 } // namespace BASE_HASH_NAMESPACE |
486 #endif | 492 #endif |
487 | 493 |
488 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 494 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |