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

Issue 2783543004: Move registration of LocalFrame mojo interfaces to ModulesInitializer. (Closed)

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

Description

Move registration of LocalFrame mojo interfaces to ModulesInitializer. To enable this, added a method to register initilization callbacks for LocalFrame initization. This method adds the callbacks to a static vector, and the callbacks are executed when a new LocalFrame is initizialized. This is part of the work to remove the dependency between WebLocalFrameImpl and modules/*. BUG=703405 Review-Url: https://codereview.chromium.org/2783543004 Cr-Commit-Position: refs/heads/master@{#460684} Committed: https://chromium.googlesource.com/chromium/src/+/94c0ec2f5e66cf6939523e14cf4db4d3267d1ef1

Patch Set 1 #

Patch Set 2 : Remove unused headers. #

Total comments: 14

Patch Set 3 : Address code review feedback. #

Total comments: 8

Patch Set 4 : Address codereview comments. #

Patch Set 5 : Move modules initialization to the first operation in LocalFrame::Init as the loader can actually d… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -16 lines) Patch
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 3 chunks +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/ModulesInitializer.cpp View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 3 chunks +0 lines, -12 lines 0 comments Download

Messages

Total messages: 24 (10 generated)
slangley
3 years, 8 months ago (2017-03-29 00:16:15 UTC) #2
sashab
https://codereview.chromium.org/2783543004/diff/20001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2783543004/diff/20001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode258 third_party/WebKit/Source/core/frame/LocalFrame.cpp:258: std::vector<LocalFrame::frame_init_callback>& getInitiailizationVector() { getInitiailizationVector -> getInitializationVector https://codereview.chromium.org/2783543004/diff/20001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode262 third_party/WebKit/Source/core/frame/LocalFrame.cpp:262: return ...
3 years, 8 months ago (2017-03-29 00:33:23 UTC) #3
slangley
ptal https://codereview.chromium.org/2783543004/diff/20001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2783543004/diff/20001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode258 third_party/WebKit/Source/core/frame/LocalFrame.cpp:258: std::vector<LocalFrame::frame_init_callback>& getInitiailizationVector() { On 2017/03/29 at 00:33:23, sashab ...
3 years, 8 months ago (2017-03-29 02:27:09 UTC) #5
sashab
LGTM
3 years, 8 months ago (2017-03-29 02:55:00 UTC) #6
sashab
LGTM if lambda methods are OK
3 years, 8 months ago (2017-03-29 02:55:13 UTC) #7
slangley
haraken@ - ptal. This replaces the previous unsubmitted work on AppBannerController.
3 years, 8 months ago (2017-03-29 03:40:11 UTC) #9
haraken
https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode260 third_party/WebKit/Source/core/frame/LocalFrame.cpp:260: std::vector<LocalFrame::FrameInitCallback>, initializationVector, Use WTF::Vector. Blink doesn't use std::vector. Also ...
3 years, 8 months ago (2017-03-29 08:10:24 UTC) #10
slangley
haraken@ - ptal. Note responses to your original comments. Thanks! https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp File third_party/WebKit/Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/core/frame/LocalFrame.cpp#newcode260 ...
3 years, 8 months ago (2017-03-29 23:09:38 UTC) #11
haraken
LGTM > https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/modules/ModulesInitializer.cpp > File third_party/WebKit/Source/modules/ModulesInitializer.cpp (right): > > https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/modules/ModulesInitializer.cpp#newcode93 > third_party/WebKit/Source/modules/ModulesInitializer.cpp:93: > &AppBannerController::bindMojoRequest, wrapWeakPersistent(frame))); ...
3 years, 8 months ago (2017-03-30 00:17:48 UTC) #12
slangley
On 2017/03/30 at 00:17:48, haraken wrote: > LGTM > > > https://codereview.chromium.org/2783543004/diff/40001/third_party/WebKit/Source/modules/ModulesInitializer.cpp > > File ...
3 years, 8 months ago (2017-03-30 00:46:20 UTC) #13
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/2783543004/60001
3 years, 8 months ago (2017-03-30 00:47:17 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/411367)
3 years, 8 months ago (2017-03-30 02:40:18 UTC) #18
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/2783543004/80001
3 years, 8 months ago (2017-03-30 05:38:16 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 07:04:02 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/94c0ec2f5e66cf6939523e14cf4d...

Powered by Google App Engine
This is Rietveld 408576698