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

Side by Side Diff: webkit/plugins/ppapi/plugin_module.cc

Issue 11264049: PPAPI: Make Messaging not PostTask and copy when out-of-process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/plugins/ppapi/plugin_module.h" 5 #include "webkit/plugins/ppapi/plugin_module.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // module, and one or more instances are added later. In this case, the 517 // module, and one or more instances are added later. In this case, the
518 // PluginInstance was already created as in-process, so we missed the proxy 518 // PluginInstance was already created as in-process, so we missed the proxy
519 // AddInstance step and must do it now. 519 // AddInstance step and must do it now.
520 out_of_process_proxy_->AddInstance(plugin_instance->pp_instance()); 520 out_of_process_proxy_->AddInstance(plugin_instance->pp_instance());
521 // In NaCl, we need to tell the instance to reset itself as proxied. This will 521 // In NaCl, we need to tell the instance to reset itself as proxied. This will
522 // clear cached interface pointers and send DidCreate (etc) to the plugin 522 // clear cached interface pointers and send DidCreate (etc) to the plugin
523 // side of the proxy. 523 // side of the proxy.
524 plugin_instance->ResetAsProxied(this); 524 plugin_instance->ResetAsProxied(this);
525 } 525 }
526 526
527 bool PluginModule::IsProxied() const {
528 return !!out_of_process_proxy_;
529 }
530
527 // static 531 // static
528 const PPB_Core* PluginModule::GetCore() { 532 const PPB_Core* PluginModule::GetCore() {
529 return &core_interface; 533 return &core_interface;
530 } 534 }
531 535
532 // static 536 // static
533 PluginModule::GetInterfaceFunc PluginModule::GetLocalGetInterfaceFunc() { 537 PluginModule::GetInterfaceFunc PluginModule::GetLocalGetInterfaceFunc() {
534 return &GetInterface; 538 return &GetInterface;
535 } 539 }
536 540
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 int retval = entry_points.initialize_module(pp_module(), &GetInterface); 625 int retval = entry_points.initialize_module(pp_module(), &GetInterface);
622 if (retval != 0) { 626 if (retval != 0) {
623 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval; 627 LOG(WARNING) << "PPP_InitializeModule returned failure " << retval;
624 return false; 628 return false;
625 } 629 }
626 return true; 630 return true;
627 } 631 }
628 632
629 } // namespace ppapi 633 } // namespace ppapi
630 } // namespace webkit 634 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_module.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698