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

Issue 10917225: Browser Plugin: Reload and Stop operations (Closed)

Created:
8 years, 3 months ago by Fady Samuel
Modified:
8 years, 3 months ago
Reviewers:
Charlie Reis, lazyboy
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Browser Plugin: Reload and Stop operations Fairly simple change. Just a whole lot of plumbing to call the following: void BrowserPluginGuest::Stop() { web_contents()->Stop(); } void BrowserPluginGuest::Reload() { web_contents()->GetController().Reload(false); } This includes the parsing the methods in browser_plugin_bindings.cc, the IPCs in browser_plugin.cc, the plumbing to the embedder and from the embedder to the appropriate guest. This also includes tests to verify that these two operations do indeed get plumbed correctly. BUG=148981 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157988

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 18

Patch Set 3 : Addressed comments + merged with ToT/latest patch #

Total comments: 4

Patch Set 4 : Added stop test #

Patch Set 5 : Fixed nits #

Total comments: 14

Patch Set 6 : Addressed Charlie's comments #

Total comments: 1

Patch Set 7 : Fixed nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -0 lines) Patch
M content/browser/browser_plugin/browser_plugin_embedder.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder_helper.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 1 chunk +82 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.h View 1 2 3 4 5 4 chunks +11 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.cc View 1 2 3 4 5 4 chunks +43 lines, -0 lines 0 comments Download
M content/common/browser_plugin_messages.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_bindings.cc View 1 2 3 4 5 6 3 chunks +26 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Fady Samuel
I plan to add another test, but I just implemented this so I thought I'd ...
8 years, 3 months ago (2012-09-12 21:38:07 UTC) #1
Fady Samuel
I can't think of a good way to test stop() on the browser process side.
8 years, 3 months ago (2012-09-13 17:52:21 UTC) #2
lazyboy
https://chromiumcodereview.appspot.com/10917225/diff/3001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://chromiumcodereview.appspot.com/10917225/diff/3001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode488 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:488: ASSERT_TRUE(test_guest->WaitForUpdateRectMsg()); Add a comment saying that a successful reload ...
8 years, 3 months ago (2012-09-13 19:14:15 UTC) #3
Fady Samuel
Hi Istiaque, Could you please take another look? I'm going to try to add a ...
8 years, 3 months ago (2012-09-19 14:38:09 UTC) #4
lazyboy
Looks good to me, ping me when you have the host_browsertest, I can take another ...
8 years, 3 months ago (2012-09-19 15:06:05 UTC) #5
Fady Samuel
https://codereview.chromium.org/10917225/diff/10001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/10917225/diff/10001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode233 content/browser/browser_plugin/browser_plugin_guest.cc:233: fprintf(stderr, ">>>%s\n", __PRETTY_FUNCTION__); On 2012/09/19 15:06:06, lazyboy wrote: > ...
8 years, 3 months ago (2012-09-19 15:50:56 UTC) #6
Fady Samuel
Hi Charlie, Could you please review this completed reload() + stop() method implementation? Thanks, Fady
8 years, 3 months ago (2012-09-19 15:51:25 UTC) #7
Charlie Reis
I'll get to the rest, but wanted to send this first. https://codereview.chromium.org/10917225/diff/23002/content/browser/browser_plugin/browser_plugin_embedder.h File content/browser/browser_plugin/browser_plugin_embedder.h (right): ...
8 years, 3 months ago (2012-09-19 21:53:50 UTC) #8
Charlie Reis
https://codereview.chromium.org/10917225/diff/23002/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/10917225/diff/23002/content/browser/browser_plugin/browser_plugin_guest.cc#newcode233 content/browser/browser_plugin/browser_plugin_guest.cc:233: web_contents()->GetController().Reload(false); The NavigationController documentation says most callers should pass ...
8 years, 3 months ago (2012-09-19 22:17:09 UTC) #9
Fady Samuel
https://codereview.chromium.org/10917225/diff/23002/content/browser/browser_plugin/browser_plugin_embedder.h File content/browser/browser_plugin/browser_plugin_embedder.h (right): https://codereview.chromium.org/10917225/diff/23002/content/browser/browser_plugin/browser_plugin_embedder.h#newcode125 content/browser/browser_plugin/browser_plugin_embedder.h:125: void Reload(int instance_id); On 2012/09/19 21:53:50, creis wrote: > ...
8 years, 3 months ago (2012-09-19 23:29:20 UTC) #10
Charlie Reis
LGTM with one missed nit from before. https://codereview.chromium.org/10917225/diff/25016/content/renderer/browser_plugin/browser_plugin_bindings.cc File content/renderer/browser_plugin/browser_plugin_bindings.cc (right): https://codereview.chromium.org/10917225/diff/25016/content/renderer/browser_plugin/browser_plugin_bindings.cc#newcode43 content/renderer/browser_plugin/browser_plugin_bindings.cc:43: const char ...
8 years, 3 months ago (2012-09-20 00:07:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/10917225/32001
8 years, 3 months ago (2012-09-20 17:31:48 UTC) #12
commit-bot: I haz the power
8 years, 3 months ago (2012-09-21 03:22:30 UTC) #13
Retried try job too often for step(s) browser_tests

Powered by Google App Engine
This is Rietveld 408576698