| 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 "ppapi/proxy/resource_creation_proxy.h" | 5 #include "ppapi/proxy/resource_creation_proxy.h" |
| 6 | 6 |
| 7 #include "ppapi/c/pp_errors.h" | 7 #include "ppapi/c/pp_errors.h" |
| 8 #include "ppapi/c/pp_size.h" | 8 #include "ppapi/c/pp_size.h" |
| 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" | 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" |
| 10 #include "ppapi/proxy/audio_input_resource.h" | 10 #include "ppapi/proxy/audio_input_resource.h" |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 PP_Instance instance, | 148 PP_Instance instance, |
| 149 const PP_Resource elements[], | 149 const PP_Resource elements[], |
| 150 uint32_t size) { | 150 uint32_t size) { |
| 151 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( | 151 PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared( |
| 152 OBJECT_IS_PROXY, instance, elements, size); | 152 OBJECT_IS_PROXY, instance, elements, size); |
| 153 return object->GetReference(); | 153 return object->GetReference(); |
| 154 } | 154 } |
| 155 | 155 |
| 156 PP_Resource ResourceCreationProxy::CreateTrueTypeFont( | 156 PP_Resource ResourceCreationProxy::CreateTrueTypeFont( |
| 157 PP_Instance instance, | 157 PP_Instance instance, |
| 158 const PP_TrueTypeFontDesc_Dev& desc) { | 158 const PP_TrueTypeFontDesc_Dev* desc) { |
| 159 return (new TrueTypeFontResource(GetConnection(), | 159 return (new TrueTypeFontResource(GetConnection(), |
| 160 instance, desc))->GetReference(); | 160 instance, *desc))->GetReference(); |
| 161 | 161 |
| 162 } | 162 } |
| 163 | 163 |
| 164 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { | 164 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { |
| 165 return PPB_URLLoader_Proxy::CreateProxyResource(instance); | 165 return PPB_URLLoader_Proxy::CreateProxyResource(instance); |
| 166 } | 166 } |
| 167 | 167 |
| 168 PP_Resource ResourceCreationProxy::CreateURLRequestInfo( | 168 PP_Resource ResourceCreationProxy::CreateURLRequestInfo( |
| 169 PP_Instance instance) { | 169 PP_Instance instance) { |
| 170 return (new URLRequestInfoResource( | 170 return (new URLRequestInfoResource( |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { | 399 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { |
| 400 return false; | 400 return false; |
| 401 } | 401 } |
| 402 | 402 |
| 403 Connection ResourceCreationProxy::GetConnection() { | 403 Connection ResourceCreationProxy::GetConnection() { |
| 404 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); | 404 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); |
| 405 } | 405 } |
| 406 | 406 |
| 407 } // namespace proxy | 407 } // namespace proxy |
| 408 } // namespace ppapi | 408 } // namespace ppapi |
| OLD | NEW |