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

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

Issue 10828263: Moving FaviconService to a ProfileKeyedService. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: resyncing with library after revert Created 8 years, 4 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 9
10 #include <string> 10 #include <string>
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 // DEPRECATED. Instead, use ExtensionSystem::event_router(). 209 // DEPRECATED. Instead, use ExtensionSystem::event_router().
210 // Accessor. The instance is created at startup. 210 // Accessor. The instance is created at startup.
211 // TODO(yoz): remove this accessor (bug 104095). 211 // TODO(yoz): remove this accessor (bug 104095).
212 virtual extensions::EventRouter* GetExtensionEventRouter() = 0; 212 virtual extensions::EventRouter* GetExtensionEventRouter() = 0;
213 213
214 // Accessor. The instance is created upon first access. 214 // Accessor. The instance is created upon first access.
215 virtual ExtensionSpecialStoragePolicy* 215 virtual ExtensionSpecialStoragePolicy*
216 GetExtensionSpecialStoragePolicy() = 0; 216 GetExtensionSpecialStoragePolicy() = 0;
217 217
218 // Retrieves a pointer to the FaviconService associated with this
219 // profile. The FaviconService is lazily created the first time
220 // that this method is called.
221 //
222 // Although FaviconService is refcounted, this will not addref, and callers
223 // do not need to do any reference counting as long as they keep the pointer
224 // only for the local scope (which they should do anyway since the browser
225 // process may decide to shut down).
226 //
227 // |access| defines what the caller plans to do with the service. See
228 // the ServiceAccessType definition above.
229 virtual FaviconService* GetFaviconService(ServiceAccessType access) = 0;
230
231 // Accessor. The instance is created upon first access. 218 // Accessor. The instance is created upon first access.
232 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0; 219 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() = 0;
233 220
234 // Returns the UserCloudPolicyManager (if any) that handles this profile's 221 // Returns the UserCloudPolicyManager (if any) that handles this profile's
235 // connection to the cloud-based management service. 222 // connection to the cloud-based management service.
236 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0; 223 virtual policy::UserCloudPolicyManager* GetUserCloudPolicyManager() = 0;
237 224
238 // Returns the PolicyService that provides policies for this profile. 225 // Returns the PolicyService that provides policies for this profile.
239 virtual policy::PolicyService* GetPolicyService() = 0; 226 virtual policy::PolicyService* GetPolicyService() = 0;
240 227
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 struct hash<Profile*> { 402 struct hash<Profile*> {
416 std::size_t operator()(Profile* const& p) const { 403 std::size_t operator()(Profile* const& p) const {
417 return reinterpret_cast<std::size_t>(p); 404 return reinterpret_cast<std::size_t>(p);
418 } 405 }
419 }; 406 };
420 407
421 } // namespace BASE_HASH_NAMESPACE 408 } // namespace BASE_HASH_NAMESPACE
422 #endif 409 #endif
423 410
424 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 411 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698