OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYNC_CREDENTIAL_CACHE_SERVICE_FACTORY_WIN_H_ | |
6 #define CHROME_BROWSER_SYNC_CREDENTIAL_CACHE_SERVICE_FACTORY_WIN_H_ | |
7 | |
8 #include "base/compiler_specific.h" | |
9 #include "base/memory/singleton.h" | |
10 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
11 | |
12 class Profile; | |
13 | |
14 namespace syncer { | |
15 class CredentialCacheService; | |
Andrew T Wilson (Slow)
2012/07/20 01:04:05
Just out of curiosity, why is CredentialCacheServi
Raghu Simha
2012/07/20 23:35:22
I was using the example set by ProfileSyncServiceF
| |
16 } | |
17 | |
18 class CredentialCacheServiceFactory : public ProfileKeyedServiceFactory { | |
19 public: | |
20 static syncer::CredentialCacheService* GetForProfile(Profile* profile); | |
21 | |
22 static CredentialCacheServiceFactory* GetInstance(); | |
23 | |
24 private: | |
25 friend struct DefaultSingletonTraits<CredentialCacheServiceFactory>; | |
26 | |
27 CredentialCacheServiceFactory(); | |
28 | |
29 virtual ~CredentialCacheServiceFactory(); | |
30 | |
31 // ProfileKeyedServiceFactory implementation. | |
32 virtual ProfileKeyedService* BuildServiceInstanceFor( | |
33 Profile* profile) const OVERRIDE; | |
34 }; | |
35 | |
36 #endif // CHROME_BROWSER_SYNC_CREDENTIAL_CACHE_SERVICE_FACTORY_WIN_H_ | |
OLD | NEW |