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