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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 564573002: PPAPI: Make PPP_MessageHandler work in PNaCl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 } 1379 }
1380 1380
1381 void PepperPluginInstanceImpl::PostMessageToJavaScript(PP_Var message) { 1381 void PepperPluginInstanceImpl::PostMessageToJavaScript(PP_Var message) {
1382 if (message_channel_) 1382 if (message_channel_)
1383 message_channel_->PostMessageToJavaScript(message); 1383 message_channel_->PostMessageToJavaScript(message);
1384 } 1384 }
1385 1385
1386 int32_t PepperPluginInstanceImpl::RegisterMessageHandler( 1386 int32_t PepperPluginInstanceImpl::RegisterMessageHandler(
1387 PP_Instance instance, 1387 PP_Instance instance,
1388 void* user_data, 1388 void* user_data,
1389 const PPP_MessageHandler_0_1* handler, 1389 const PPP_MessageHandler_0_2* handler,
1390 PP_Resource message_loop) { 1390 PP_Resource message_loop) {
1391 // Not supported in-process. 1391 // Not supported in-process.
1392 NOTIMPLEMENTED(); 1392 NOTIMPLEMENTED();
1393 return PP_ERROR_FAILED; 1393 return PP_ERROR_FAILED;
1394 } 1394 }
1395 1395
1396 void PepperPluginInstanceImpl::UnregisterMessageHandler(PP_Instance instance) { 1396 void PepperPluginInstanceImpl::UnregisterMessageHandler(PP_Instance instance) {
1397 // Not supported in-process. 1397 // Not supported in-process.
1398 NOTIMPLEMENTED(); 1398 NOTIMPLEMENTED();
1399 } 1399 }
(...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after
3367 // Running out-of-process. Initiate an IPC call to notify the plugin 3367 // Running out-of-process. Initiate an IPC call to notify the plugin
3368 // process. 3368 // process.
3369 ppapi::proxy::HostDispatcher* dispatcher = 3369 ppapi::proxy::HostDispatcher* dispatcher =
3370 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3370 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3371 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3371 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3372 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3372 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3373 } 3373 }
3374 } 3374 }
3375 3375
3376 } // namespace content 3376 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698