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 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_ | |
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_ | |
7 | |
8 #include "base/memory/singleton.h" | |
9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h" | |
10 | |
11 /*namespace content { | |
12 class BrowserContext; | |
13 }*/ | |
Joao da Silva
2013/07/25 18:03:53
Remove this
Steve Condie
2013/07/26 01:39:25
Done.
| |
14 | |
15 namespace policy { | |
16 | |
17 class UserCloudPolicyInvalidatorFactory | |
Joao da Silva
2013/07/25 18:03:53
Document the class
Steve Condie
2013/07/26 01:39:25
Done.
| |
18 : public BrowserContextKeyedServiceFactory { | |
19 public: | |
20 static UserCloudPolicyInvalidatorFactory* GetInstance(); | |
21 | |
22 private: | |
23 friend struct DefaultSingletonTraits<UserCloudPolicyInvalidatorFactory>; | |
24 | |
25 UserCloudPolicyInvalidatorFactory(); | |
26 virtual ~UserCloudPolicyInvalidatorFactory(); | |
27 | |
28 // BrowserContextKeyedServiceFactory: | |
29 virtual BrowserContextKeyedService* BuildServiceInstanceFor( | |
30 content::BrowserContext* context) const OVERRIDE; | |
31 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE; | |
32 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidatorFactory); | |
35 }; | |
36 | |
37 } // namespace policy | |
38 | |
39 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_ | |
OLD | NEW |