| 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 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 namespace prerender { | 43 namespace prerender { |
| 44 class PrerenderManager; | 44 class PrerenderManager; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace speech_input { | 47 namespace speech_input { |
| 48 class SpeechRecognizer; | 48 class SpeechRecognizer; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace chrome_browser_net { |
| 52 class Predictor; |
| 53 } |
| 54 |
| 51 class AutocompleteClassifier; | 55 class AutocompleteClassifier; |
| 52 class BookmarkModel; | 56 class BookmarkModel; |
| 53 class BrowserSignin; | 57 class BrowserSignin; |
| 54 class ChromeAppCacheService; | 58 class ChromeAppCacheService; |
| 55 class ChromeURLDataManager; | 59 class ChromeURLDataManager; |
| 56 class Extension; | 60 class Extension; |
| 57 class ExtensionDevToolsManager; | 61 class ExtensionDevToolsManager; |
| 58 class ExtensionEventRouter; | 62 class ExtensionEventRouter; |
| 59 class ExtensionInfoMap; | 63 class ExtensionInfoMap; |
| 60 class ExtensionMessageService; | 64 class ExtensionMessageService; |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 return 0 == accessibility_pause_level_; | 549 return 0 == accessibility_pause_level_; |
| 546 } | 550 } |
| 547 | 551 |
| 548 // Checks whether sync is configurable by the user. Returns false if sync is | 552 // Checks whether sync is configurable by the user. Returns false if sync is |
| 549 // disabled or controlled by configuration management. | 553 // disabled or controlled by configuration management. |
| 550 bool IsSyncAccessible(); | 554 bool IsSyncAccessible(); |
| 551 | 555 |
| 552 // Creates an OffTheRecordProfile which points to this Profile. | 556 // Creates an OffTheRecordProfile which points to this Profile. |
| 553 Profile* CreateOffTheRecordProfile(); | 557 Profile* CreateOffTheRecordProfile(); |
| 554 | 558 |
| 559 virtual chrome_browser_net::Predictor* GetNetworkPredictor() { |
| 560 return NULL; |
| 561 } |
| 562 |
| 563 // When displaying info in about:dns, the following API is called. |
| 564 void PredictorGetHtmlInfo(std::string* output); |
| 565 |
| 555 protected: | 566 protected: |
| 556 friend class OffTheRecordProfileImpl; | 567 friend class OffTheRecordProfileImpl; |
| 557 | 568 |
| 558 static net::URLRequestContextGetter* default_request_context_; | 569 static net::URLRequestContextGetter* default_request_context_; |
| 559 | 570 |
| 560 private: | 571 private: |
| 561 // ***DEPRECATED**: You should be passing in the specific profile's | 572 // ***DEPRECATED**: You should be passing in the specific profile's |
| 562 // URLRequestContextGetter or using the system URLRequestContextGetter. | 573 // URLRequestContextGetter or using the system URLRequestContextGetter. |
| 563 // | 574 // |
| 564 // Returns the request context for the "default" profile. This may be called | 575 // Returns the request context for the "default" profile. This may be called |
| (...skipping 21 matching lines...) Expand all Loading... |
| 586 struct hash<Profile*> { | 597 struct hash<Profile*> { |
| 587 std::size_t operator()(Profile* const& p) const { | 598 std::size_t operator()(Profile* const& p) const { |
| 588 return reinterpret_cast<std::size_t>(p); | 599 return reinterpret_cast<std::size_t>(p); |
| 589 } | 600 } |
| 590 }; | 601 }; |
| 591 | 602 |
| 592 } // namespace __gnu_cxx | 603 } // namespace __gnu_cxx |
| 593 #endif | 604 #endif |
| 594 | 605 |
| 595 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 606 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
| OLD | NEW |