OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_IMPL_H_ |
8 #define CHROME_BROWSER_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILE_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
14 #include "base/timer.h" | 14 #include "base/timer.h" |
15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profile.h" |
| 16 #include "chrome/browser/prefs/pref_change_registrar.h" |
16 #include "chrome/browser/spellcheck_host_observer.h" | 17 #include "chrome/browser/spellcheck_host_observer.h" |
17 #include "chrome/common/notification_observer.h" | 18 #include "chrome/common/notification_observer.h" |
18 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
19 | 20 |
20 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
21 namespace chromeos { | 22 namespace chromeos { |
22 class Preferences; | 23 class Preferences; |
23 } | 24 } |
24 #endif | 25 #endif |
25 | 26 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 | 138 |
138 void EnsureRequestContextCreated() { | 139 void EnsureRequestContextCreated() { |
139 GetRequestContext(); | 140 GetRequestContext(); |
140 } | 141 } |
141 | 142 |
142 void EnsureSessionServiceCreated() { | 143 void EnsureSessionServiceCreated() { |
143 GetSessionService(); | 144 GetSessionService(); |
144 } | 145 } |
145 | 146 |
146 NotificationRegistrar registrar_; | 147 NotificationRegistrar registrar_; |
| 148 PrefChangeRegistrar pref_change_registrar_; |
147 | 149 |
148 FilePath path_; | 150 FilePath path_; |
149 FilePath base_cache_path_; | 151 FilePath base_cache_path_; |
150 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; | 152 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; |
151 scoped_ptr<VisitedLinkMaster> visited_link_master_; | 153 scoped_ptr<VisitedLinkMaster> visited_link_master_; |
152 scoped_refptr<ExtensionsService> extensions_service_; | 154 scoped_refptr<ExtensionsService> extensions_service_; |
153 scoped_refptr<UserScriptMaster> user_script_master_; | 155 scoped_refptr<UserScriptMaster> user_script_master_; |
154 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; | 156 scoped_refptr<ExtensionDevToolsManager> extension_devtools_manager_; |
155 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | 157 scoped_ptr<ExtensionProcessManager> extension_process_manager_; |
156 scoped_refptr<ExtensionMessageService> extension_message_service_; | 158 scoped_refptr<ExtensionMessageService> extension_message_service_; |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 scoped_ptr<chromeos::Preferences> chromeos_preferences_; | 249 scoped_ptr<chromeos::Preferences> chromeos_preferences_; |
248 | 250 |
249 scoped_refptr<chromeos::ProxyConfigServiceImpl> | 251 scoped_refptr<chromeos::ProxyConfigServiceImpl> |
250 chromeos_proxy_config_service_impl_; | 252 chromeos_proxy_config_service_impl_; |
251 #endif | 253 #endif |
252 | 254 |
253 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 255 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
254 }; | 256 }; |
255 | 257 |
256 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ | 258 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ |
OLD | NEW |