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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h

Issue 1909923002: Making RTCCertificate cloneable (WIP). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Derp! Created 4 years, 7 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: third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h
diff --git a/third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h b/third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h
index 4d929db5688ded0556dfdebc382dae9935d616f5..60f95253740bee0487af11e6803e82d0e1ff00b9 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h
+++ b/third_party/WebKit/Source/bindings/modules/v8/ScriptValueSerializerForModules.h
@@ -6,6 +6,7 @@
#define ScriptValueSerializerForModules_h
#include "bindings/core/v8/ScriptValueSerializer.h"
+#include "modules/mediastream/RTCCertificate.h"
#include "public/platform/WebCrypto.h"
#include "public/platform/WebCryptoKey.h"
#include "public/platform/WebCryptoKeyAlgorithm.h"
@@ -24,6 +25,7 @@ public:
void writeDOMFileSystem(int type, const String& name, const String& url);
bool writeCryptoKey(const WebCryptoKey&);
+ void writeRTCCertificate(const RTCCertificate&);
private:
void doWriteHmacKey(const WebCryptoKey&);
@@ -53,6 +55,7 @@ public:
private:
bool readDOMFileSystem(v8::Local<v8::Value>*);
bool readCryptoKey(v8::Local<v8::Value>*);
+ bool readRTCCertificate(v8::Local<v8::Value>*);
bool doReadHmacKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&);
bool doReadAesKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&);
bool doReadRsaHashedKey(WebCryptoKeyAlgorithm&, WebCryptoKeyType&);
@@ -77,6 +80,7 @@ private:
ScriptValueSerializer::StateBase* writeDOMFileSystem(v8::Local<v8::Value>, ScriptValueSerializer::StateBase* next);
bool writeCryptoKey(v8::Local<v8::Value>);
+ ScriptValueSerializer::StateBase* writeRTCCertificate(v8::Local<v8::Value>, ScriptValueSerializer::StateBase* next);
};
class ScriptValueDeserializerForModules final : public ScriptValueDeserializer {

Powered by Google App Engine
This is Rietveld 408576698