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

Issue 2344023002: Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient (Closed)

Created:
4 years, 3 months ago by Nate Chapin
Modified:
4 years, 3 months ago
Reviewers:
tommycli
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete ReplayReceivedData, make WebViewPlugin not a WebFrameClient * WebViewPlugin only needs to be a WebFrameClient in order to create a WebFrame, and to listen to didClearWindowObject. Create a new private helper class to do this. * WebViewPlugin::didReceiveResponse() no longer overrides both WebFrameClient and WebPlugin, and will never receive WebPlugin calllbacks. Make WebPlugin's resource load callbacks NOTREACHED(). * ReplayReceivedData() only has one live clause, which is to transfer focus state from the placeholder plugin to the live plugin. RestoreTitleText() is similar. Expose accessors for focus and title state, and use them in LoadablePlaceholderPlugin, which is the only consumer of that state. BUG= Committed: https://crrev.com/8e1badd5fbc054cf4ffc9303e8cb0aa22ce55ca6 Cr-Commit-Position: refs/heads/master@{#419837}

Patch Set 1 #

Patch Set 2 : drop WebFrameClient subclassing #

Patch Set 3 : helper class WebFrameClient #

Patch Set 4 : move some logic to LoadablePluginPLaceholder #

Patch Set 5 : style #

Patch Set 6 : one more tweak #

Patch Set 7 : PluginWebFrameClient::plugin_ should be private #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -54 lines) Patch
M components/plugins/renderer/loadable_plugin_placeholder.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M components/plugins/renderer/webview_plugin.h View 1 2 3 4 5 6 5 chunks +15 lines, -19 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 4 5 7 chunks +14 lines, -33 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
Nate Chapin
Post crbug.com/641028 cleanup, PTAL :)
4 years, 3 months ago (2016-09-20 17:39:40 UTC) #23
tommycli
whoa cool. lgtm As I understand it, the didFinishLoading and didFailLoading(error) were dead code that ...
4 years, 3 months ago (2016-09-20 17:51:59 UTC) #24
Nate Chapin
On 2016/09/20 17:51:59, tommycli wrote: > whoa cool. lgtm > > As I understand it, ...
4 years, 3 months ago (2016-09-20 17:58:56 UTC) #25
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/2344023002/120001
4 years, 3 months ago (2016-09-20 17:59:25 UTC) #28
tommycli
On 2016/09/20 17:58:56, Nate Chapin wrote: > On 2016/09/20 17:51:59, tommycli wrote: > > whoa ...
4 years, 3 months ago (2016-09-20 18:34:04 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-20 19:16:46 UTC) #31
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 19:18:50 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/8e1badd5fbc054cf4ffc9303e8cb0aa22ce55ca6
Cr-Commit-Position: refs/heads/master@{#419837}

Powered by Google App Engine
This is Rietveld 408576698