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

Issue 1291903003: Oilpan: Move ChromeClient classes into Oilpan heap. (Closed)

Created:
5 years, 4 months ago by Yuta Kitamura
Modified:
5 years, 4 months ago
CC:
blink-reviews, krit, tyoshino+watch_chromium.org, pdr+renderingwatchlist_chromium.org, zoltan1, rwlbuis, szager+layoutwatch_chromium.org, eae+blinkwatch, leviw+renderwatch, kouhei+svg_chromium.org, fs, blink-reviews-rendering, f(malita), gavinp+loader_chromium.org, jchaffraix+rendering, gyuyoung2, kinuko+watch, Nate Chapin, Stephen Chennney, pdr+svgwatchlist_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Move ChromeClient classes into Oilpan heap. This touches a lot of classes including core ones, but each change should be mostly straightforward. As a side effect, Page::PageClients is marked as STACK_ALLOCATED(). A couple of use sites are changed so PageClients is allocated on stack. This mutation is safe because the members of PageClients are copied on the creation of a Page, thus a PageClients object doesn't have to outlive the corresponding Page object. This big fuss fixes just one raw reference instance in InspectorOverlayImpl. BUG=509911 R=haraken@chromium.org, keishi@chromium.org, oilpan-reviews@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200640

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Fix unit test crashes. #

Patch Set 4 : More DEFINE_STATIC_LOCAL()s in EmptyClients.cpp. #

Patch Set 5 : Make Page::PageClients STACK_ALLOCATED(). #

Total comments: 2

Patch Set 6 : Fix a raw reference in InspectorOverlayImpl.cpp. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -63 lines) Patch
M Source/core/frame/Frame.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/layout/LayoutTestHelper.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/layout/LayoutTestHelper.cpp View 1 2 3 4 2 chunks +7 lines, -4 lines 0 comments Download
M Source/core/loader/EmptyClients.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/loader/EmptyClients.cpp View 1 2 3 1 chunk +10 lines, -10 lines 0 comments Download
M Source/core/page/Page.h View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M Source/core/svg/graphics/SVGImage.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/graphics/SVGImage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/graphics/SVGImageChromeClient.h View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/svg/graphics/SVGImageChromeClient.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/testing/DummyPageHolder.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M Source/core/testing/DummyPageHolder.cpp View 1 2 3 4 1 chunk +10 lines, -9 lines 0 comments Download
M Source/platform/HostWindow.h View 2 chunks +5 lines, -2 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 2 chunks +3 lines, -1 line 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/InspectorOverlayImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/InspectorOverlayImpl.cpp View 1 2 3 4 5 3 chunks +26 lines, -13 lines 0 comments Download
M Source/web/WebPagePopupImpl.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebPagePopupImpl.cpp View 3 chunks +9 lines, -7 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (2 generated)
Yuta Kitamura
5 years, 4 months ago (2015-08-13 10:27:56 UTC) #1
haraken
Is there any reason we can't ship oilpan for ChromeClient by default? https://codereview.chromium.org/1291903003/diff/1/Source/core/loader/EmptyClients.cpp File Source/core/loader/EmptyClients.cpp ...
5 years, 4 months ago (2015-08-13 10:52:06 UTC) #2
Yuta Kitamura
On 2015/08/13 10:52:06, haraken wrote: > Is there any reason we can't ship oilpan for ...
5 years, 4 months ago (2015-08-14 04:40:21 UTC) #3
Yuta Kitamura
https://codereview.chromium.org/1291903003/diff/1/Source/core/loader/EmptyClients.cpp File Source/core/loader/EmptyClients.cpp (right): https://codereview.chromium.org/1291903003/diff/1/Source/core/loader/EmptyClients.cpp#newcode48 Source/core/loader/EmptyClients.cpp:48: static ChromeClient* dummyChromeClient = EmptyChromeClient::create().leakPtr(); On 2015/08/13 10:52:06, haraken ...
5 years, 4 months ago (2015-08-14 04:40:38 UTC) #4
haraken
On 2015/08/14 04:40:21, Yuta Kitamura wrote: > On 2015/08/13 10:52:06, haraken wrote: > > Is ...
5 years, 4 months ago (2015-08-14 04:41:07 UTC) #5
Yuta Kitamura
On 2015/08/14 04:41:07, haraken wrote: > On 2015/08/14 04:40:21, Yuta Kitamura wrote: > > On ...
5 years, 4 months ago (2015-08-14 12:16:39 UTC) #6
haraken
LGTM https://codereview.chromium.org/1291903003/diff/80001/Source/web/InspectorOverlayImpl.cpp File Source/web/InspectorOverlayImpl.cpp (right): https://codereview.chromium.org/1291903003/diff/80001/Source/web/InspectorOverlayImpl.cpp#newcode155 Source/web/InspectorOverlayImpl.cpp:155: ChromeClient& m_client; This needs to be a RawPtrWillBeMember. ...
5 years, 4 months ago (2015-08-14 14:38:41 UTC) #7
Yuta Kitamura
https://codereview.chromium.org/1291903003/diff/80001/Source/web/InspectorOverlayImpl.cpp File Source/web/InspectorOverlayImpl.cpp (right): https://codereview.chromium.org/1291903003/diff/80001/Source/web/InspectorOverlayImpl.cpp#newcode155 Source/web/InspectorOverlayImpl.cpp:155: ChromeClient& m_client; On 2015/08/14 14:38:41, haraken wrote: > > ...
5 years, 4 months ago (2015-08-17 08:03:22 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291903003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291903003/100001
5 years, 4 months ago (2015-08-17 09:43:15 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-17 10:51:18 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200640

Powered by Google App Engine
This is Rietveld 408576698