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

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

Issue 5213002: Fix for Bug 50726 "Save extension list and "winning" prefs from extensions" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed comments, moved ExtensionPrefStore reference to Profile Created 10 years 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) 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/prefs/pref_change_registrar.h"
17 #include "chrome/browser/spellcheck_host_observer.h" 17 #include "chrome/browser/spellcheck_host_observer.h"
18 #include "chrome/common/notification_observer.h" 18 #include "chrome/common/notification_observer.h"
19 #include "chrome/common/notification_registrar.h" 19 #include "chrome/common/notification_registrar.h"
20 20
21 class ExtensionPrefs;
21 class PrefService; 22 class PrefService;
23 class PrefStore;
22 24
23 #if defined(OS_CHROMEOS) 25 #if defined(OS_CHROMEOS)
24 namespace chromeos { 26 namespace chromeos {
25 class Preferences; 27 class Preferences;
26 } 28 }
27 #endif 29 #endif
28 30
29 class NetPrefObserver; 31 class NetPrefObserver;
30 32
31 // The default profile implementation. 33 // The default profile implementation.
(...skipping 27 matching lines...) Expand all
59 virtual ExtensionMessageService* GetExtensionMessageService(); 61 virtual ExtensionMessageService* GetExtensionMessageService();
60 virtual ExtensionEventRouter* GetExtensionEventRouter(); 62 virtual ExtensionEventRouter* GetExtensionEventRouter();
61 virtual FaviconService* GetFaviconService(ServiceAccessType sat); 63 virtual FaviconService* GetFaviconService(ServiceAccessType sat);
62 virtual HistoryService* GetHistoryService(ServiceAccessType sat); 64 virtual HistoryService* GetHistoryService(ServiceAccessType sat);
63 virtual HistoryService* GetHistoryServiceWithoutCreating(); 65 virtual HistoryService* GetHistoryServiceWithoutCreating();
64 virtual AutocompleteClassifier* GetAutocompleteClassifier(); 66 virtual AutocompleteClassifier* GetAutocompleteClassifier();
65 virtual WebDataService* GetWebDataService(ServiceAccessType sat); 67 virtual WebDataService* GetWebDataService(ServiceAccessType sat);
66 virtual WebDataService* GetWebDataServiceWithoutCreating(); 68 virtual WebDataService* GetWebDataServiceWithoutCreating();
67 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat); 69 virtual PasswordStore* GetPasswordStore(ServiceAccessType sat);
68 virtual PrefService* GetPrefs(); 70 virtual PrefService* GetPrefs();
71 virtual PrefStore* GetExtensionPrefStore();
72 virtual void SetExtensionPrefStore(PrefStore* ext_pref_store);
69 virtual TemplateURLModel* GetTemplateURLModel(); 73 virtual TemplateURLModel* GetTemplateURLModel();
70 virtual TemplateURLFetcher* GetTemplateURLFetcher(); 74 virtual TemplateURLFetcher* GetTemplateURLFetcher();
71 virtual DownloadManager* GetDownloadManager(); 75 virtual DownloadManager* GetDownloadManager();
72 virtual PersonalDataManager* GetPersonalDataManager(); 76 virtual PersonalDataManager* GetPersonalDataManager();
73 virtual BrowserFileSystemContext* GetFileSystemContext(); 77 virtual BrowserFileSystemContext* GetFileSystemContext();
74 virtual void InitThemes(); 78 virtual void InitThemes();
75 virtual void SetTheme(const Extension* extension); 79 virtual void SetTheme(const Extension* extension);
76 virtual void SetNativeTheme(); 80 virtual void SetNativeTheme();
77 virtual void ClearTheme(); 81 virtual void ClearTheme();
78 virtual const Extension* GetTheme(); 82 virtual const Extension* GetTheme();
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 // The main database tracker for this profile. 273 // The main database tracker for this profile.
270 // Should be used only on the file thread. 274 // Should be used only on the file thread.
271 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_; 275 scoped_refptr<webkit_database::DatabaseTracker> db_tracker_;
272 276
273 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 277 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
274 278
275 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 279 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
276 280
277 scoped_refptr<ExtensionInfoMap> extension_info_map_; 281 scoped_refptr<ExtensionInfoMap> extension_info_map_;
278 282
283 scoped_ptr<ExtensionPrefs> extension_prefs_;
284
285 // weak pointer to ExtensionPrefStore that stores effective extension
286 // controlled preferences.
287 PrefStore* ext_pref_store_;
288
279 #if defined(OS_CHROMEOS) 289 #if defined(OS_CHROMEOS)
280 scoped_ptr<chromeos::Preferences> chromeos_preferences_; 290 scoped_ptr<chromeos::Preferences> chromeos_preferences_;
281 291
282 scoped_refptr<chromeos::ProxyConfigServiceImpl> 292 scoped_refptr<chromeos::ProxyConfigServiceImpl>
283 chromeos_proxy_config_service_impl_; 293 chromeos_proxy_config_service_impl_;
284 #endif 294 #endif
285 295
286 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 296 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
287 297
288 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 298 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
289 }; 299 };
290 300
291 #endif // CHROME_BROWSER_PROFILE_IMPL_H_ 301 #endif // CHROME_BROWSER_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698