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

Unified Diff: Source/modules/crypto/RsaKeyAlgorithm.h

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase yet again (another conflict) Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/crypto/RsaHashedKeyAlgorithm.idl ('k') | Source/modules/crypto/RsaKeyAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/RsaKeyAlgorithm.h
diff --git a/Source/modules/serviceworkers/InstallPhaseEvent.h b/Source/modules/crypto/RsaKeyAlgorithm.h
similarity index 76%
copy from Source/modules/serviceworkers/InstallPhaseEvent.h
copy to Source/modules/crypto/RsaKeyAlgorithm.h
index 5b269ad082ee008dbba491121589076a799daa11..1aef72007964827a83d8bdb91dad5760ebb6794a 100644
--- a/Source/modules/serviceworkers/InstallPhaseEvent.h
+++ b/Source/modules/crypto/RsaKeyAlgorithm.h
@@ -28,33 +28,33 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef InstallPhaseEvent_h
-#define InstallPhaseEvent_h
+#ifndef RsaKeyAlgorithm_h
+#define RsaKeyAlgorithm_h
-#include "bindings/v8/ScriptValue.h"
-#include "core/events/Event.h"
+#include "modules/crypto/KeyAlgorithm.h"
namespace WebCore {
-class WaitUntilObserver;
-
-class InstallPhaseEvent : public Event {
+class RsaKeyAlgorithm : public KeyAlgorithm {
public:
- static PassRefPtr<InstallPhaseEvent> create();
+ ~RsaKeyAlgorithm();
- virtual ~InstallPhaseEvent();
+ static PassRefPtrWillBeRawPtr<RsaKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
- void waitUntil(const ScriptValue&);
+ unsigned modulusLength();
+ Uint8Array* publicExponent();
virtual void trace(Visitor*) OVERRIDE;
protected:
- InstallPhaseEvent();
- InstallPhaseEvent(const AtomicString& type, const EventInit&, PassRefPtr<WaitUntilObserver>);
+ explicit RsaKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
- RefPtr<WaitUntilObserver> m_observer;
+private:
+ RefPtr<Uint8Array> m_publicExponent;
};
+DEFINE_KEY_ALGORITHM_TYPE_CASTS(RsaKeyAlgorithm);
+
} // namespace WebCore
-#endif // InstallPhaseEvent_h
+#endif
« no previous file with comments | « Source/modules/crypto/RsaHashedKeyAlgorithm.idl ('k') | Source/modules/crypto/RsaKeyAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698