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

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

Issue 7859001: Added ability to set ChromeDownloadManagerDelegate for testing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Various nits from self-review. Created 9 years, 3 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
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void EnsureSessionServiceCreated(); 169 void EnsureSessionServiceCreated();
170 170
171 void RegisterComponentExtensions(); 171 void RegisterComponentExtensions();
172 172
173 ExtensionPrefValueMap* GetExtensionPrefValueMap(); 173 ExtensionPrefValueMap* GetExtensionPrefValueMap();
174 174
175 void CreateQuotaManagerAndClients(); 175 void CreateQuotaManagerAndClients();
176 176
177 SpellCheckProfile* GetSpellCheckProfile(); 177 SpellCheckProfile* GetSpellCheckProfile();
178 178
179 virtual void SetDownloadManagerDelegate(
180 ChromeDownloadManagerDelegate* delegate);
181
179 NotificationRegistrar registrar_; 182 NotificationRegistrar registrar_;
180 PrefChangeRegistrar pref_change_registrar_; 183 PrefChangeRegistrar pref_change_registrar_;
181 184
182 FilePath path_; 185 FilePath path_;
183 FilePath base_cache_path_; 186 FilePath base_cache_path_;
184 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 187 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
185 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 188 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
186 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store 189 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store
187 // pointers to |prefs_| and shall be destructed first. 190 // pointers to |prefs_| and shall be destructed first.
188 scoped_ptr<PrefService> prefs_; 191 scoped_ptr<PrefService> prefs_;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 291 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
289 292
290 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 293 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
291 294
292 Profile::Delegate* delegate_; 295 Profile::Delegate* delegate_;
293 296
294 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 297 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
295 }; 298 };
296 299
297 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 300 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698