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

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: 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/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/RsaHashedKeyAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | Source/modules/crypto/RsaHashedKeyAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698