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

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

Issue 9977021: Add ExtensionSytem::Get(Profile*) as a wrapper around (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
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_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 // Retrieves a pointer to the VisitedLinkMaster associated with this 205 // Retrieves a pointer to the VisitedLinkMaster associated with this
206 // profile. The VisitedLinkMaster is lazily created the first time 206 // profile. The VisitedLinkMaster is lazily created the first time
207 // that this method is called. 207 // that this method is called.
208 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0; 208 virtual VisitedLinkMaster* GetVisitedLinkMaster() = 0;
209 209
210 // Accessor. The instance is created upon first access. 210 // Accessor. The instance is created upon first access.
211 // TODO(yoz): make this a ProfileKeyedService. 211 // TODO(yoz): make this a ProfileKeyedService.
212 virtual ExtensionPrefValueMap* GetExtensionPrefValueMap() = 0; 212 virtual ExtensionPrefValueMap* GetExtensionPrefValueMap() = 0;
213 213
214 // DEPRECATED. Instead, use ExtensionSystemFactory::extension_service(). 214 // DEPRECATED. Instead, use ExtensionSystem::extension_service().
215 // Retrieves a pointer to the ExtensionService associated with this 215 // Retrieves a pointer to the ExtensionService associated with this
216 // profile. The ExtensionService is created at startup. 216 // profile. The ExtensionService is created at startup.
217 // TODO(yoz): remove this accessor (bug 104095). 217 // TODO(yoz): remove this accessor (bug 104095).
218 virtual ExtensionService* GetExtensionService() = 0; 218 virtual ExtensionService* GetExtensionService() = 0;
219 219
220 // DEPRECATED. Instead, use ExtensionSystemFactory::user_script_master(). 220 // DEPRECATED. Instead, use ExtensionSystem::user_script_master().
221 // Retrieves a pointer to the UserScriptMaster associated with this 221 // Retrieves a pointer to the UserScriptMaster associated with this
222 // profile. The UserScriptMaster is lazily created the first time 222 // profile. The UserScriptMaster is lazily created the first time
223 // that this method is called. 223 // that this method is called.
224 // TODO(yoz): remove this accessor (bug 104095). 224 // TODO(yoz): remove this accessor (bug 104095).
225 virtual UserScriptMaster* GetUserScriptMaster() = 0; 225 virtual UserScriptMaster* GetUserScriptMaster() = 0;
226 226
227 // DEPRECATED. Instead, use ExtensionSystemFactory::process_manager(). 227 // DEPRECATED. Instead, use ExtensionSystem::process_manager().
228 // Retrieves a pointer to the ExtensionProcessManager associated with this 228 // Retrieves a pointer to the ExtensionProcessManager associated with this
229 // profile. The instance is created at startup. 229 // profile. The instance is created at startup.
230 // TODO(yoz): remove this accessor (bug 104095). 230 // TODO(yoz): remove this accessor (bug 104095).
231 virtual ExtensionProcessManager* GetExtensionProcessManager() = 0; 231 virtual ExtensionProcessManager* GetExtensionProcessManager() = 0;
232 232
233 // DEPRECATED. Instead, use ExtensionSystemFactory::event_router(). 233 // DEPRECATED. Instead, use ExtensionSystem::event_router().
234 // Accessor. The instance is created at startup. 234 // Accessor. The instance is created at startup.
235 // TODO(yoz): remove this accessor (bug 104095). 235 // TODO(yoz): remove this accessor (bug 104095).
236 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0; 236 virtual ExtensionEventRouter* GetExtensionEventRouter() = 0;
237 237
238 // Accessor. The instance is created upon first access. 238 // Accessor. The instance is created upon first access.
239 virtual ExtensionSpecialStoragePolicy* 239 virtual ExtensionSpecialStoragePolicy*
240 GetExtensionSpecialStoragePolicy() = 0; 240 GetExtensionSpecialStoragePolicy() = 0;
241 241
242 // Retrieves a pointer to the FaviconService associated with this 242 // Retrieves a pointer to the FaviconService associated with this
243 // profile. The FaviconService is lazily created the first time 243 // profile. The FaviconService is lazily created the first time
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 struct hash<Profile*> { 480 struct hash<Profile*> {
481 std::size_t operator()(Profile* const& p) const { 481 std::size_t operator()(Profile* const& p) const {
482 return reinterpret_cast<std::size_t>(p); 482 return reinterpret_cast<std::size_t>(p);
483 } 483 }
484 }; 484 };
485 485
486 } // namespace BASE_HASH_NAMESPACE 486 } // namespace BASE_HASH_NAMESPACE
487 #endif 487 #endif
488 488
489 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 489 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698