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/browser_plugin/old/guest_to_embedder_channel.h" | 5 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" |
6 | 6 |
7 #include "base/process_util.h" | 7 #include "base/process_util.h" |
8 #include "content/common/child_process.h" | 8 #include "content/common/child_process.h" |
9 #include "content/common/old_browser_plugin_messages.h" | 9 #include "content/common/old_browser_plugin_messages.h" |
10 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" | 10 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" |
11 #include "content/renderer/browser_plugin/old/browser_plugin_var_serialization_r
ules.h" | 11 #include "content/renderer/browser_plugin/old/browser_plugin_var_serialization_r
ules.h" |
12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
13 #include "content/renderer/render_view_impl.h" | 13 #include "content/renderer/render_view_impl.h" |
14 #include "ppapi/c/pp_bool.h" | 14 #include "ppapi/c/pp_bool.h" |
15 #include "ppapi/c/pp_graphics_3d.h" | 15 #include "ppapi/c/pp_graphics_3d.h" |
16 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" | 16 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" |
17 #include "ppapi/proxy/ppapi_messages.h" | 17 #include "ppapi/proxy/ppapi_messages.h" |
18 #include "ppapi/shared_impl/api_id.h" | 18 #include "ppapi/shared_impl/api_id.h" |
19 #include "ppapi/shared_impl/ppapi_globals.h" | 19 #include "ppapi/shared_impl/ppapi_globals.h" |
20 #include "ppapi/shared_impl/var.h" | 20 #include "ppapi/shared_impl/var.h" |
21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
23 #include "webkit/plugins/ppapi/event_conversion.h" | 23 #include "webkit/plugins/ppapi/event_conversion.h" |
24 | 24 |
25 namespace content { | 25 namespace content { |
| 26 namespace old { |
26 | 27 |
27 GuestToEmbedderChannel::GuestToEmbedderChannel( | 28 GuestToEmbedderChannel::GuestToEmbedderChannel( |
28 const std::string& embedder_channel_name, | 29 const std::string& embedder_channel_name, |
29 const IPC::ChannelHandle& embedder_channel_handle) | 30 const IPC::ChannelHandle& embedder_channel_handle) |
30 : Dispatcher(NULL), | 31 : Dispatcher(NULL), |
31 embedder_channel_name_(embedder_channel_name), | 32 embedder_channel_name_(embedder_channel_name), |
32 embedder_channel_handle_(embedder_channel_handle) { | 33 embedder_channel_handle_(embedder_channel_handle) { |
33 SetSerializationRules(new BrowserPluginVarSerializationRules()); | 34 SetSerializationRules(new BrowserPluginVarSerializationRules()); |
34 } | 35 } |
35 | 36 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // a WebView to drop its context. | 306 // a WebView to drop its context. |
306 render_view->GetWebView()->loseCompositorContext(1); | 307 render_view->GetWebView()->loseCompositorContext(1); |
307 } | 308 } |
308 | 309 |
309 void GuestToEmbedderChannel::OnGuestReady(PP_Instance instance, | 310 void GuestToEmbedderChannel::OnGuestReady(PP_Instance instance, |
310 int embedder_container_id) { | 311 int embedder_container_id) { |
311 RenderThreadImpl::current()->browser_plugin_channel_manager()-> | 312 RenderThreadImpl::current()->browser_plugin_channel_manager()-> |
312 GuestReady(instance, embedder_channel_name(), embedder_container_id); | 313 GuestReady(instance, embedder_channel_name(), embedder_container_id); |
313 } | 314 } |
314 | 315 |
| 316 } // namespace old |
315 } // namespace content | 317 } // namespace content |
OLD | NEW |