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_constants.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 chromeos { | 23 namespace chromeos { |
24 class LibCrosServiceLibraryImpl; | 24 class LibCrosServiceLibraryImpl; |
25 class ResetDefaultProxyConfigServiceTask; | 25 class ResetDefaultProxyConfigServiceTask; |
26 } | 26 } |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // avoid race conditions by making sure URLRequestContexts learn about new | 375 // avoid race conditions by making sure URLRequestContexts learn about new |
376 // extensions before anything else needs them to know. | 376 // extensions before anything else needs them to know. |
377 virtual void RegisterExtensionWithRequestContexts( | 377 virtual void RegisterExtensionWithRequestContexts( |
378 const Extension* extension) {} | 378 const Extension* extension) {} |
379 | 379 |
380 // Called by the ExtensionService that lives in this profile. Lets the | 380 // Called by the ExtensionService that lives in this profile. Lets the |
381 // profile clean up its RequestContexts once all the listeners to the | 381 // profile clean up its RequestContexts once all the listeners to the |
382 // EXTENSION_UNLOADED notification have finished running. | 382 // EXTENSION_UNLOADED notification have finished running. |
383 virtual void UnregisterExtensionWithRequestContexts( | 383 virtual void UnregisterExtensionWithRequestContexts( |
384 const std::string& extension_id, | 384 const std::string& extension_id, |
385 const UnloadedExtensionInfo::Reason) {} | 385 const extension_misc::UnloadedExtensionReason) {} |
386 | 386 |
387 // Returns the SSLConfigService for this profile. | 387 // Returns the SSLConfigService for this profile. |
388 virtual net::SSLConfigService* GetSSLConfigService() = 0; | 388 virtual net::SSLConfigService* GetSSLConfigService() = 0; |
389 | 389 |
390 // Returns the Hostname <-> Content settings map for this profile. | 390 // Returns the Hostname <-> Content settings map for this profile. |
391 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; | 391 virtual HostContentSettingsMap* GetHostContentSettingsMap() = 0; |
392 | 392 |
393 // Returns the user style sheet watcher. | 393 // Returns the user style sheet watcher. |
394 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; | 394 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() = 0; |
395 | 395 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 struct hash<Profile*> { | 586 struct hash<Profile*> { |
587 std::size_t operator()(Profile* const& p) const { | 587 std::size_t operator()(Profile* const& p) const { |
588 return reinterpret_cast<std::size_t>(p); | 588 return reinterpret_cast<std::size_t>(p); |
589 } | 589 } |
590 }; | 590 }; |
591 | 591 |
592 } // namespace __gnu_cxx | 592 } // namespace __gnu_cxx |
593 #endif | 593 #endif |
594 | 594 |
595 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ | 595 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ |
OLD | NEW |