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

Side by Side Diff: Source/modules/crypto/CryptoOperation.h

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 | « Source/modules/crypto/Crypto.cpp ('k') | Source/modules/crypto/NormalizeAlgorithm.h » ('j') | 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 26 matching lines...) Expand all
37 #include "public/platform/WebCrypto.h" 37 #include "public/platform/WebCrypto.h"
38 #include "public/platform/WebCryptoAlgorithm.h" 38 #include "public/platform/WebCryptoAlgorithm.h"
39 #include "wtf/Forward.h" 39 #include "wtf/Forward.h"
40 #include "wtf/PassRefPtr.h" 40 #include "wtf/PassRefPtr.h"
41 #include "wtf/RefCounted.h" 41 #include "wtf/RefCounted.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 class ScriptPromiseResolver; 45 class ScriptPromiseResolver;
46 46
47 typedef int ExceptionCode;
48
47 class CryptoOperation : public ScriptWrappable, public RefCounted<CryptoOperatio n> { 49 class CryptoOperation : public ScriptWrappable, public RefCounted<CryptoOperatio n> {
48 public: 50 public:
49 ~CryptoOperation(); 51 ~CryptoOperation();
50 static PassRefPtr<CryptoOperation> create(const WebKit::WebCryptoAlgorithm&, WebKit::WebCryptoOperation*); 52 static PassRefPtr<CryptoOperation> create(const WebKit::WebCryptoAlgorithm&, WebKit::WebCryptoOperation*);
51 53
52 CryptoOperation* process(ArrayBuffer* data); 54 CryptoOperation* process(ArrayBuffer* data);
53 CryptoOperation* process(ArrayBufferView* data); 55 CryptoOperation* process(ArrayBufferView* data);
54 56
55 ScriptObject finish(); 57 ScriptObject finish();
56 ScriptObject abort(); 58 ScriptObject abort();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 State m_state; 93 State m_state;
92 94
93 RefPtr<ScriptPromiseResolver> m_promiseResolver; 95 RefPtr<ScriptPromiseResolver> m_promiseResolver;
94 96
95 OwnPtr<Result> m_result; 97 OwnPtr<Result> m_result;
96 }; 98 };
97 99
98 } // namespace WebCore 100 } // namespace WebCore
99 101
100 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/modules/crypto/Crypto.cpp ('k') | Source/modules/crypto/NormalizeAlgorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698