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

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

Issue 21561004: WebCrypto: Add crypto.subtle.verify() to the platform interfaces. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add missing file common.js Created 7 years, 4 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
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 void process(const void* bytes, size_t); 79 void process(const void* bytes, size_t);
80 80
81 ScriptObject finish(); 81 ScriptObject finish();
82 ScriptObject abort(); 82 ScriptObject abort();
83 83
84 // WebCryptoOperationResultPrivate implementation. 84 // WebCryptoOperationResultPrivate implementation.
85 virtual void initializationFailed() OVERRIDE; 85 virtual void initializationFailed() OVERRIDE;
86 virtual void initializationSucceeded(WebKit::WebCryptoOperation*) OVERRIDE; 86 virtual void initializationSucceeded(WebKit::WebCryptoOperation*) OVERRIDE;
87 virtual void completeWithError() OVERRIDE; 87 virtual void completeWithError() OVERRIDE;
88 virtual void completeWithArrayBuffer(const WebKit::WebArrayBuffer&) OVERRIDE ; 88 virtual void completeWithArrayBuffer(const WebKit::WebArrayBuffer&) OVERRIDE ;
89 virtual void completeWithBoolean(bool) OVERRIDE;
89 virtual void ref() OVERRIDE; 90 virtual void ref() OVERRIDE;
90 virtual void deref() OVERRIDE; 91 virtual void deref() OVERRIDE;
91 92
92 private: 93 private:
93 enum State { 94 enum State {
94 // Constructing the WebCryptoOperationImpl. 95 // Constructing the WebCryptoOperationImpl.
95 Initializing, 96 Initializing,
96 97
97 // Accepting calls to process(). 98 // Accepting calls to process().
98 Processing, 99 Processing,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 WebKit::WebCryptoAlgorithm m_algorithm; 140 WebKit::WebCryptoAlgorithm m_algorithm;
140 RefPtr<Algorithm> m_algorithmNode; 141 RefPtr<Algorithm> m_algorithmNode;
141 142
142 RefPtr<CryptoOperationImpl> m_impl; 143 RefPtr<CryptoOperationImpl> m_impl;
143 }; 144 };
144 145
145 } // namespace WebCore 146 } // namespace WebCore
146 147
147 #endif 148 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/support/WebCrypto.cpp ('k') | Source/modules/crypto/CryptoOperation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698