| 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <functional> | 6 #include <functional> |
| 7 #include <map> | 7 #include <map> |
| 8 #include "base/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/strings/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "content/renderer/webcrypto/crypto_data.h" | 14 #include "content/child/webcrypto/crypto_data.h" |
| 15 #include "content/renderer/webcrypto/platform_crypto.h" | 15 #include "content/child/webcrypto/platform_crypto.h" |
| 16 #include "content/renderer/webcrypto/shared_crypto.h" | 16 #include "content/child/webcrypto/shared_crypto.h" |
| 17 #include "content/renderer/webcrypto/webcrypto_util.h" | 17 #include "content/child/webcrypto/webcrypto_util.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 namespace webcrypto { | 21 namespace webcrypto { |
| 22 | 22 |
| 23 namespace { | 23 namespace { |
| 24 | 24 |
| 25 typedef blink::WebCryptoAlgorithm (*AlgorithmCreationFunc)(); | 25 typedef blink::WebCryptoAlgorithm (*AlgorithmCreationFunc)(); |
| 26 | 26 |
| 27 class JwkAlgorithmInfo { | 27 class JwkAlgorithmInfo { |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 } else { | 545 } else { |
| 546 return Status::ErrorJwkUnrecognizedKty(); | 546 return Status::ErrorJwkUnrecognizedKty(); |
| 547 } | 547 } |
| 548 | 548 |
| 549 return Status::Success(); | 549 return Status::Success(); |
| 550 } | 550 } |
| 551 | 551 |
| 552 } // namespace webcrypto | 552 } // namespace webcrypto |
| 553 | 553 |
| 554 } // namespace content | 554 } // namespace content |
| OLD | NEW |