Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 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 // This class caches tokens for the curren user. It will flush tokens out | |
|
dcheng
2013/02/28 19:18:04
Remove this comment. This is just a factory class,
Pete Williamson
2013/03/04 18:32:53
Done.
| |
| 6 // when the user logs out or after the specified timeout interval. | |
| 7 | |
| 8 #ifndef CHROME_BROWSER_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ | |
| 9 #define CHROME_BROWSER_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ | |
| 10 | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "base/memory/singleton.h" | |
| 13 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
| 14 | |
| 15 class TokenCacheService; | |
| 16 | |
| 17 class TokenCacheServiceFactory : public ProfileKeyedServiceFactory { | |
| 18 public: | |
| 19 static TokenCacheService* GetForProfile(Profile* profile); | |
| 20 static TokenCacheServiceFactory* GetInstance(); | |
| 21 | |
| 22 private: | |
| 23 TokenCacheServiceFactory(); | |
| 24 virtual ~TokenCacheServiceFactory(); | |
| 25 | |
| 26 friend struct DefaultSingletonTraits<TokenCacheServiceFactory>; | |
| 27 | |
| 28 // Inherited from ProfileKeyedServiceFactory: | |
| 29 virtual ProfileKeyedService* BuildServiceInstanceFor( | |
| 30 Profile* profile) const OVERRIDE; | |
| 31 virtual bool ServiceRedirectedInIncognito() const OVERRIDE; | |
| 32 virtual bool ServiceIsCreatedWithProfile() const OVERRIDE; | |
| 33 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(TokenCacheServiceFactory); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ | |
| OLD | NEW |