Chromium Code Reviews| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace prerender { | 47 namespace prerender { |
| 48 class PrerenderManager; | 48 class PrerenderManager; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace speech_input { | 51 namespace speech_input { |
| 52 class SpeechRecognizer; | 52 class SpeechRecognizer; |
| 53 } | 53 } |
| 54 | 54 |
| 55 namespace chrome_browser_net { | |
| 56 class Predictor; | |
| 57 } | |
| 58 | |
| 55 class AutocompleteClassifier; | 59 class AutocompleteClassifier; |
| 56 class BookmarkModel; | 60 class BookmarkModel; |
| 57 class ChromeAppCacheService; | 61 class ChromeAppCacheService; |
| 58 class ChromeURLDataManager; | 62 class ChromeURLDataManager; |
| 59 class Extension; | 63 class Extension; |
| 60 class ExtensionDevToolsManager; | 64 class ExtensionDevToolsManager; |
| 61 class ExtensionEventRouter; | 65 class ExtensionEventRouter; |
| 62 class ExtensionInfoMap; | 66 class ExtensionInfoMap; |
| 63 class ExtensionMessageService; | 67 class ExtensionMessageService; |
| 64 class ExtensionPrefValueMap; | 68 class ExtensionPrefValueMap; |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 536 return 0 == accessibility_pause_level_; | 540 return 0 == accessibility_pause_level_; |
| 537 } | 541 } |
| 538 | 542 |
| 539 // Checks whether sync is configurable by the user. Returns false if sync is | 543 // Checks whether sync is configurable by the user. Returns false if sync is |
| 540 // disabled or controlled by configuration management. | 544 // disabled or controlled by configuration management. |
| 541 bool IsSyncAccessible(); | 545 bool IsSyncAccessible(); |
| 542 | 546 |
| 543 // Creates an OffTheRecordProfile which points to this Profile. | 547 // Creates an OffTheRecordProfile which points to this Profile. |
| 544 Profile* CreateOffTheRecordProfile(); | 548 Profile* CreateOffTheRecordProfile(); |
| 545 | 549 |
| 550 virtual chrome_browser_net::Predictor* GetNetworkPredictor(); | |
|
TVL
2011/09/13 19:07:51
why is this not a pure virtual? And why is an imp
willchan no longer on Chromium
2011/09/13 19:12:47
Woops, I missed that in the review. That's absolut
rpetterson
2011/09/13 19:39:11
This restriction wasn't clear to me. @TVL, I'll se
| |
| 551 | |
| 546 protected: | 552 protected: |
| 547 friend class OffTheRecordProfileImpl; | 553 friend class OffTheRecordProfileImpl; |
| 548 | 554 |
| 549 static net::URLRequestContextGetter* default_request_context_; | 555 static net::URLRequestContextGetter* default_request_context_; |
| 550 | 556 |
| 551 private: | 557 private: |
| 552 // ***DEPRECATED**: You should be passing in the specific profile's | 558 // ***DEPRECATED**: You should be passing in the specific profile's |
| 553 // URLRequestContextGetter or using the system URLRequestContextGetter. | 559 // URLRequestContextGetter or using the system URLRequestContextGetter. |
| 554 // | 560 // |
| 555 // Returns the request context for the "default" profile. This may be called | 561 // Returns the request context for the "default" profile. This may be called |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 577 struct hash<Profile*> { | 583 struct hash<Profile*> { |
| 578 std::size_t operator()(Profile* const& p) const { | 584 std::size_t operator()(Profile* const& p) const { |
| 579 return reinterpret_cast<std::size_t>(p); | 585 return reinterpret_cast<std::size_t>(p); |
| 580 } | 586 } |
| 581 }; | 587 }; |
| 582 | 588 |
| 583 } // namespace __gnu_cxx | 589 } // namespace __gnu_cxx |
| 584 #endif | 590 #endif |
| 585 | 591 |
| 586 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 592 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |