|
Refactor WindowProxy into Local and Remote subclasses.
WindowProxy for remote frames will soon use remote contexts to avoid
the overhead of instantiating a full v8::Context. As preparation,
separate the logic for WindowProxy into LocalFrame and RemoteFrame
versions to make it obvious what's used in each path.
To avoid adding virtual calls to the fast path, common members such
as the lifecycle state and the global proxy have been moved to the
base class. When the WindowProxy is already initialized, this avoids
the cost of any virtual calls.
Future CLs will:
- Convert RemoteWindowProxy to use v8::Context::NewRemoteContext
- Merge LocalWindowProxyManager back into ScriptController
- Clean up the interface for transferring global objects
- Clean up the layering between WindowProxy and its subclasses
BUG= 527190
Review-Url: https://codereview.chromium.org/2620313002
Cr-Commit-Position: refs/heads/master@{#442948}
Committed: https://chromium.googlesource.com/chromium/src/+/690c3cf203b94623e5adbece7d6b4afc3501cd94
Total comments: 25
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+373 lines, -994 lines) |
Patch |
 |
M |
third_party/WebKit/Source/bindings/bindings.gni
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.h
|
View
|
1
2
3
4
|
3 chunks |
+20 lines, -59 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
View
|
1
2
3
4
|
16 chunks |
+71 lines, -297 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.h
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -79 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/bindings/core/v8/RemoteWindowProxy.cpp
|
View
|
1
2
3
4
|
2 chunks |
+94 lines, -82 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/ScriptController.h
|
View
|
|
3 chunks |
+4 lines, -7 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
|
View
|
1
2
3
4
|
2 chunks |
+28 lines, -45 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
View
|
1
2
3
4
|
4 chunks |
+14 lines, -364 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.h
|
View
|
1
2
3
4
5
|
1 chunk |
+69 lines, -20 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp
|
View
|
1
2
3
4
|
3 chunks |
+39 lines, -27 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/Frame.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/LocalFrame.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/RemoteFrame.h
|
View
|
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/RemoteFrame.cpp
|
View
|
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
Total messages: 31 (20 generated)
|