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

Issue 1404353004: Delay creation of BrowserPluginMsg_X messages until after attach. (Closed)

Created:
5 years, 2 months ago by wjmaclean
Modified:
5 years, 2 months ago
Reviewers:
Fady Samuel, lazyboy, lfg
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delay creation of BrowserPluginMsg_X messages until after attach. Currently, if BrowserPluginGuest receives messages for a BrowserPlugin prior to attachment, the message may be created with an invalid (0) value of |browser_plugin_instance_id|. After attachment, when queued messages are sent, these messages disappear into the ether. This cl delays the actual message creation until after the correct value for |browser_plugin_instance_id| is known through use of lambda functionals. This cl only implements this for BrowserPluginMsg_SetContentsOpaque, with the expectation that all other BrowserPluginMsg_X types will be converted to this methodology in a subsequent CL. BUG=534839

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -3 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.h View 4 chunks +6 lines, -0 lines 1 comment Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 4 chunks +30 lines, -3 lines 3 comments Download

Depends on Patchset:

Messages

Total messages: 13 (4 generated)
wjmaclean
Does this approach seem reasonable? I've noticed that <functional> is being used elsewhere in Chrome, ...
5 years, 2 months ago (2015-10-15 20:58:23 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404353004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404353004/1
5 years, 2 months ago (2015-10-15 20:58:55 UTC) #4
lfg
I believe std::function is still not available because Mac still doesn't have a C++11 library.
5 years, 2 months ago (2015-10-15 21:03:37 UTC) #5
wjmaclean
On 2015/10/15 20:58:23, wjmaclean wrote: > Does this approach seem reasonable? I've noticed that <functional> ...
5 years, 2 months ago (2015-10-15 21:03:48 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/110680)
5 years, 2 months ago (2015-10-15 21:19:33 UTC) #8
lazyboy
https://chromiumcodereview.appspot.com/1404353004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://chromiumcodereview.appspot.com/1404353004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#newcode527 content/browser/browser_plugin/browser_plugin_guest.cc:527: // During tests, attache() may be true when there ...
5 years, 2 months ago (2015-10-16 00:15:48 UTC) #9
Fady Samuel
https://codereview.chromium.org/1404353004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (left): https://codereview.chromium.org/1404353004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#oldcode572 content/browser/browser_plugin/browser_plugin_guest.cc:572: linked_ptr<IPC::Message> message_ptr = pending_messages_.front(); Perhaps you can grab the ...
5 years, 2 months ago (2015-10-16 02:48:43 UTC) #11
wjmaclean
On 2015/10/16 02:48:43, Fady Samuel wrote: > https://codereview.chromium.org/1404353004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc > File content/browser/browser_plugin/browser_plugin_guest.cc (left): > > https://codereview.chromium.org/1404353004/diff/1/content/browser/browser_plugin/browser_plugin_guest.cc#oldcode572 ...
5 years, 2 months ago (2015-10-16 13:05:32 UTC) #12
wjmaclean
5 years, 2 months ago (2015-10-16 15:54:54 UTC) #13
Closing this issue in favour of the approach at
https://codereview.chromium.org/1410753003.

Powered by Google App Engine
This is Rietveld 408576698