| 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 #include "components/policy/core/common/cloud/policy_header_service.h" | 5 #include "components/policy/core/common/cloud/policy_header_service.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/sequenced_task_runner.h" |
| 10 #include "base/values.h" | 11 #include "base/values.h" |
| 11 #include "components/policy/core/common/cloud/cloud_policy_store.h" | 12 #include "components/policy/core/common/cloud/cloud_policy_store.h" |
| 12 #include "components/policy/core/common/cloud/policy_header_io_helper.h" | 13 #include "components/policy/core/common/cloud/policy_header_io_helper.h" |
| 13 | 14 |
| 14 namespace { | 15 namespace { |
| 15 const char kUserDMTokenKey[] = "user_dmtoken"; | 16 const char kUserDMTokenKey[] = "user_dmtoken"; |
| 16 const char kUserPolicyTokenKey[] = "user_policy_token"; | 17 const char kUserPolicyTokenKey[] = "user_policy_token"; |
| 17 const char kVerificationKeyHashKey[] = "verification_key_id"; | 18 const char kVerificationKeyHashKey[] = "verification_key_id"; |
| 18 } | 19 } |
| 19 | 20 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 93 |
| 93 void PolicyHeaderService::OnStoreError(CloudPolicyStore* store) { | 94 void PolicyHeaderService::OnStoreError(CloudPolicyStore* store) { |
| 94 // Do nothing on errors. | 95 // Do nothing on errors. |
| 95 } | 96 } |
| 96 | 97 |
| 97 std::vector<PolicyHeaderIOHelper*> PolicyHeaderService::GetHelpersForTest() { | 98 std::vector<PolicyHeaderIOHelper*> PolicyHeaderService::GetHelpersForTest() { |
| 98 return helpers_; | 99 return helpers_; |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace policy | 102 } // namespace policy |
| OLD | NEW |