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 19 matching lines...) Expand all Loading... |
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. | 39 // FIXME: Remove this once chromium side is updated. |
40 #define WEBCRYPTO_HAS_KEY_ALGORITHM 1 | 40 #define WEBCRYPTO_HMAC_BITS 1 |
41 | 41 |
42 namespace WebCore { class CryptoResult; } | 42 namespace WebCore { class CryptoResult; } |
43 | 43 |
44 #if INSIDE_BLINK | 44 #if INSIDE_BLINK |
45 namespace WTF { template <typename T> class PassRefPtr; } | 45 namespace WTF { template <typename T> class PassRefPtr; } |
46 #endif | 46 #endif |
47 | 47 |
48 namespace blink { | 48 namespace blink { |
49 | 49 |
50 class WebArrayBuffer; | 50 class WebArrayBuffer; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // and is not part of the WebCrypto standard. | 189 // and is not part of the WebCrypto standard. |
190 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;
} |
191 | 191 |
192 protected: | 192 protected: |
193 virtual ~WebCrypto() { } | 193 virtual ~WebCrypto() { } |
194 }; | 194 }; |
195 | 195 |
196 } // namespace blink | 196 } // namespace blink |
197 | 197 |
198 #endif | 198 #endif |
OLD | NEW |