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

Side by Side Diff: chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h

Issue 19733003: Implement cloud policy invalidations using the invalidation service framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 #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 policy {
12
13 // Creates an instance of UserCloudPolicyInvalidator for each profile.
14 class UserCloudPolicyInvalidatorFactory
15 : public BrowserContextKeyedServiceFactory {
16 public:
17 static UserCloudPolicyInvalidatorFactory* GetInstance();
18
19 private:
20 friend struct DefaultSingletonTraits<UserCloudPolicyInvalidatorFactory>;
21
22 UserCloudPolicyInvalidatorFactory();
23 virtual ~UserCloudPolicyInvalidatorFactory();
24
25 // BrowserContextKeyedServiceFactory:
26 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
27 content::BrowserContext* context) const OVERRIDE;
28 virtual bool ServiceIsCreatedWithBrowserContext() const OVERRIDE;
29 virtual bool ServiceIsNULLWhileTesting() const OVERRIDE;
30
31 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidatorFactory);
32 };
33
34 } // namespace policy
35
36 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698