OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" | 9 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" |
10 #include "components/keyed_service/core/keyed_service.h" | 10 #include "components/keyed_service/core/keyed_service.h" |
| 11 #include "components/policy/proto/device_management_backend.pb.h" |
11 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
13 #include "policy/proto/device_management_backend.pb.h" | |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace policy { | 17 namespace policy { |
18 | 18 |
19 class CloudPolicyManager; | 19 class CloudPolicyManager; |
20 | 20 |
21 // Provides invalidations to user policy. Implemented as a | 21 // Provides invalidations to user policy. Implemented as a |
22 // KeyedService to allow profile-based lifetime management. | 22 // KeyedService to allow profile-based lifetime management. |
23 class UserCloudPolicyInvalidator : public CloudPolicyInvalidator, | 23 class UserCloudPolicyInvalidator : public CloudPolicyInvalidator, |
(...skipping 25 matching lines...) Expand all Loading... |
49 | 49 |
50 // Used to register for notification that profile creation is complete. | 50 // Used to register for notification that profile creation is complete. |
51 content::NotificationRegistrar registrar_; | 51 content::NotificationRegistrar registrar_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidator); | 53 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidator); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace policy | 56 } // namespace policy |
57 | 57 |
58 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | 58 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ |
OLD | NEW |