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_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/timer.h" | 17 #include "base/timer.h" |
18 #include "chrome/browser/prefs/pref_change_registrar.h" | 18 #include "chrome/browser/prefs/pref_change_registrar.h" |
19 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
20 #include "chrome/browser/profiles/profile_impl_io_data.h" | 20 #include "chrome/browser/profiles/profile_impl_io_data.h" |
21 #include "content/public/browser/notification_observer.h" | 21 #include "content/public/browser/notification_observer.h" |
22 #include "content/public/browser/notification_registrar.h" | 22 #include "content/public/browser/notification_registrar.h" |
23 | 23 |
24 class ExtensionNavigationObserver; | 24 class ExtensionNavigationObserver; |
25 class ExtensionSystem; | |
26 class NetPrefObserver; | 25 class NetPrefObserver; |
27 class PrefService; | 26 class PrefService; |
28 class SSLConfigServiceManager; | 27 class SSLConfigServiceManager; |
29 class VisitedLinkEventListener; | 28 class VisitedLinkEventListener; |
30 | 29 |
31 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) | 30 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) |
32 class PromoResourceService; | 31 class PromoResourceService; |
33 #endif | 32 #endif |
34 | 33 |
35 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
36 namespace chromeos { | 35 namespace chromeos { |
37 class EnterpriseExtensionObserver; | 36 class EnterpriseExtensionObserver; |
38 class LocaleChangeGuard; | 37 class LocaleChangeGuard; |
39 class Preferences; | 38 class Preferences; |
40 } | 39 } |
41 #endif | 40 #endif |
42 | 41 |
43 namespace content { | 42 namespace content { |
44 class SpeechRecognitionPreferences; | 43 class SpeechRecognitionPreferences; |
45 } | 44 } |
46 | 45 |
| 46 namespace extensions { |
| 47 class ExtensionSystem; |
| 48 } |
| 49 |
47 // The default profile implementation. | 50 // The default profile implementation. |
48 class ProfileImpl : public Profile, | 51 class ProfileImpl : public Profile, |
49 public content::NotificationObserver { | 52 public content::NotificationObserver { |
50 public: | 53 public: |
51 virtual ~ProfileImpl(); | 54 virtual ~ProfileImpl(); |
52 | 55 |
53 static void RegisterUserPrefs(PrefService* prefs); | 56 static void RegisterUserPrefs(PrefService* prefs); |
54 | 57 |
55 // content::BrowserContext implementation: | 58 // content::BrowserContext implementation: |
56 virtual FilePath GetPath() OVERRIDE; | 59 virtual FilePath GetPath() OVERRIDE; |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 Profile::Delegate* delegate_; | 269 Profile::Delegate* delegate_; |
267 | 270 |
268 chrome_browser_net::Predictor* predictor_; | 271 chrome_browser_net::Predictor* predictor_; |
269 | 272 |
270 bool session_restore_enabled_; | 273 bool session_restore_enabled_; |
271 | 274 |
272 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 275 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
273 }; | 276 }; |
274 | 277 |
275 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 278 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |