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/pepper_in_process_resource_creation.h" | 5 #include "content/renderer/pepper/pepper_in_process_resource_creation.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "content/renderer/pepper/pepper_in_process_router.h" | 11 #include "content/renderer/pepper/pepper_in_process_router.h" |
12 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" | 12 #include "content/renderer/pepper/renderer_ppapi_host_impl.h" |
13 #include "content/renderer/render_view_impl.h" | 13 #include "content/renderer/render_view_impl.h" |
14 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
15 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
16 #include "ppapi/host/ppapi_host.h" | 16 #include "ppapi/host/ppapi_host.h" |
17 #include "ppapi/proxy/browser_font_resource_trusted.h" | 17 #include "ppapi/proxy/browser_font_resource_trusted.h" |
18 #include "ppapi/proxy/ext_crx_file_system_private_resource.h" | 18 #include "ppapi/proxy/ext_crx_file_system_private_resource.h" |
19 #include "ppapi/proxy/file_chooser_resource.h" | 19 #include "ppapi/proxy/file_chooser_resource.h" |
20 #include "ppapi/proxy/file_io_resource.h" | 20 #include "ppapi/proxy/file_io_resource.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 } | 132 } |
133 | 133 |
134 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 134 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
135 PP_Instance instance) { | 135 PP_Instance instance) { |
136 return (new ppapi::proxy::WebSocketResource( | 136 return (new ppapi::proxy::WebSocketResource( |
137 host_impl_->in_process_router()->GetPluginConnection(), | 137 host_impl_->in_process_router()->GetPluginConnection(), |
138 instance))->GetReference(); | 138 instance))->GetReference(); |
139 } | 139 } |
140 | 140 |
141 } // namespace content | 141 } // namespace content |
OLD | NEW |