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

Side by Side Diff: webkit/plugins/ppapi/resource_creation_impl.cc

Issue 10913257: Convert url request info to new proxy API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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) 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 "webkit/plugins/ppapi/resource_creation_impl.h" 5 #include "webkit/plugins/ppapi/resource_creation_impl.h"
6 6
7 #include "ppapi/c/pp_size.h" 7 #include "ppapi/c/pp_size.h"
8 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 8 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 9 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
10 #include "ppapi/shared_impl/ppb_input_event_shared.h" 10 #include "ppapi/shared_impl/ppb_input_event_shared.h"
(...skipping 13 matching lines...) Expand all
24 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h" 24 #include "webkit/plugins/ppapi/ppb_graphics_2d_impl.h"
25 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h" 25 #include "webkit/plugins/ppapi/ppb_graphics_3d_impl.h"
26 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h" 26 #include "webkit/plugins/ppapi/ppb_host_resolver_private_impl.h"
27 #include "webkit/plugins/ppapi/ppb_image_data_impl.h" 27 #include "webkit/plugins/ppapi/ppb_image_data_impl.h"
28 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h" 28 #include "webkit/plugins/ppapi/ppb_network_monitor_private_impl.h"
29 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" 29 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h"
30 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h" 30 #include "webkit/plugins/ppapi/ppb_tcp_server_socket_private_impl.h"
31 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h" 31 #include "webkit/plugins/ppapi/ppb_tcp_socket_private_impl.h"
32 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h" 32 #include "webkit/plugins/ppapi/ppb_udp_socket_private_impl.h"
33 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h" 33 #include "webkit/plugins/ppapi/ppb_url_loader_impl.h"
34 #include "webkit/plugins/ppapi/ppb_url_request_info_impl.h"
35 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h" 34 #include "webkit/plugins/ppapi/ppb_video_capture_impl.h"
36 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 35 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
37 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h" 36 #include "webkit/plugins/ppapi/ppb_video_layer_impl.h"
38 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" 37 #include "webkit/plugins/ppapi/ppb_websocket_impl.h"
39 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h" 38 #include "webkit/plugins/ppapi/ppb_x509_certificate_private_impl.h"
40 #include "webkit/plugins/ppapi/resource_helper.h" 39 #include "webkit/plugins/ppapi/resource_helper.h"
41 40
42 using ppapi::InputEventData; 41 using ppapi::InputEventData;
43 using ppapi::PPB_InputEvent_Shared; 42 using ppapi::PPB_InputEvent_Shared;
44 using ppapi::PPB_ResourceArray_Shared; 43 using ppapi::PPB_ResourceArray_Shared;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 } 270 }
272 271
273 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) { 272 PP_Resource ResourceCreationImpl::CreateUDPSocketPrivate(PP_Instance instance) {
274 return PPB_UDPSocket_Private_Impl::CreateResource(instance); 273 return PPB_UDPSocket_Private_Impl::CreateResource(instance);
275 } 274 }
276 275
277 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) { 276 PP_Resource ResourceCreationImpl::CreateURLLoader(PP_Instance instance) {
278 return (new PPB_URLLoader_Impl(instance, false))->GetReference(); 277 return (new PPB_URLLoader_Impl(instance, false))->GetReference();
279 } 278 }
280 279
281 PP_Resource ResourceCreationImpl::CreateURLRequestInfo(
282 PP_Instance instance,
283 const ::ppapi::PPB_URLRequestInfo_Data& data) {
284 return (new PPB_URLRequestInfo_Impl(instance, data))->GetReference();
285 }
286
287 PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) { 280 PP_Resource ResourceCreationImpl::CreateVideoCapture(PP_Instance instance) {
288 scoped_refptr<PPB_VideoCapture_Impl> video_capture = 281 scoped_refptr<PPB_VideoCapture_Impl> video_capture =
289 new PPB_VideoCapture_Impl(instance); 282 new PPB_VideoCapture_Impl(instance);
290 if (!video_capture->Init()) 283 if (!video_capture->Init())
291 return 0; 284 return 0;
292 return video_capture->GetReference(); 285 return video_capture->GetReference();
293 } 286 }
294 287
295 PP_Resource ResourceCreationImpl::CreateVideoDecoder( 288 PP_Resource ResourceCreationImpl::CreateVideoDecoder(
296 PP_Instance instance, 289 PP_Instance instance,
(...skipping 23 matching lines...) Expand all
320 wheel_delta, wheel_ticks, scroll_by_page); 313 wheel_delta, wheel_ticks, scroll_by_page);
321 } 314 }
322 315
323 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 316 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
324 PP_Instance instance) { 317 PP_Instance instance) {
325 return PPB_X509Certificate_Private_Impl::CreateResource(instance); 318 return PPB_X509Certificate_Private_Impl::CreateResource(instance);
326 } 319 }
327 320
328 } // namespace ppapi 321 } // namespace ppapi
329 } // namespace webkit 322 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/resource_creation_impl.h ('k') | webkit/plugins/ppapi/url_request_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698