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

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

Issue 9764006: Make ExtensionPrefValueMap a ProfileKeyedService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -- Created 8 years, 8 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
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // Profile implementation: 67 // Profile implementation:
68 virtual std::string GetProfileName() OVERRIDE; 68 virtual std::string GetProfileName() OVERRIDE;
69 virtual bool IsOffTheRecord() const OVERRIDE; 69 virtual bool IsOffTheRecord() const OVERRIDE;
70 virtual Profile* GetOffTheRecordProfile() OVERRIDE; 70 virtual Profile* GetOffTheRecordProfile() OVERRIDE;
71 virtual void DestroyOffTheRecordProfile() OVERRIDE; 71 virtual void DestroyOffTheRecordProfile() OVERRIDE;
72 virtual bool HasOffTheRecordProfile() OVERRIDE; 72 virtual bool HasOffTheRecordProfile() OVERRIDE;
73 virtual Profile* GetOriginalProfile() OVERRIDE; 73 virtual Profile* GetOriginalProfile() OVERRIDE;
74 virtual history::TopSites* GetTopSites() OVERRIDE; 74 virtual history::TopSites* GetTopSites() OVERRIDE;
75 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 75 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
76 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; 76 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE;
77 virtual ExtensionPrefValueMap* GetExtensionPrefValueMap() OVERRIDE;
78 virtual ExtensionService* GetExtensionService() OVERRIDE; 77 virtual ExtensionService* GetExtensionService() OVERRIDE;
79 virtual UserScriptMaster* GetUserScriptMaster() OVERRIDE; 78 virtual UserScriptMaster* GetUserScriptMaster() OVERRIDE;
80 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; 79 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE;
81 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; 80 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE;
82 virtual ExtensionSpecialStoragePolicy* 81 virtual ExtensionSpecialStoragePolicy*
83 GetExtensionSpecialStoragePolicy() OVERRIDE; 82 GetExtensionSpecialStoragePolicy() OVERRIDE;
84 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; 83 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE;
85 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; 84 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE;
86 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; 85 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE;
87 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; 86 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 void EnsureSessionServiceCreated(); 159 void EnsureSessionServiceCreated();
161 #endif 160 #endif
162 161
163 162
164 void EnsureRequestContextCreated() { 163 void EnsureRequestContextCreated() {
165 GetRequestContext(); 164 GetRequestContext();
166 } 165 }
167 166
168 void UpdateProfileUserNameCache(); 167 void UpdateProfileUserNameCache();
169 168
170
171 // Updates the ProfileInfoCache with data from this profile. 169 // Updates the ProfileInfoCache with data from this profile.
172 void UpdateProfileNameCache(); 170 void UpdateProfileNameCache();
173 void UpdateProfileAvatarCache(); 171 void UpdateProfileAvatarCache();
174 172
175 void GetCacheParameters(bool is_media_context, 173 void GetCacheParameters(bool is_media_context,
176 FilePath* cache_path, 174 FilePath* cache_path,
177 int* max_size); 175 int* max_size);
178 176
179 content::NotificationRegistrar registrar_; 177 content::NotificationRegistrar registrar_;
180 PrefChangeRegistrar pref_change_registrar_; 178 PrefChangeRegistrar pref_change_registrar_;
181 179
182 FilePath path_; 180 FilePath path_;
183 FilePath base_cache_path_; 181 FilePath base_cache_path_;
184 182
185 // !!! BIG HONKING WARNING !!! 183 // !!! BIG HONKING WARNING !!!
186 // The order of the members below is important. Do not change it unless 184 // The order of the members below is important. Do not change it unless
187 // you know what you're doing. Also, if adding a new member here make sure 185 // you know what you're doing. Also, if adding a new member here make sure
188 // that the declaration occurs AFTER things it depends on as destruction 186 // that the declaration occurs AFTER things it depends on as destruction
189 // happens in reverse order of declaration. 187 // happens in reverse order of declaration.
190 188
191 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
192 // Keep |prefs_| on top for destruction order because |extension_prefs_|, 189 // Keep |prefs_| on top for destruction order because |extension_prefs_|,
193 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store 190 // |net_pref_observer_|, |web_resource_service_|, and |io_data_| store
194 // pointers to |prefs_| and shall be destructed first. 191 // pointers to |prefs_| and shall be destructed first.
195 scoped_ptr<PrefService> prefs_; 192 scoped_ptr<PrefService> prefs_;
196 scoped_ptr<PrefService> otr_prefs_; 193 scoped_ptr<PrefService> otr_prefs_;
197 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_; 194 scoped_ptr<VisitedLinkEventListener> visited_link_event_listener_;
198 scoped_ptr<VisitedLinkMaster> visited_link_master_; 195 scoped_ptr<VisitedLinkMaster> visited_link_master_;
199 ProfileImplIOData::Handle io_data_; 196 ProfileImplIOData::Handle io_data_;
200 scoped_refptr<ExtensionSpecialStoragePolicy> 197 scoped_refptr<ExtensionSpecialStoragePolicy>
201 extension_special_storage_policy_; 198 extension_special_storage_policy_;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 Profile::Delegate* delegate_; 264 Profile::Delegate* delegate_;
268 265
269 chrome_browser_net::Predictor* predictor_; 266 chrome_browser_net::Predictor* predictor_;
270 267
271 bool session_restore_enabled_; 268 bool session_restore_enabled_;
272 269
273 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 270 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
274 }; 271 };
275 272
276 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 273 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698