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 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | |
| 7 | |
| 8 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" | |
| 9 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" | |
| 10 | |
| 11 namespace invalidation { | |
| 12 class InvalidationService; | |
| 13 } | |
| 14 | |
| 15 namespace policy { | |
| 16 | |
| 17 class CloudPolicyManager; | |
| 18 | |
| 19 // Provides invalidations to user policy. Implemented as a | |
| 20 // BrowserContextKeyedService to allow profile-based lifetime management. | |
| 21 class UserCloudPolicyInvalidator : public CloudPolicyInvalidator, | |
|
rlarocque
2013/07/25 19:23:40
I'm curious: Why does this class exist? Why not m
Steve Condie
2013/07/26 01:39:25
The reason is that there are other types of cloud
| |
| 22 public BrowserContextKeyedService { | |
| 23 public: | |
| 24 // |invalidation_service| is the invalidation service which generates the | |
| 25 // invalidations and must remain valid until Shutdown is called. | |
| 26 // |policy_manager| is the policy manager for the user policy and must remain | |
| 27 // valid until Shutdown is called. | |
| 28 UserCloudPolicyInvalidator( | |
| 29 invalidation::InvalidationService* invalidation_service, | |
| 30 CloudPolicyManager* policy_manager); | |
| 31 | |
| 32 // BrowserContextKeyedService: | |
| 33 virtual void Shutdown() OVERRIDE; | |
| 34 | |
| 35 private: | |
| 36 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidator); | |
| 37 }; | |
| 38 | |
| 39 } // namespace policy | |
| 40 | |
| 41 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | |
| OLD | NEW |