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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebCrypto_h | 31 #ifndef WebCrypto_h |
32 #define WebCrypto_h | 32 #define WebCrypto_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebCryptoAlgorithm.h" | 35 #include "WebCryptoAlgorithm.h" |
36 #include "WebCryptoKey.h" | 36 #include "WebCryptoKey.h" |
37 #include "WebPrivatePtr.h" | 37 #include "WebPrivatePtr.h" |
38 | 38 |
| 39 // FIXME: Remove this once chromium side is updated. |
| 40 #define WEBCRYPTO_HAS_KEY_ALGORITHM 1 |
| 41 |
39 namespace WebCore { class CryptoResult; } | 42 namespace WebCore { class CryptoResult; } |
40 | 43 |
41 #if INSIDE_BLINK | 44 #if INSIDE_BLINK |
42 namespace WTF { template <typename T> class PassRefPtr; } | 45 namespace WTF { template <typename T> class PassRefPtr; } |
43 #endif | 46 #endif |
44 | 47 |
45 namespace blink { | 48 namespace blink { |
46 | 49 |
47 class WebArrayBuffer; | 50 class WebArrayBuffer; |
48 class WebString; | 51 class WebString; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 // and is not part of the WebCrypto standard. | 189 // and is not part of the WebCrypto standard. |
187 virtual bool digestSynchronous(const WebCryptoAlgorithmId algorithmId, const
unsigned char* data, unsigned dataSize, WebArrayBuffer& result) { return false;
} | 190 virtual bool digestSynchronous(const WebCryptoAlgorithmId algorithmId, const
unsigned char* data, unsigned dataSize, WebArrayBuffer& result) { return false;
} |
188 | 191 |
189 protected: | 192 protected: |
190 virtual ~WebCrypto() { } | 193 virtual ~WebCrypto() { } |
191 }; | 194 }; |
192 | 195 |
193 } // namespace blink | 196 } // namespace blink |
194 | 197 |
195 #endif | 198 #endif |
OLD | NEW |