| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/webcrypto/webcrypto_impl.h" | 5 #include "components/webcrypto/webcrypto_impl.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/task_runner.h" | 17 #include "base/task_runner.h" |
| 18 #include "base/thread_task_runner_handle.h" | |
| 19 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "base/threading/thread_task_runner_handle.h" |
| 20 #include "base/threading/worker_pool.h" | 20 #include "base/threading/worker_pool.h" |
| 21 #include "components/webcrypto/algorithm_dispatch.h" | 21 #include "components/webcrypto/algorithm_dispatch.h" |
| 22 #include "components/webcrypto/crypto_data.h" | 22 #include "components/webcrypto/crypto_data.h" |
| 23 #include "components/webcrypto/generate_key_result.h" | 23 #include "components/webcrypto/generate_key_result.h" |
| 24 #include "components/webcrypto/status.h" | 24 #include "components/webcrypto/status.h" |
| 25 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 25 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
| 26 #include "third_party/WebKit/public/platform/WebString.h" | 26 #include "third_party/WebKit/public/platform/WebString.h" |
| 27 | 27 |
| 28 namespace webcrypto { | 28 namespace webcrypto { |
| 29 | 29 |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 webcrypto::CryptoData(key_data, key_data_size), &key); | 786 webcrypto::CryptoData(key_data, key_data_size), &key); |
| 787 } | 787 } |
| 788 | 788 |
| 789 bool WebCryptoImpl::serializeKeyForClone( | 789 bool WebCryptoImpl::serializeKeyForClone( |
| 790 const blink::WebCryptoKey& key, | 790 const blink::WebCryptoKey& key, |
| 791 blink::WebVector<unsigned char>& key_data) { | 791 blink::WebVector<unsigned char>& key_data) { |
| 792 return webcrypto::SerializeKeyForClone(key, &key_data); | 792 return webcrypto::SerializeKeyForClone(key, &key_data); |
| 793 } | 793 } |
| 794 | 794 |
| 795 } // namespace webcrypto | 795 } // namespace webcrypto |
| OLD | NEW |