Chromium Code Reviews| Index: chrome/browser/sync/credential_cache_service_factory_win.h |
| diff --git a/chrome/browser/sync/credential_cache_service_factory_win.h b/chrome/browser/sync/credential_cache_service_factory_win.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..634ed84d937bc89bd2acf88519da993490fc8f3f |
| --- /dev/null |
| +++ b/chrome/browser/sync/credential_cache_service_factory_win.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_SYNC_CREDENTIAL_CACHE_SERVICE_FACTORY_WIN_H_ |
| +#define CHROME_BROWSER_SYNC_CREDENTIAL_CACHE_SERVICE_FACTORY_WIN_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/singleton.h" |
| +#include "chrome/browser/profiles/profile_keyed_service_factory.h" |
| + |
| +class Profile; |
| + |
| +namespace syncer { |
| +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
|
| +} |
| + |
| +class CredentialCacheServiceFactory : public ProfileKeyedServiceFactory { |
| + public: |
| + static syncer::CredentialCacheService* GetForProfile(Profile* profile); |
| + |
| + static CredentialCacheServiceFactory* GetInstance(); |
| + |
| + private: |
| + friend struct DefaultSingletonTraits<CredentialCacheServiceFactory>; |
| + |
| + CredentialCacheServiceFactory(); |
| + |
| + virtual ~CredentialCacheServiceFactory(); |
| + |
| + // ProfileKeyedServiceFactory implementation. |
| + virtual ProfileKeyedService* BuildServiceInstanceFor( |
| + Profile* profile) const OVERRIDE; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_SYNC_CREDENTIAL_CACHE_SERVICE_FACTORY_WIN_H_ |