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 "chrome/browser/policy/cloud/cloud_policy_invalidator.h" | 8 #include "chrome/browser/policy/cloud/cloud_policy_invalidator.h" |
9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 9 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // content::NotificationObserver implementation: | 37 // content::NotificationObserver implementation: |
38 virtual void Observe(int type, | 38 virtual void Observe(int type, |
39 const content::NotificationSource& source, | 39 const content::NotificationSource& source, |
40 const content::NotificationDetails& details) OVERRIDE; | 40 const content::NotificationDetails& details) OVERRIDE; |
41 | 41 |
42 private: | 42 private: |
43 // The profile associated with the invalidator. | 43 // The profile associated with the invalidator. |
44 Profile* profile_; | 44 Profile* profile_; |
45 | 45 |
46 // The policy manager for the user policy. | |
47 CloudPolicyManager* policy_manager_; | |
48 | |
49 // Used to register for notification that profile creation is complete. | 46 // Used to register for notification that profile creation is complete. |
50 content::NotificationRegistrar registrar_; | 47 content::NotificationRegistrar registrar_; |
51 | 48 |
52 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidator); | 49 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyInvalidator); |
53 }; | 50 }; |
54 | 51 |
55 } // namespace policy | 52 } // namespace policy |
56 | 53 |
57 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ | 54 #endif // CHROME_BROWSER_POLICY_CLOUD_USER_CLOUD_POLICY_INVALIDATOR_H_ |
OLD | NEW |