OLD | NEW |
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/plugin_module.h" | 5 #include "content/renderer/pepper/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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 return &core_interface; | 546 return &core_interface; |
547 } | 547 } |
548 | 548 |
549 // static | 549 // static |
550 bool PluginModule::SupportsInterface(const char* name) { | 550 bool PluginModule::SupportsInterface(const char* name) { |
551 return !!InternalGetInterface(name); | 551 return !!InternalGetInterface(name); |
552 } | 552 } |
553 | 553 |
554 PepperPluginInstanceImpl* PluginModule::CreateInstance( | 554 PepperPluginInstanceImpl* PluginModule::CreateInstance( |
555 RenderViewImpl* render_view, | 555 RenderViewImpl* render_view, |
556 WebKit::WebPluginContainer* container, | 556 blink::WebPluginContainer* container, |
557 const GURL& plugin_url) { | 557 const GURL& plugin_url) { |
558 PepperPluginInstanceImpl* instance = PepperPluginInstanceImpl::Create( | 558 PepperPluginInstanceImpl* instance = PepperPluginInstanceImpl::Create( |
559 render_view, this, container, plugin_url); | 559 render_view, this, container, plugin_url); |
560 if (!instance) { | 560 if (!instance) { |
561 LOG(WARNING) << "Plugin doesn't support instance interface, failing."; | 561 LOG(WARNING) << "Plugin doesn't support instance interface, failing."; |
562 return NULL; | 562 return NULL; |
563 } | 563 } |
564 if (host_dispatcher_wrapper_) | 564 if (host_dispatcher_wrapper_) |
565 host_dispatcher_wrapper_->AddInstance(instance->pp_instance()); | 565 host_dispatcher_wrapper_->AddInstance(instance->pp_instance()); |
566 return instance; | 566 return instance; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 channel_handle, | 738 channel_handle, |
739 peer_pid, | 739 peer_pid, |
740 plugin_child_id, | 740 plugin_child_id, |
741 false)) // is_external = false | 741 false)) // is_external = false |
742 return scoped_refptr<PluginModule>(); | 742 return scoped_refptr<PluginModule>(); |
743 | 743 |
744 return module; | 744 return module; |
745 } | 745 } |
746 | 746 |
747 } // namespace content | 747 } // namespace content |
OLD | NEW |