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

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

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address haraken's comments 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
Index: Source/modules/crypto/RsaHashedKeyAlgorithm.h
diff --git a/Source/modules/serviceworkers/InstallPhaseEvent.h b/Source/modules/crypto/RsaHashedKeyAlgorithm.h
similarity index 75%
copy from Source/modules/serviceworkers/InstallPhaseEvent.h
copy to Source/modules/crypto/RsaHashedKeyAlgorithm.h
index da6f057a2cb65ff028f4bfd4d5648350850834d9..53ad9767082d87f1b807caef5b27467e873dee93 100644
--- a/Source/modules/serviceworkers/InstallPhaseEvent.h
+++ b/Source/modules/crypto/RsaHashedKeyAlgorithm.h
@@ -28,31 +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();
+ static PassRefPtrWillBeRawPtr<RsaHashedKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
- virtual ~InstallPhaseEvent();
+ KeyAlgorithm* hash();
- void waitUntil(const ScriptValue&);
+ 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

Powered by Google App Engine
This is Rietveld 408576698