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 |