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

Issue 2863853002: Introduce the class webLocalFrameBase anf make WebLocalFrameImpl derived it. (Closed)

Created:
3 years, 7 months ago by slangley
Modified:
3 years, 7 months ago
Reviewers:
haraken, sashab, dcheng
CC:
blink-reviews, blink-reviews-frames_chromium.org, chromium-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce the class webLocalFrameBase anf make WebLocalFrameImpl derived it. There are many cyclic dependencies in web/ between WebLocalFrameImpl and other classes. This makes it hard to move WebLocalFrameImpl from web/ into core/ in small, logical steps. To remove these cycles we introduce WebLocalFrameBase. Classes that depend on methods defined in WebLocalFrameImpl will be changed to depend on WebLocalFrameBase instead, by declaring these dependent methods pure virtual in WebLocalFrameBase. We can then sever the links to WebLocalFrameImpl and move classes out of Web. This CL establises the inheritence of WebLocalFrameImpl on WebLocalFrameBase, subsequent CL's will start to delcare methods in WebLocalFrameBase. BUG=708879 Review-Url: https://codereview.chromium.org/2863853002 Cr-Commit-Position: refs/heads/master@{#469586} Committed: https://chromium.googlesource.com/chromium/src/+/7ba3433c3a317a45c461fb499d65c7f67eecf3e7

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix code review comments. #

Patch Set 3 : Add WebLocalViewBase.h to the BUILD file. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -2 lines) Patch
M third_party/WebKit/Source/core/frame/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/frame/WebLocalFrameBase.h View 1 1 chunk +26 lines, -0 lines 3 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (7 generated)
slangley
3 years, 7 months ago (2017-05-05 01:08:45 UTC) #2
sashab
lgtm https://codereview.chromium.org/2863853002/diff/1/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h File third_party/WebKit/Source/core/frame/WebLocalFrameBase.h (right): https://codereview.chromium.org/2863853002/diff/1/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h#newcode19 third_party/WebKit/Source/core/frame/WebLocalFrameBase.h:19: // TODO(slangley): Remove this class once WebLocalFrameImpl is ...
3 years, 7 months ago (2017-05-05 01:10:14 UTC) #3
slangley
haraken@ - ptal https://codereview.chromium.org/2863853002/diff/1/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h File third_party/WebKit/Source/core/frame/WebLocalFrameBase.h (right): https://codereview.chromium.org/2863853002/diff/1/third_party/WebKit/Source/core/frame/WebLocalFrameBase.h#newcode19 third_party/WebKit/Source/core/frame/WebLocalFrameBase.h:19: // TODO(slangley): Remove this class once ...
3 years, 7 months ago (2017-05-05 01:18:49 UTC) #5
haraken
LGTM dcheng@: Are we planning to keep WebLocalFrameImpl even after we move it into core/, ...
3 years, 7 months ago (2017-05-05 01:20:16 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2863853002/40001
3 years, 7 months ago (2017-05-05 01:40:48 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/7ba3433c3a317a45c461fb499d65c7f67eecf3e7
3 years, 7 months ago (2017-05-05 03:37:01 UTC) #13
dcheng
On 2017/05/05 01:20:16, haraken wrote: > LGTM > > dcheng@: Are we planning to keep ...
3 years, 7 months ago (2017-05-05 04:47:13 UTC) #14
slangley
3 years, 7 months ago (2017-05-05 04:50:53 UTC) #15
Message was sent while issue was closed.
On 2017/05/05 at 04:47:13, dcheng wrote:
> On 2017/05/05 01:20:16, haraken wrote:
> > LGTM
> > 
> > dcheng@: Are we planning to keep WebLocalFrameImpl even after we move it
into
> > core/, right? If we plan to merge WebLocalFrameImpl into LocalFrame, it
would
> > make more sense to add the virtual methods on LocalFrame instead of
introducing
> > WebLocalFrameBase.
> 
> For now, I think we want to keep two separate classes. I see an argument for
merging them in the future, but if we did so, we want to merge many other
classes as well, to avoid exposing a Web* version and a non-Web* version. I
think this would be a pretty big (separate) project.
> 
>
https://codereview.chromium.org/2863853002/diff/40001/third_party/WebKit/Sour...
> File third_party/WebKit/Source/core/frame/WebLocalFrameBase.h (right):
> 
>
https://codereview.chromium.org/2863853002/diff/40001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/frame/WebLocalFrameBase.h:3: // found in the
LICENSE file.#ifndef WebViewBase_h
> Nit: Delete #ifndef...
> 
>
https://codereview.chromium.org/2863853002/diff/40001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/frame/WebLocalFrameBase.h:23: };
> Nit: newline after for consistency
> 
>
https://codereview.chromium.org/2863853002/diff/40001/third_party/WebKit/Sour...
> third_party/WebKit/Source/core/frame/WebLocalFrameBase.h:24: }
> Nit:  // namespace blink

Thanks Daniel,

Fixes for nits are in cr/2863913002

Powered by Google App Engine
This is Rietveld 408576698