| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "modules/crypto/CryptoResultImpl.h" | 32 #include "modules/crypto/CryptoResultImpl.h" |
| 33 | 33 |
| 34 #include "V8Key.h" // Must precede ScriptPromiseResolver.h | 34 #include "V8Key.h" // Must precede ScriptPromiseResolver.h |
| 35 #include "V8KeyPair.h" // Must precede ScriptPromiseResolver.h | 35 #include "V8KeyPair.h" // Must precede ScriptPromiseResolver.h |
| 36 #include "bindings/v8/custom/V8ArrayBufferCustom.h" // Must precede ScriptPromis
eResolver.h | 36 #include "bindings/v8/custom/V8ArrayBufferCustom.h" // Must precede ScriptPromis
eResolver.h |
| 37 #include "bindings/v8/ScriptPromiseResolver.h" | 37 #include "bindings/v8/ScriptPromiseResolver.h" |
| 38 #include "modules/crypto/Key.h" | 38 #include "modules/crypto/Key.h" |
| 39 #include "modules/crypto/NormalizeAlgorithm.h" | 39 #include "modules/crypto/NormalizeAlgorithm.h" |
| 40 #include "public/platform/Platform.h" | 40 #include "public/platform/Platform.h" |
| 41 #include "public/platform/WebArrayBuffer.h" | 41 #include "public/platform/WebArrayBuffer.h" |
| 42 #include "public/platform/WebCrypto.h" | |
| 43 #include "public/platform/WebCryptoAlgorithm.h" | 42 #include "public/platform/WebCryptoAlgorithm.h" |
| 44 #include "wtf/ArrayBufferView.h" | 43 #include "wtf/ArrayBufferView.h" |
| 45 | 44 |
| 46 namespace WebCore { | 45 namespace WebCore { |
| 47 | 46 |
| 48 CryptoResultImpl::~CryptoResultImpl() | 47 CryptoResultImpl::~CryptoResultImpl() |
| 49 { | 48 { |
| 50 ASSERT(m_finished); | 49 ASSERT(m_finished); |
| 51 } | 50 } |
| 52 | 51 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 : m_promiseResolver(ScriptPromiseResolver::create(promise)) | 88 : m_promiseResolver(ScriptPromiseResolver::create(promise)) |
| 90 , m_finished(false) { } | 89 , m_finished(false) { } |
| 91 | 90 |
| 92 void CryptoResultImpl::finish() | 91 void CryptoResultImpl::finish() |
| 93 { | 92 { |
| 94 ASSERT(!m_finished); | 93 ASSERT(!m_finished); |
| 95 m_finished = true; | 94 m_finished = true; |
| 96 } | 95 } |
| 97 | 96 |
| 98 } // namespace WebCore | 97 } // namespace WebCore |
| OLD | NEW |