| 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 26 matching lines...) Expand all Loading... |
| 37 #include "public/platform/WebCrypto.h" | 37 #include "public/platform/WebCrypto.h" |
| 38 #include "public/platform/WebCryptoAlgorithm.h" | 38 #include "public/platform/WebCryptoAlgorithm.h" |
| 39 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
| 40 #include "wtf/PassRefPtr.h" | 40 #include "wtf/PassRefPtr.h" |
| 41 #include "wtf/RefCounted.h" | 41 #include "wtf/RefCounted.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 class ScriptPromiseResolver; | 45 class ScriptPromiseResolver; |
| 46 | 46 |
| 47 typedef int ExceptionCode; |
| 48 |
| 47 class CryptoOperation : public ScriptWrappable, public RefCounted<CryptoOperatio
n> { | 49 class CryptoOperation : public ScriptWrappable, public RefCounted<CryptoOperatio
n> { |
| 48 public: | 50 public: |
| 49 ~CryptoOperation(); | 51 ~CryptoOperation(); |
| 50 static PassRefPtr<CryptoOperation> create(const WebKit::WebCryptoAlgorithm&,
WebKit::WebCryptoOperation*); | 52 static PassRefPtr<CryptoOperation> create(const WebKit::WebCryptoAlgorithm&,
WebKit::WebCryptoOperation*); |
| 51 | 53 |
| 52 CryptoOperation* process(ArrayBuffer* data); | 54 CryptoOperation* process(ArrayBuffer* data); |
| 53 CryptoOperation* process(ArrayBufferView* data); | 55 CryptoOperation* process(ArrayBufferView* data); |
| 54 | 56 |
| 55 ScriptObject finish(); | 57 ScriptObject finish(); |
| 56 ScriptObject abort(); | 58 ScriptObject abort(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 State m_state; | 93 State m_state; |
| 92 | 94 |
| 93 RefPtr<ScriptPromiseResolver> m_promiseResolver; | 95 RefPtr<ScriptPromiseResolver> m_promiseResolver; |
| 94 | 96 |
| 95 OwnPtr<Result> m_result; | 97 OwnPtr<Result> m_result; |
| 96 }; | 98 }; |
| 97 | 99 |
| 98 } // namespace WebCore | 100 } // namespace WebCore |
| 99 | 101 |
| 100 #endif | 102 #endif |
| OLD | NEW |