| 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 <stdint.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 9 #include "base/location.h" | 11 #include "base/location.h" |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 13 #include "base/task_runner.h" | 15 #include "base/task_runner.h" |
| 14 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 15 #include "base/threading/sequenced_worker_pool.h" | 17 #include "base/threading/sequenced_worker_pool.h" |
| 16 #include "base/threading/worker_pool.h" | 18 #include "base/threading/worker_pool.h" |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 webcrypto::CryptoData(key_data, key_data_size), &key); | 783 webcrypto::CryptoData(key_data, key_data_size), &key); |
| 782 } | 784 } |
| 783 | 785 |
| 784 bool WebCryptoImpl::serializeKeyForClone( | 786 bool WebCryptoImpl::serializeKeyForClone( |
| 785 const blink::WebCryptoKey& key, | 787 const blink::WebCryptoKey& key, |
| 786 blink::WebVector<unsigned char>& key_data) { | 788 blink::WebVector<unsigned char>& key_data) { |
| 787 return webcrypto::SerializeKeyForClone(key, &key_data); | 789 return webcrypto::SerializeKeyForClone(key, &key_data); |
| 788 } | 790 } |
| 789 | 791 |
| 790 } // namespace webcrypto | 792 } // namespace webcrypto |
| OLD | NEW |