| 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_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ |
| 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 125 } |
| 126 | 126 |
| 127 void clear_public_key_version() { | 127 void clear_public_key_version() { |
| 128 public_key_version_valid_ = false; | 128 public_key_version_valid_ = false; |
| 129 } | 129 } |
| 130 | 130 |
| 131 // Whether the client is registered with the device management service. | 131 // Whether the client is registered with the device management service. |
| 132 bool is_registered() const { return !dm_token_.empty(); } | 132 bool is_registered() const { return !dm_token_.empty(); } |
| 133 | 133 |
| 134 // The policy response as obtained by the last request to the cloud. This | 134 // The policy response as obtained by the last request to the cloud. This |
| 135 // policy blob hasn't gone through verification, so it's contents cannot be | 135 // policy blob hasn't gone through verification, so its contents cannot be |
| 136 // trusted. Use CloudPolicyStore::policy() and CloudPolicyStore::policy_map() | 136 // trusted. Use CloudPolicyStore::policy() and CloudPolicyStore::policy_map() |
| 137 // instead for making policy decisions. | 137 // instead for making policy decisions. |
| 138 const enterprise_management::PolicyFetchResponse* policy() const { | 138 const enterprise_management::PolicyFetchResponse* policy() const { |
| 139 return policy_.get(); | 139 return policy_.get(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 DeviceManagementStatus status() const { | 142 DeviceManagementStatus status() const { |
| 143 return status_; | 143 return status_; |
| 144 } | 144 } |
| 145 | 145 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 197 |
| 198 ObserverList<Observer, true> observers_; | 198 ObserverList<Observer, true> observers_; |
| 199 | 199 |
| 200 private: | 200 private: |
| 201 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); | 201 DISALLOW_COPY_AND_ASSIGN(CloudPolicyClient); |
| 202 }; | 202 }; |
| 203 | 203 |
| 204 } // namespace policy | 204 } // namespace policy |
| 205 | 205 |
| 206 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ | 206 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_CLIENT_H_ |
| OLD | NEW |