| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 101 |
| 102 PP_Resource PepperInProcessResourceCreation::CreatePrinting( | 102 PP_Resource PepperInProcessResourceCreation::CreatePrinting( |
| 103 PP_Instance instance) { | 103 PP_Instance instance) { |
| 104 return (new ppapi::proxy::PrintingResource( | 104 return (new ppapi::proxy::PrintingResource( |
| 105 host_impl_->in_process_router()->GetPluginConnection(), | 105 host_impl_->in_process_router()->GetPluginConnection(), |
| 106 instance))->GetReference(); | 106 instance))->GetReference(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 PP_Resource PepperInProcessResourceCreation::CreateTrueTypeFont( | 109 PP_Resource PepperInProcessResourceCreation::CreateTrueTypeFont( |
| 110 PP_Instance instance, | 110 PP_Instance instance, |
| 111 const PP_TrueTypeFontDesc_Dev& desc) { | 111 const PP_TrueTypeFontDesc_Dev* desc) { |
| 112 NOTIMPLEMENTED(); | 112 NOTIMPLEMENTED(); |
| 113 return 0; | 113 return 0; |
| 114 } | 114 } |
| 115 | 115 |
| 116 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( | 116 PP_Resource PepperInProcessResourceCreation::CreateURLRequestInfo( |
| 117 PP_Instance instance) { | 117 PP_Instance instance) { |
| 118 return (new ppapi::proxy::URLRequestInfoResource( | 118 return (new ppapi::proxy::URLRequestInfoResource( |
| 119 host_impl_->in_process_router()->GetPluginConnection(), | 119 host_impl_->in_process_router()->GetPluginConnection(), |
| 120 instance, ::ppapi::URLRequestInfoData()))->GetReference(); | 120 instance, ::ppapi::URLRequestInfoData()))->GetReference(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( | 123 PP_Resource PepperInProcessResourceCreation::CreateURLResponseInfo( |
| 124 PP_Instance instance, | 124 PP_Instance instance, |
| 125 const ::ppapi::URLResponseInfoData& data, | 125 const ::ppapi::URLResponseInfoData& data, |
| 126 PP_Resource file_ref_resource) { | 126 PP_Resource file_ref_resource) { |
| 127 return (new ppapi::proxy::URLResponseInfoResource( | 127 return (new ppapi::proxy::URLResponseInfoResource( |
| 128 host_impl_->in_process_router()->GetPluginConnection(), | 128 host_impl_->in_process_router()->GetPluginConnection(), |
| 129 instance, data, file_ref_resource))->GetReference(); | 129 instance, data, file_ref_resource))->GetReference(); |
| 130 } | 130 } |
| 131 | 131 |
| 132 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( | 132 PP_Resource PepperInProcessResourceCreation::CreateWebSocket( |
| 133 PP_Instance instance) { | 133 PP_Instance instance) { |
| 134 return (new ppapi::proxy::WebSocketResource( | 134 return (new ppapi::proxy::WebSocketResource( |
| 135 host_impl_->in_process_router()->GetPluginConnection(), | 135 host_impl_->in_process_router()->GetPluginConnection(), |
| 136 instance))->GetReference(); | 136 instance))->GetReference(); |
| 137 } | 137 } |
| 138 | 138 |
| 139 } // namespace content | 139 } // namespace content |
| OLD | NEW |