Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chrome/browser/profiles/profile_impl.h

Issue 6927028: TODO (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/timer.h" 14 #include "base/timer.h"
15 #include "chrome/browser/prefs/pref_change_registrar.h" 15 #include "chrome/browser/prefs/pref_change_registrar.h"
16 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/profiles/profile_impl_io_data.h" 17 #include "chrome/browser/profiles/profile_impl_io_data.h"
18 #include "chrome/browser/spellcheck_host_observer.h" 18 #include "chrome/browser/spellcheck_host_observer.h"
19 #include "content/common/notification_observer.h" 19 #include "content/common/notification_observer.h"
20 #include "content/common/notification_registrar.h" 20 #include "content/common/notification_registrar.h"
21 21
22 class ExtensionPrefs; 22 class ExtensionPrefs;
23 class ExtensionPrefValueMap; 23 class ExtensionPrefValueMap;
24 class ExtensionContentSettingsStore;
24 class PrefService; 25 class PrefService;
25 26
26 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
27 namespace chromeos { 28 namespace chromeos {
28 class EnterpriseExtensionObserver; 29 class EnterpriseExtensionObserver;
29 class LocaleChangeGuard; 30 class LocaleChangeGuard;
30 class Preferences; 31 class Preferences;
31 } 32 }
32 #endif 33 #endif
33 34
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 void EnsureRequestContextCreated() { 172 void EnsureRequestContextCreated() {
172 GetRequestContext(); 173 GetRequestContext();
173 } 174 }
174 175
175 void EnsureSessionServiceCreated(); 176 void EnsureSessionServiceCreated();
176 177
177 void RegisterComponentExtensions(); 178 void RegisterComponentExtensions();
178 179
179 ExtensionPrefValueMap* GetExtensionPrefValueMap(); 180 ExtensionPrefValueMap* GetExtensionPrefValueMap();
180 181
182 ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
183
181 NotificationRegistrar registrar_; 184 NotificationRegistrar registrar_;
182 PrefChangeRegistrar pref_change_registrar_; 185 PrefChangeRegistrar pref_change_registrar_;
183 186
184 FilePath path_; 187 FilePath path_;
185 FilePath base_cache_path_; 188 FilePath base_cache_path_;
186 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 189 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
190 scoped_ptr<ExtensionContentSettingsStore> extension_content_settings_store_;
187 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 191 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
188 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store 192 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store
189 // pointers to |prefs_| and shall be destructed first. 193 // pointers to |prefs_| and shall be destructed first.
190 scoped_ptr<PrefService> prefs_; 194 scoped_ptr<PrefService> prefs_;
191 scoped_ptr<PrefService> otr_prefs_; 195 scoped_ptr<PrefService> otr_prefs_;
192 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; 196 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_;
193 scoped_ptr<VisitedLinkMaster> visited_link_master_; 197 scoped_ptr<VisitedLinkMaster> visited_link_master_;
194 // Keep extension_prefs_ on top of extension_service_ because the latter 198 // Keep extension_prefs_ on top of extension_service_ because the latter
195 // maintains a pointer to the first and shall be destructed first. 199 // maintains a pointer to the first and shall be destructed first.
196 scoped_ptr<ExtensionPrefs> extension_prefs_; 200 scoped_ptr<ExtensionPrefs> extension_prefs_;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 302 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
299 303
300 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 304 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
301 305
302 Profile::Delegate* delegate_; 306 Profile::Delegate* delegate_;
303 307
304 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 308 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
305 }; 309 };
306 310
307 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 311 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_content_settings_store_unittest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698