| Index: Source/modules/crypto/RsaHashedKeyAlgorithm.h
|
| diff --git a/Source/modules/serviceworkers/InstallPhaseEvent.h b/Source/modules/crypto/RsaHashedKeyAlgorithm.h
|
| similarity index 76%
|
| copy from Source/modules/serviceworkers/InstallPhaseEvent.h
|
| copy to Source/modules/crypto/RsaHashedKeyAlgorithm.h
|
| index 5b269ad082ee008dbba491121589076a799daa11..53ad9767082d87f1b807caef5b27467e873dee93 100644
|
| --- a/Source/modules/serviceworkers/InstallPhaseEvent.h
|
| +++ b/Source/modules/crypto/RsaHashedKeyAlgorithm.h
|
| @@ -28,33 +28,29 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef InstallPhaseEvent_h
|
| -#define InstallPhaseEvent_h
|
| +#ifndef RsaHashedKeyAlgorithm_h
|
| +#define RsaHashedKeyAlgorithm_h
|
|
|
| -#include "bindings/v8/ScriptValue.h"
|
| -#include "core/events/Event.h"
|
| +#include "modules/crypto/RsaKeyAlgorithm.h"
|
|
|
| namespace WebCore {
|
|
|
| -class WaitUntilObserver;
|
| -
|
| -class InstallPhaseEvent : public Event {
|
| +class RsaHashedKeyAlgorithm : public RsaKeyAlgorithm {
|
| public:
|
| - static PassRefPtr<InstallPhaseEvent> create();
|
| -
|
| - virtual ~InstallPhaseEvent();
|
| + static PassRefPtrWillBeRawPtr<RsaHashedKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
|
|
|
| - void waitUntil(const ScriptValue&);
|
| + KeyAlgorithm* hash();
|
|
|
| virtual void trace(Visitor*) OVERRIDE;
|
|
|
| -protected:
|
| - InstallPhaseEvent();
|
| - InstallPhaseEvent(const AtomicString& type, const EventInit&, PassRefPtr<WaitUntilObserver>);
|
| +private:
|
| + explicit RsaHashedKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
|
|
|
| - RefPtr<WaitUntilObserver> m_observer;
|
| + RefPtrWillBeMember<KeyAlgorithm> m_hash;
|
| };
|
|
|
| +DEFINE_KEY_ALGORITHM_TYPE_CASTS(RsaHashedKeyAlgorithm);
|
| +
|
| } // namespace WebCore
|
|
|
| -#endif // InstallPhaseEvent_h
|
| +#endif
|
|
|