| 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 #include "chrome/browser/policy/cloud_policy_validator.h" | 5 #include "chrome/browser/policy/cloud_policy_validator.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "chrome/browser/policy/cloud_policy_constants.h" | 10 #include "chrome/browser/policy/cloud_policy_constants.h" |
| 11 #include "chrome/browser/policy/proto/chrome_device_policy.pb.h" |
| 12 #include "chrome/browser/policy/proto/cloud_policy.pb.h" |
| 11 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 13 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
| 12 #include "chrome/common/net/gaia/gaia_auth_util.h" | 14 #include "chrome/common/net/gaia/gaia_auth_util.h" |
| 13 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 14 #include "crypto/signature_verifier.h" | 16 #include "crypto/signature_verifier.h" |
| 15 | 17 |
| 16 namespace em = enterprise_management; | 18 namespace em = enterprise_management; |
| 17 | 19 |
| 18 namespace policy { | 20 namespace policy { |
| 19 | 21 |
| 20 namespace { | 22 namespace { |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 : CloudPolicyValidatorBase(policy_response.Pass(), payload.get(), | 338 : CloudPolicyValidatorBase(policy_response.Pass(), payload.get(), |
| 337 base::Bind(completion_callback, this)), | 339 base::Bind(completion_callback, this)), |
| 338 payload_(payload.Pass()) {} | 340 payload_(payload.Pass()) {} |
| 339 | 341 |
| 340 template class CloudPolicyValidator< | 342 template class CloudPolicyValidator< |
| 341 enterprise_management::ChromeDeviceSettingsProto>; | 343 enterprise_management::ChromeDeviceSettingsProto>; |
| 342 template class CloudPolicyValidator< | 344 template class CloudPolicyValidator< |
| 343 enterprise_management::CloudPolicySettings>; | 345 enterprise_management::CloudPolicySettings>; |
| 344 | 346 |
| 345 } // namespace policy | 347 } // namespace policy |
| OLD | NEW |