| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_POLICY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SERVICE_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "chrome/browser/policy/cloud_policy_client.h" | 15 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
| 16 #include "chrome/browser/policy/cloud_policy_constants.h" | 16 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" |
| 17 #include "chrome/browser/policy/cloud_policy_store.h" | 17 #include "chrome/browser/policy/cloud/cloud_policy_store.h" |
| 18 | 18 |
| 19 namespace policy { | 19 namespace policy { |
| 20 | 20 |
| 21 // Coordinates cloud policy handling, moving downloaded policy from the client | 21 // Coordinates cloud policy handling, moving downloaded policy from the client |
| 22 // to the store, and setting up client registrations from cached data in the | 22 // to the store, and setting up client registrations from cached data in the |
| 23 // store. Also coordinates actions on policy refresh triggers. | 23 // store. Also coordinates actions on policy refresh triggers. |
| 24 class CloudPolicyService : public CloudPolicyClient::Observer, | 24 class CloudPolicyService : public CloudPolicyClient::Observer, |
| 25 public CloudPolicyStore::Observer { | 25 public CloudPolicyStore::Observer { |
| 26 public: | 26 public: |
| 27 // Callback invoked once the policy refresh attempt has completed. Passed | 27 // Callback invoked once the policy refresh attempt has completed. Passed |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Observers who will receive notifications when the service has finished | 104 // Observers who will receive notifications when the service has finished |
| 105 // initializing. | 105 // initializing. |
| 106 ObserverList<Observer, true> observers_; | 106 ObserverList<Observer, true> observers_; |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(CloudPolicyService); | 108 DISALLOW_COPY_AND_ASSIGN(CloudPolicyService); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 } // namespace policy | 111 } // namespace policy |
| 112 | 112 |
| 113 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SERVICE_H_ | 113 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_SERVICE_H_ |
| OLD | NEW |