| 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.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 instance, size, is_always_opaque))->GetReference(); | 86 instance, size, is_always_opaque))->GetReference(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 PP_Resource PepperInProcessResourceCreation::CreatePrinting( | 89 PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
| 90 PP_Instance instance) { | 90 PP_Instance instance) { |
| 91 return (new ppapi::proxy::PrintingResource( | 91 return (new ppapi::proxy::PrintingResource( |
| 92 host_impl_->in_process_router()->GetPluginConnection(), | 92 host_impl_->in_process_router()->GetPluginConnection(), |
| 93 instance))->GetReference(); | 93 instance))->GetReference(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 PP_Resource PepperInProcessResourceCreation::CreateUDPSocketPrivate( | |
| 97 PP_Instance instance) { | |
| 98 NOTIMPLEMENTED(); | |
| 99 return 0; | |
| 100 } | |
| 101 | |
| 102 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( | 96 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( |
| 103 PP_Instance instance, | 97 PP_Instance instance, |
| 104 const ::ppapi::URLRequestInfoData& data) { | 98 const ::ppapi::URLRequestInfoData& data) { |
| 105 return (new ppapi::proxy::URLRequestInfoResource( | 99 return (new ppapi::proxy::URLRequestInfoResource( |
| 106 host_impl_->in_process_router()->GetPluginConnection(), | 100 host_impl_->in_process_router()->GetPluginConnection(), |
| 107 instance, data))->GetReference(); | 101 instance, data))->GetReference(); |
| 108 } | 102 } |
| 109 | 103 |
| 110 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( | 104 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( |
| 111 PP_Instance instance, | 105 PP_Instance instance, |
| 112 const ::ppapi::URLResponseInfoData& data, | 106 const ::ppapi::URLResponseInfoData& data, |
| 113 PP_Resource file_ref_resource) { | 107 PP_Resource file_ref_resource) { |
| 114 return (new ppapi::proxy::URLResponseInfoResource( | 108 return (new ppapi::proxy::URLResponseInfoResource( |
| 115 host_impl_->in_process_router()->GetPluginConnection(), | 109 host_impl_->in_process_router()->GetPluginConnection(), |
| 116 instance, data, file_ref_resource))->GetReference(); | 110 instance, data, file_ref_resource))->GetReference(); |
| 117 } | 111 } |
| 118 | 112 |
| 119 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 113 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
| 120 PP_Instance instance) { | 114 PP_Instance instance) { |
| 121 return (new ppapi::proxy::WebSocketResource( | 115 return (new ppapi::proxy::WebSocketResource( |
| 122 host_impl_->in_process_router()->GetPluginConnection(), | 116 host_impl_->in_process_router()->GetPluginConnection(), |
| 123 instance))->GetReference(); | 117 instance))->GetReference(); |
| 124 } | 118 } |
| 125 | 119 |
| 126 } // namespace content | 120 } // namespace content |
| OLD | NEW |