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

Unified Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 268793002: Pepper: Move DoPostMessage out of trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix threading behavior Created 6 years, 7 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | ppapi/api/private/ppb_nacl_private.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_plugin_instance_impl.cc
diff --git a/content/renderer/pepper/pepper_plugin_instance_impl.cc b/content/renderer/pepper/pepper_plugin_instance_impl.cc
index 283db70dfdf12a4c504d6f0e14cc25e73f3ba1cc..7d4670fe3e9b35359e21d7bb2fdcbed727eb74c4 100644
--- a/content/renderer/pepper/pepper_plugin_instance_impl.cc
+++ b/content/renderer/pepper/pepper_plugin_instance_impl.cc
@@ -1258,6 +1258,10 @@ void PepperPluginInstanceImpl::SetTextInputType(ui::TextInputType type) {
render_frame_->PepperTextInputTypeChanged(this);
}
+void PepperPluginInstanceImpl::PostMessageToJavaScript(PP_Var message) {
+ message_channel_->PostMessageToJavaScript(message);
+}
+
base::string16 PepperPluginInstanceImpl::GetSelectedText(bool html) {
// Keep a reference on the stack. See NOTE above.
scoped_refptr<PepperPluginInstanceImpl> ref(this);
@@ -2518,7 +2522,7 @@ void PepperPluginInstanceImpl::ZoomLimitsChanged(PP_Instance instance,
void PepperPluginInstanceImpl::PostMessage(PP_Instance instance,
PP_Var message) {
- message_channel_->PostMessageToJavaScript(message);
+ PostMessageToJavaScript(message);
}
PP_Bool PepperPluginInstanceImpl::SetCursor(PP_Instance instance,
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.h ('k') | ppapi/api/private/ppb_nacl_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698