Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: chrome/browser/token_cache/token_cache_factory.h

Issue 12380006: Build a new TokenCacheService so I can stop using TokenService for something it wasn't designed for. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698