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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 { | 62 { |
63 assign(o); | 63 assign(o); |
64 return *this; | 64 return *this; |
65 } | 65 } |
66 | 66 |
67 WEBKIT_EXPORT void completeWithError(); | 67 WEBKIT_EXPORT void completeWithError(); |
68 WEBKIT_EXPORT void completeWithBuffer(const WebArrayBuffer&); | 68 WEBKIT_EXPORT void completeWithBuffer(const WebArrayBuffer&); |
69 WEBKIT_EXPORT void completeWithBuffer(const void*, size_t); | 69 WEBKIT_EXPORT void completeWithBuffer(const void*, size_t); |
70 WEBKIT_EXPORT void completeWithBoolean(bool); | 70 WEBKIT_EXPORT void completeWithBoolean(bool); |
71 WEBKIT_EXPORT void completeWithKey(const WebCryptoKey&); | 71 WEBKIT_EXPORT void completeWithKey(const WebCryptoKey&); |
| 72 WEBKIT_EXPORT void completeWithKeyPair(const WebCryptoKey& publicKey, const
WebCryptoKey& privateKey); |
72 | 73 |
73 #if WEBKIT_IMPLEMENTATION | 74 #if WEBKIT_IMPLEMENTATION |
74 explicit WebCryptoResult(const WTF::PassRefPtr<WebCore::CryptoResult>&); | 75 explicit WebCryptoResult(const WTF::PassRefPtr<WebCore::CryptoResult>&); |
75 #endif | 76 #endif |
76 | 77 |
77 private: | 78 private: |
78 WEBKIT_EXPORT void reset(); | 79 WEBKIT_EXPORT void reset(); |
79 WEBKIT_EXPORT void assign(const WebCryptoResult&); | 80 WEBKIT_EXPORT void assign(const WebCryptoResult&); |
80 | 81 |
81 WebPrivatePtr<WebCore::CryptoResult> m_impl; | 82 WebPrivatePtr<WebCore::CryptoResult> m_impl; |
(...skipping 19 matching lines...) Expand all Loading... |
101 virtual void generateKey(const WebCryptoAlgorithm&, bool extractable, WebCry
ptoKeyUsageMask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); } | 102 virtual void generateKey(const WebCryptoAlgorithm&, bool extractable, WebCry
ptoKeyUsageMask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); } |
102 virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, siz
e_t keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageM
ask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); } | 103 virtual void importKey(WebCryptoKeyFormat, const unsigned char* keyData, siz
e_t keyDataSize, const WebCryptoAlgorithm&, bool extractable, WebCryptoKeyUsageM
ask, WebCryptoResult) { WEBKIT_ASSERT_NOT_REACHED(); } |
103 | 104 |
104 protected: | 105 protected: |
105 virtual ~WebCrypto() { } | 106 virtual ~WebCrypto() { } |
106 }; | 107 }; |
107 | 108 |
108 } // namespace WebKit | 109 } // namespace WebKit |
109 | 110 |
110 #endif | 111 #endif |
OLD | NEW |