Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: public/platform/WebCrypto.h

Issue 259233003: [refactor] Remove WEBCRYPTO_HAS_ERROR_TYPE ifdef. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698