|
bindings: fixed incorrect dependency of SerializedScriptValue.
SerializedScriptValue in bindings/core depends on V8DOMFileSystem and V8CryptoKey in bindings/modules.
This is not allowed. So:
- Added factory class, SerializedScriptValueFactory class and SerializedScriptValueForModulesFactory, which inherits from SerializedScriptValueFactory.
- SerializedScriptValue is created by the factory classes. e.g. SerializedScriptValueFactory::factory().create().
- When initializing modules, make blink to use SerializedScriptValueForModulesFactory instead of SerializedScriptValueFactory.
- SerializedScriptValueFactory uses core part of SerializedScriptValue, i.e. Writer, Reader, Serializer and Deserializer. These are moved into ScriptValueSerializer.{h,cpp}.
- SerializedScriptValueForModulesFactory uses modules part of SerializedScriptValue, i.e. WriterForModules, ReaderForModules, SerializerForModules, and DeserializerForModules. These are moved into ScriptValueSerializerForModules.{h,cpp}.
- Each "for-modules" class inherits from its core part, e.g. WriterForModules inherits from Writer.
BUG= 358074
TEST=fast/js/structured-clone.html
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186086
Total comments: 27
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1357 lines, -930 lines) |
Patch |
 |
A |
LayoutTests/fast/js/structured-clone.html
|
View
|
1
2
3
4
5
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/DEPS
|
View
|
1
2
3
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/PostMessage.h
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/ScriptValueSerializer.h
|
View
|
1
2
3
4
5
|
24 chunks |
+57 lines, -79 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/ScriptValueSerializer.cpp
|
View
|
1
2
3
4
5
|
77 chunks |
+153 lines, -628 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/SerializationTag.h
|
View
|
1
2
|
2 chunks |
+0 lines, -59 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/SerializedScriptValue.h
|
View
|
1
2
3
4
5
|
4 chunks |
+13 lines, -20 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/SerializedScriptValue.cpp
|
View
|
1
2
3
4
5
|
5 chunks |
+10 lines, -113 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/core/v8/SerializedScriptValueFactory.h
|
View
|
1
2
3
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/core/v8/SerializedScriptValueFactory.cpp
|
View
|
1
2
3
|
1 chunk |
+152 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/SerializedScriptValueTest.cpp
|
View
|
1
2
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/custom/V8CustomEventCustom.cpp
|
View
|
1
2
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/custom/V8HistoryCustom.cpp
|
View
|
1
2
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/custom/V8MessageEventCustom.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/custom/V8PopStateEventCustom.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/core/v8/v8.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/modules/v8/IDBBindingUtilities.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/modules/v8/ModuleBindingsInitializer.cpp
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/modules/v8/ScriptValueSerializerForModules.h
|
View
|
1
2
3
4
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/modules/v8/ScriptValueSerializerForModules.cpp
|
View
|
1
2
3
4
|
1 chunk |
+596 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.h
|
View
|
1
2
3
|
1 chunk |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
Source/bindings/modules/v8/SerializedScriptValueForModulesFactory.cpp
|
View
|
1
2
3
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/modules/v8/v8.gni
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/modules/v8/v8.gypi
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_interface.py
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/scripts/v8_types.py
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/bindings/templates/interface.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestInterfaceEventConstructor.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/dom/MessagePort.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/page/EventSource.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/testing/Internals.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/indexeddb/IDBObjectStore.cpp
|
View
|
1
2
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/modules/serviceworkers/ServiceWorkerContainer.cpp
|
View
|
1
2
3
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WebSerializedScriptValue.cpp
|
View
|
1
2
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/web/tests/WebFrameTest.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
Total messages: 18 (3 generated)
|