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 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "chrome/browser/net/preconnect.h" // TODO: remove this. | 15 #include "chrome/browser/net/preconnect.h" // TODO: remove this. |
16 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
17 #include "content/browser/browser_context.h" | 17 #include "content/browser/browser_context.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class Time; | 20 class Time; |
21 } | 21 } |
22 | 22 |
23 namespace chrome_browser_net_websocket_experiment { | |
24 class WebSocketExperimentTask; | |
25 } | |
26 | |
27 namespace chromeos { | 23 namespace chromeos { |
28 class LibCrosServiceLibraryImpl; | 24 class LibCrosServiceLibraryImpl; |
29 class ResetDefaultProxyConfigServiceTask; | 25 class ResetDefaultProxyConfigServiceTask; |
30 } | 26 } |
31 | 27 |
32 namespace fileapi { | 28 namespace fileapi { |
33 class FileSystemContext; | 29 class FileSystemContext; |
34 class SandboxedFileSystemContext; | 30 class SandboxedFileSystemContext; |
35 } | 31 } |
36 | 32 |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 friend class ChromePluginMessageFilter; | 142 friend class ChromePluginMessageFilter; |
147 friend class DefaultGeolocationArbitratorDependencyFactory; | 143 friend class DefaultGeolocationArbitratorDependencyFactory; |
148 friend class BrowserListTabContentsProvider; | 144 friend class BrowserListTabContentsProvider; |
149 friend class LiveSyncTest; | 145 friend class LiveSyncTest; |
150 friend class MetricsService; | 146 friend class MetricsService; |
151 friend class ResolveProxyMsgHelper; | 147 friend class ResolveProxyMsgHelper; |
152 friend class SafeBrowsingServiceTestHelper; | 148 friend class SafeBrowsingServiceTestHelper; |
153 friend class SdchDictionaryFetcher; | 149 friend class SdchDictionaryFetcher; |
154 friend class Toolbar5Importer; | 150 friend class Toolbar5Importer; |
155 friend class TranslateManager; | 151 friend class TranslateManager; |
156 friend class | |
157 chrome_browser_net_websocket_experiment::WebSocketExperimentTask; | |
158 friend class chromeos::LibCrosServiceLibraryImpl; | 152 friend class chromeos::LibCrosServiceLibraryImpl; |
159 friend class chromeos::ResetDefaultProxyConfigServiceTask; | 153 friend class chromeos::ResetDefaultProxyConfigServiceTask; |
160 friend class speech_input::SpeechRecognizer; | 154 friend class speech_input::SpeechRecognizer; |
161 | 155 |
162 static net::URLRequestContextGetter* GetDefaultRequestContext() { | 156 static net::URLRequestContextGetter* GetDefaultRequestContext() { |
163 return Profile::GetDefaultRequestContext(); | 157 return Profile::GetDefaultRequestContext(); |
164 } | 158 } |
165 }; | 159 }; |
166 | 160 |
167 // Key used to bind profile to the widget with which it is associated. | 161 // Key used to bind profile to the widget with which it is associated. |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 struct hash<Profile*> { | 582 struct hash<Profile*> { |
589 std::size_t operator()(Profile* const& p) const { | 583 std::size_t operator()(Profile* const& p) const { |
590 return reinterpret_cast<std::size_t>(p); | 584 return reinterpret_cast<std::size_t>(p); |
591 } | 585 } |
592 }; | 586 }; |
593 | 587 |
594 } // namespace __gnu_cxx | 588 } // namespace __gnu_cxx |
595 #endif | 589 #endif |
596 | 590 |
597 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 591 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |