Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 7706021: Convert FileRefImpl and URLRequestInfo to shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests fixed Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/proxy/interface_id.h" 9 #include "ppapi/proxy/interface_id.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
11 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 11 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
12 #include "ppapi/proxy/plugin_resource_tracker.h" 12 #include "ppapi/proxy/plugin_resource_tracker.h"
13 #include "ppapi/proxy/ppapi_messages.h" 13 #include "ppapi/proxy/ppapi_messages.h"
14 #include "ppapi/proxy/ppb_audio_proxy.h" 14 #include "ppapi/proxy/ppb_audio_proxy.h"
15 #include "ppapi/proxy/ppb_buffer_proxy.h" 15 #include "ppapi/proxy/ppb_buffer_proxy.h"
16 #include "ppapi/proxy/ppb_broker_proxy.h" 16 #include "ppapi/proxy/ppb_broker_proxy.h"
17 #include "ppapi/proxy/ppb_context_3d_proxy.h" 17 #include "ppapi/proxy/ppb_context_3d_proxy.h"
18 #include "ppapi/proxy/ppb_file_chooser_proxy.h" 18 #include "ppapi/proxy/ppb_file_chooser_proxy.h"
19 #include "ppapi/proxy/ppb_file_ref_proxy.h" 19 #include "ppapi/proxy/ppb_file_ref_proxy.h"
20 #include "ppapi/proxy/ppb_file_system_proxy.h" 20 #include "ppapi/proxy/ppb_file_system_proxy.h"
21 #include "ppapi/proxy/ppb_flash_menu_proxy.h" 21 #include "ppapi/proxy/ppb_flash_menu_proxy.h"
22 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h" 22 #include "ppapi/proxy/ppb_flash_net_connector_proxy.h"
23 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h" 23 #include "ppapi/proxy/ppb_flash_tcp_socket_proxy.h"
24 #include "ppapi/proxy/ppb_font_proxy.h" 24 #include "ppapi/proxy/ppb_font_proxy.h"
25 #include "ppapi/proxy/ppb_graphics_2d_proxy.h" 25 #include "ppapi/proxy/ppb_graphics_2d_proxy.h"
26 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 26 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
27 #include "ppapi/proxy/ppb_image_data_proxy.h" 27 #include "ppapi/proxy/ppb_image_data_proxy.h"
28 #include "ppapi/proxy/ppb_surface_3d_proxy.h" 28 #include "ppapi/proxy/ppb_surface_3d_proxy.h"
29 #include "ppapi/proxy/ppb_url_loader_proxy.h" 29 #include "ppapi/proxy/ppb_url_loader_proxy.h"
30 #include "ppapi/proxy/ppb_url_request_info_proxy.h"
31 #include "ppapi/proxy/ppb_video_capture_proxy.h" 30 #include "ppapi/proxy/ppb_video_capture_proxy.h"
32 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 31 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
33 #include "ppapi/shared_impl/audio_config_impl.h" 32 #include "ppapi/shared_impl/audio_config_impl.h"
34 #include "ppapi/shared_impl/font_impl.h" 33 #include "ppapi/shared_impl/font_impl.h"
35 #include "ppapi/shared_impl/function_group_base.h" 34 #include "ppapi/shared_impl/function_group_base.h"
36 #include "ppapi/shared_impl/host_resource.h" 35 #include "ppapi/shared_impl/host_resource.h"
37 #include "ppapi/shared_impl/input_event_impl.h" 36 #include "ppapi/shared_impl/input_event_impl.h"
37 #include "ppapi/shared_impl/url_request_info_impl.h"
38 #include "ppapi/shared_impl/var.h" 38 #include "ppapi/shared_impl/var.h"
39 #include "ppapi/thunk/enter.h" 39 #include "ppapi/thunk/enter.h"
40 #include "ppapi/thunk/ppb_image_data_api.h" 40 #include "ppapi/thunk/ppb_image_data_api.h"
41 41
42 using ppapi::thunk::ResourceCreationAPI; 42 using ppapi::thunk::ResourceCreationAPI;
43 43
44 namespace ppapi { 44 namespace ppapi {
45 namespace proxy { 45 namespace proxy {
46 46
47 ResourceCreationProxy::ResourceCreationProxy(Dispatcher* dispatcher) 47 ResourceCreationProxy::ResourceCreationProxy(Dispatcher* dispatcher)
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 const char* name, 282 const char* name,
283 const char* proto) { 283 const char* proto) {
284 NOTIMPLEMENTED(); // Not proxied yet. 284 NOTIMPLEMENTED(); // Not proxied yet.
285 return 0; 285 return 0;
286 } 286 }
287 287
288 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { 288 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) {
289 return PPB_URLLoader_Proxy::CreateProxyResource(instance); 289 return PPB_URLLoader_Proxy::CreateProxyResource(instance);
290 } 290 }
291 291
292 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(PP_Instance instance) { 292 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(
293 return PPB_URLRequestInfo_Proxy::CreateProxyResource(instance); 293 PP_Instance instance,
294 const PPB_URLRequestInfo_Data& data) {
295 return (new URLRequestInfoImpl(
296 HostResource::MakeInstanceOnly(instance), data))->GetReference();
294 } 297 }
295 298
296 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) { 299 PP_Resource ResourceCreationProxy::CreateVideoCapture(PP_Instance instance) {
297 return PPB_VideoCapture_Proxy::CreateProxyResource(instance); 300 return PPB_VideoCapture_Proxy::CreateProxyResource(instance);
298 } 301 }
299 302
300 PP_Resource ResourceCreationProxy::CreateVideoDecoder( 303 PP_Resource ResourceCreationProxy::CreateVideoDecoder(
301 PP_Instance instance, 304 PP_Instance instance,
302 PP_Resource context3d_id, 305 PP_Resource context3d_id,
303 const PP_VideoConfigElement* config) { 306 const PP_VideoConfigElement* config) {
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false); 403 *result_image_handle = dispatcher_->ShareHandleWithRemote(ih, false);
401 #else 404 #else
402 *result_image_handle = ImageData::HandleFromInt(handle); 405 *result_image_handle = ImageData::HandleFromInt(handle);
403 #endif 406 #endif
404 } 407 }
405 } 408 }
406 } 409 }
407 410
408 } // namespace proxy 411 } // namespace proxy
409 } // namespace ppapi 412 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698