| 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/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 9 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 10 #include "content/renderer/render_view_impl.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 "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 14 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 15 #include "ppapi/host/ppapi_host.h" | 16 #include "ppapi/host/ppapi_host.h" |
| 16 #include "ppapi/proxy/browser_font_resource_trusted.h" | 17 #include "ppapi/proxy/browser_font_resource_trusted.h" |
| 17 #include "ppapi/proxy/file_chooser_resource.h" | 18 #include "ppapi/proxy/file_chooser_resource.h" |
| 18 #include "ppapi/proxy/file_io_resource.h" | 19 #include "ppapi/proxy/file_io_resource.h" |
| 19 #include "ppapi/proxy/graphics_2d_resource.h" | 20 #include "ppapi/proxy/graphics_2d_resource.h" |
| 20 #include "ppapi/proxy/ppapi_messages.h" | 21 #include "ppapi/proxy/ppapi_messages.h" |
| 21 #include "ppapi/proxy/printing_resource.h" | 22 #include "ppapi/proxy/printing_resource.h" |
| 22 #include "ppapi/proxy/url_request_info_resource.h" | 23 #include "ppapi/proxy/url_request_info_resource.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 instance, size, is_always_opaque))->GetReference(); | 86 instance, size, is_always_opaque))->GetReference(); |
| 86 } | 87 } |
| 87 | 88 |
| 88 PP_Resource PepperInProcessResourceCreation::CreatePrinting( | 89 PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
| 89 PP_Instance instance) { | 90 PP_Instance instance) { |
| 90 return (new ppapi::proxy::PrintingResource( | 91 return (new ppapi::proxy::PrintingResource( |
| 91 host_impl_->in_process_router()->GetPluginConnection(), | 92 host_impl_->in_process_router()->GetPluginConnection(), |
| 92 instance))->GetReference(); | 93 instance))->GetReference(); |
| 93 } | 94 } |
| 94 | 95 |
| 96 PP_Resource PepperInProcessResourceCreation::CreateUDPSocketPrivate( |
| 97 PP_Instance instance) { |
| 98 NOTIMPLEMENTED(); |
| 99 return 0; |
| 100 } |
| 101 |
| 95 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( | 102 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( |
| 96 PP_Instance instance, | 103 PP_Instance instance, |
| 97 const ::ppapi::URLRequestInfoData& data) { | 104 const ::ppapi::URLRequestInfoData& data) { |
| 98 return (new ppapi::proxy::URLRequestInfoResource( | 105 return (new ppapi::proxy::URLRequestInfoResource( |
| 99 host_impl_->in_process_router()->GetPluginConnection(), | 106 host_impl_->in_process_router()->GetPluginConnection(), |
| 100 instance, data))->GetReference(); | 107 instance, data))->GetReference(); |
| 101 } | 108 } |
| 102 | 109 |
| 103 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( | 110 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( |
| 104 PP_Instance instance, | 111 PP_Instance instance, |
| 105 const ::ppapi::URLResponseInfoData& data, | 112 const ::ppapi::URLResponseInfoData& data, |
| 106 PP_Resource file_ref_resource) { | 113 PP_Resource file_ref_resource) { |
| 107 return (new ppapi::proxy::URLResponseInfoResource( | 114 return (new ppapi::proxy::URLResponseInfoResource( |
| 108 host_impl_->in_process_router()->GetPluginConnection(), | 115 host_impl_->in_process_router()->GetPluginConnection(), |
| 109 instance, data, file_ref_resource))->GetReference(); | 116 instance, data, file_ref_resource))->GetReference(); |
| 110 } | 117 } |
| 111 | 118 |
| 112 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 119 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
| 113 PP_Instance instance) { | 120 PP_Instance instance) { |
| 114 return (new ppapi::proxy::WebSocketResource( | 121 return (new ppapi::proxy::WebSocketResource( |
| 115 host_impl_->in_process_router()->GetPluginConnection(), | 122 host_impl_->in_process_router()->GetPluginConnection(), |
| 116 instance))->GetReference(); | 123 instance))->GetReference(); |
| 117 } | 124 } |
| 118 | 125 |
| 119 } // namespace content | 126 } // namespace content |
| OLD | NEW |