|
Add a layer of indirection between Frame and Page
This adds a new class FrameHost whose job it is to
hold state which is shared between multiple Frames
such as Settings or Clients.
Right now FrameHost just redirects all calls to Page --
just enough to get Frame.cpp building using FrameHost
instead of Page.
In a follow-up change I will actually move ownership
of Settings, (some of PageClients) and various
members which Page holds onto just to be a central
place for all Frames to access.
Page and friends should be about holding onto page-level
logic and members for coordinating interaction between
frames. FrameHost is about holding members and logic
which are simply shared between frames but do not
need to coordinate between those frames.
This provides the basic plumbing to allow me to remove
most of the remaining includes of page/ classes from
the rest of core. Anything left over after that will
be actual layering violations and not just bad plumbing.
R=abarth@chromium.org, abarth
BUG= 305811
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164117
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+149 lines, -100 lines) |
Patch |
 |
M |
Source/core/core.gypi
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/DOMWindow.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/frame/DOMWindow.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/frame/Frame.h
|
View
|
1
|
8 chunks |
+22 lines, -18 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/Frame.cpp
|
View
|
1
2
|
14 chunks |
+38 lines, -23 lines |
0 comments
|
Download
|
 |
M |
Source/core/frame/FrameDestructionObserver.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/frame/FrameDestructionObserver.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
Source/core/frame/FrameHost.h
|
View
|
1
2
|
1 chunk |
+30 lines, -30 lines |
0 comments
|
Download
|
 |
A + |
Source/core/frame/FrameHost.cpp
|
View
|
1
|
1 chunk |
+22 lines, -11 lines |
0 comments
|
Download
|
 |
M |
Source/core/inspector/InspectorOverlay.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/loader/FrameLoader.cpp
|
View
|
1
2
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/Page.h
|
View
|
1
2
|
4 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/core/page/Page.cpp
|
View
|
1
2
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/core/svg/graphics/SVGImage.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/core/testing/DummyPageHolder.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WebFrameImpl.h
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
Source/web/WebFrameImpl.cpp
|
View
|
1
2
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebPagePopupImpl.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|