OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_POLICY_NOTIFIER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_POLICY_NOTIFIER_H_ |
6 #define CHROME_BROWSER_POLICY_POLICY_NOTIFIER_H_ | 6 #define CHROME_BROWSER_POLICY_POLICY_NOTIFIER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
10 #include "chrome/browser/policy/cloud_policy_subsystem.h" | 9 #include "chrome/browser/policy/cloud_policy_subsystem.h" |
11 | 10 |
12 namespace policy { | 11 namespace policy { |
13 | 12 |
14 // Keeps track of the state of the policy subsystem components as far as it's | 13 // Keeps track of the state of the policy subsystem components as far as it's |
15 // relevant to the outside world. Is informed by components about status | 14 // relevant to the outside world. Is informed by components about status |
16 // changes (failures and successes), determines the overall state and | 15 // changes (failures and successes), determines the overall state and |
17 // communicates it. | 16 // communicates it. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 ErrorDetails component_error_details_[NUM_SOURCES]; | 59 ErrorDetails component_error_details_[NUM_SOURCES]; |
61 | 60 |
62 ObserverList<CloudPolicySubsystem::Observer, true> observer_list_; | 61 ObserverList<CloudPolicySubsystem::Observer, true> observer_list_; |
63 | 62 |
64 DISALLOW_COPY_AND_ASSIGN(PolicyNotifier); | 63 DISALLOW_COPY_AND_ASSIGN(PolicyNotifier); |
65 }; | 64 }; |
66 | 65 |
67 } // namespace policy | 66 } // namespace policy |
68 | 67 |
69 #endif // CHROME_BROWSER_POLICY_POLICY_NOTIFIER_H_ | 68 #endif // CHROME_BROWSER_POLICY_POLICY_NOTIFIER_H_ |
OLD | NEW |