Chromium Code Reviews| Index: chrome/browser/token_cache/token_cache_factory.h |
| diff --git a/chrome/browser/token_cache/token_cache_factory.h b/chrome/browser/token_cache/token_cache_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..afcea4bed5bd35acac0ed019865eb51e22d3a41c |
| --- /dev/null |
| +++ b/chrome/browser/token_cache/token_cache_factory.h |
| @@ -0,0 +1,38 @@ |
| +// 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. |
| + |
| +// 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.
|
| +// when the user logs out or after the specified timeout interval. |
| + |
| +#ifndef CHROME_BROWSER_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ |
| +#define CHROME_BROWSER_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_TOKEN_CACHE_TOKEN_CACHE_FACTORY_H_ |