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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 10868012: Browser Plugin: New Implementation (Browser Side) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master-trial-obrowser
Patch Set: integrate windows fix by Fady (original cl #10910228) Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 7613dcfd42b69bf5517ba666fdf81a44d781f3c3..01c782b8f044c3aff38fcd0341c157cb103b7079 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -29,6 +29,7 @@
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/common/accessibility_messages.h"
+#include "content/common/browser_plugin_messages.h"
#include "content/common/content_constants_internal.h"
#include "content/common/desktop_notification_messages.h"
#include "content/common/drag_messages.h"
@@ -827,7 +828,10 @@ bool RenderViewHostImpl::SuddenTerminationAllowed() const {
// RenderViewHostImpl, IPC message handlers:
bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
- if (!BrowserMessageFilter::CheckCanDispatchOnUI(msg, this))
+ // Allow BrowserPluginHostMsg_* sync messages to run on the UI thread.
Charlie Reis 2012/09/13 00:51:44 This doesn't sound safe. Why is it ok to process
Fady Samuel 2012/09/13 14:17:18 I've copied-and-pasted BrowserMessageFilter::Check
Charlie Reis 2012/09/13 16:55:30 Ok. Let's put that justification in the comment a
lazyboy 2012/09/13 18:52:49 Done.
+ if (msg.type() != BrowserPluginHostMsg_HandleInputEvent::ID &&
+ msg.type() != BrowserPluginHostMsg_ResizeGuest::ID &&
+ !BrowserMessageFilter::CheckCanDispatchOnUI(msg, this))
return true;
// Filter out most IPC messages if this renderer is swapped out.

Powered by Google App Engine
This is Rietveld 408576698