Index: chrome/browser/extensions/api/token_cache/token_cache_factory.h |
diff --git a/chrome/browser/extensions/api/token_cache/token_cache_factory.h b/chrome/browser/extensions/api/token_cache/token_cache_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..16a96c6656dee5590fc66b494c127e6094ebc917 |
--- /dev/null |
+++ b/chrome/browser/extensions/api/token_cache/token_cache_factory.h |
@@ -0,0 +1,35 @@ |
+// Copyright (c) 2013 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_EXTENSIONS_API_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ |
+#define CHROME_BROWSER_EXTENSIONS_API_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ |
+ |
+#include "base/compiler_specific.h" |
+#include "base/memory/singleton.h" |
+#include "chrome/browser/profiles/profile_keyed_service_factory.h" |
+ |
+class TokenCacheService; |
+ |
+class TokenCacheServiceFactory : public ProfileKeyedServiceFactory { |
+ public: |
+ static TokenCacheService* GetForProfile(Profile* profile); |
+ static TokenCacheServiceFactory* GetInstance(); |
+ |
+ private: |
+ TokenCacheServiceFactory(); |
+ virtual ~TokenCacheServiceFactory(); |
+ |
+ friend struct DefaultSingletonTraits<TokenCacheServiceFactory>; |
+ |
+ // Inherited from ProfileKeyedServiceFactory: |
+ virtual ProfileKeyedService* BuildServiceInstanceFor( |
+ Profile* profile) const OVERRIDE; |
+ virtual bool ServiceRedirectedInIncognito() const OVERRIDE; |
+ virtual bool ServiceIsCreatedWithProfile() const OVERRIDE; |
+ virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TokenCacheServiceFactory); |
+}; |
+ |
+#endif // CHROME_BROWSER_EXTENSIONS_API_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ |