OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_delegate_impl.h" | 5 #include "content/renderer/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "content/renderer/gpu/command_buffer_proxy.h" | 33 #include "content/renderer/gpu/command_buffer_proxy.h" |
34 #include "content/renderer/gpu/gpu_channel_host.h" | 34 #include "content/renderer/gpu/gpu_channel_host.h" |
35 #include "content/renderer/gpu/renderer_gl_context.h" | 35 #include "content/renderer/gpu/renderer_gl_context.h" |
36 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" | 36 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
37 #include "content/renderer/media/audio_message_filter.h" | 37 #include "content/renderer/media/audio_message_filter.h" |
38 #include "content/renderer/media/video_capture_impl_manager.h" | 38 #include "content/renderer/media/video_capture_impl_manager.h" |
39 #include "content/renderer/p2p/p2p_transport_impl.h" | 39 #include "content/renderer/p2p/p2p_transport_impl.h" |
40 #include "content/renderer/pepper_platform_context_3d_impl.h" | 40 #include "content/renderer/pepper_platform_context_3d_impl.h" |
41 #include "content/renderer/pepper_platform_video_decoder_impl.h" | 41 #include "content/renderer/pepper_platform_video_decoder_impl.h" |
42 #include "content/renderer/render_thread_impl.h" | 42 #include "content/renderer/render_thread_impl.h" |
43 #include "content/renderer/render_view.h" | 43 #include "content/renderer/render_view_impl.h" |
44 #include "content/renderer/render_widget_fullscreen_pepper.h" | 44 #include "content/renderer/render_widget_fullscreen_pepper.h" |
45 #include "content/renderer/webplugin_delegate_proxy.h" | 45 #include "content/renderer/webplugin_delegate_proxy.h" |
46 #include "ipc/ipc_channel_handle.h" | 46 #include "ipc/ipc_channel_handle.h" |
47 #include "media/video/capture/video_capture_proxy.h" | 47 #include "media/video/capture/video_capture_proxy.h" |
48 #include "ppapi/c/dev/pp_video_dev.h" | 48 #include "ppapi/c/dev/pp_video_dev.h" |
49 #include "ppapi/c/pp_errors.h" | 49 #include "ppapi/c/pp_errors.h" |
50 #include "ppapi/c/private/ppb_flash.h" | 50 #include "ppapi/c/private/ppb_flash.h" |
51 #include "ppapi/c/private/ppb_flash_net_connector.h" | 51 #include "ppapi/c/private/ppb_flash_net_connector.h" |
52 #include "ppapi/proxy/host_dispatcher.h" | 52 #include "ppapi/proxy/host_dispatcher.h" |
53 #include "ppapi/proxy/ppapi_messages.h" | 53 #include "ppapi/proxy/ppapi_messages.h" |
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 } | 654 } |
655 | 655 |
656 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing | 656 // TOOD(ddorwin): Change the IPC to asynchronous: Queue an object containing |
657 // client and plugin_socket.release(), then return. | 657 // client and plugin_socket.release(), then return. |
658 // That message handler will then call client->BrokerConnected() with the | 658 // That message handler will then call client->BrokerConnected() with the |
659 // saved pipe handle. | 659 // saved pipe handle. |
660 // Temporarily, just call back. | 660 // Temporarily, just call back. |
661 client->BrokerConnected(PlatformFileToInt(plugin_handle), result); | 661 client->BrokerConnected(PlatformFileToInt(plugin_handle), result); |
662 } | 662 } |
663 | 663 |
664 PepperPluginDelegateImpl::PepperPluginDelegateImpl(RenderView* render_view) | 664 PepperPluginDelegateImpl::PepperPluginDelegateImpl(RenderViewImpl* render_view) |
665 : render_view_(render_view), | 665 : render_view_(render_view), |
666 has_saved_context_menu_action_(false), | 666 has_saved_context_menu_action_(false), |
667 saved_context_menu_action_(0), | 667 saved_context_menu_action_(0), |
668 is_pepper_plugin_focused_(false), | 668 is_pepper_plugin_focused_(false), |
669 mouse_lock_owner_(NULL), | 669 mouse_lock_owner_(NULL), |
670 mouse_locked_(false), | 670 mouse_locked_(false), |
671 pending_lock_request_(false), | 671 pending_lock_request_(false), |
672 pending_unlock_request_(false), | 672 pending_unlock_request_(false), |
673 last_mouse_event_target_(NULL) { | 673 last_mouse_event_target_(NULL) { |
674 } | 674 } |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1644 | 1644 |
1645 int PepperPluginDelegateImpl::GetRoutingId() const { | 1645 int PepperPluginDelegateImpl::GetRoutingId() const { |
1646 return render_view_->routing_id(); | 1646 return render_view_->routing_id(); |
1647 } | 1647 } |
1648 | 1648 |
1649 void PepperPluginDelegateImpl::PublishInitialPolicy( | 1649 void PepperPluginDelegateImpl::PublishInitialPolicy( |
1650 scoped_refptr<webkit::ppapi::PluginInstance> instance, | 1650 scoped_refptr<webkit::ppapi::PluginInstance> instance, |
1651 const std::string& policy) { | 1651 const std::string& policy) { |
1652 instance->HandlePolicyUpdate(policy); | 1652 instance->HandlePolicyUpdate(policy); |
1653 } | 1653 } |
OLD | NEW |