| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 #if INSIDE_BLINK | 43 #if INSIDE_BLINK |
| 44 namespace WTF { template <typename T> class PassRefPtr; } | 44 namespace WTF { template <typename T> class PassRefPtr; } |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class WebArrayBuffer; | 49 class WebArrayBuffer; |
| 50 class WebString; | 50 class WebString; |
| 51 | 51 |
| 52 // FIXME: Remove once Blink has rolled into Chromium. | |
| 53 #define WEBCRYPTO_HAS_ERROR_TYPE 1 | |
| 54 | |
| 55 enum WebCryptoErrorType { | 52 enum WebCryptoErrorType { |
| 56 WebCryptoErrorTypeType, | 53 WebCryptoErrorTypeType, |
| 57 WebCryptoErrorTypeNotSupported, | 54 WebCryptoErrorTypeNotSupported, |
| 58 WebCryptoErrorTypeSyntax, | 55 WebCryptoErrorTypeSyntax, |
| 59 WebCryptoErrorTypeInvalidState, | 56 WebCryptoErrorTypeInvalidState, |
| 60 WebCryptoErrorTypeInvalidAccess, | 57 WebCryptoErrorTypeInvalidAccess, |
| 61 WebCryptoErrorTypeUnknown, | 58 WebCryptoErrorTypeUnknown, |
| 62 WebCryptoErrorTypeData, | 59 WebCryptoErrorTypeData, |
| 63 WebCryptoErrorTypeOperation, | 60 WebCryptoErrorTypeOperation, |
| 64 }; | 61 }; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 // Returns true on success. | 266 // Returns true on success. |
| 270 virtual bool serializeKeyForClone(const WebCryptoKey&, WebVector<unsigned ch
ar>&) { return false; } | 267 virtual bool serializeKeyForClone(const WebCryptoKey&, WebVector<unsigned ch
ar>&) { return false; } |
| 271 | 268 |
| 272 protected: | 269 protected: |
| 273 virtual ~WebCrypto() { } | 270 virtual ~WebCrypto() { } |
| 274 }; | 271 }; |
| 275 | 272 |
| 276 } // namespace blink | 273 } // namespace blink |
| 277 | 274 |
| 278 #endif | 275 #endif |
| OLD | NEW |