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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.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
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/proxy/url_request_info_resource.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 20 matching lines...) Expand all
31 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 31 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
32 #include "ppapi/proxy/ppb_talk_private_proxy.h" 32 #include "ppapi/proxy/ppb_talk_private_proxy.h"
33 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 33 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
34 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 34 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
35 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h" 35 #include "ppapi/proxy/ppb_udp_socket_private_proxy.h"
36 #include "ppapi/proxy/ppb_url_loader_proxy.h" 36 #include "ppapi/proxy/ppb_url_loader_proxy.h"
37 #include "ppapi/proxy/ppb_video_capture_proxy.h" 37 #include "ppapi/proxy/ppb_video_capture_proxy.h"
38 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 38 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
39 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 39 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
40 #include "ppapi/proxy/printing_resource.h" 40 #include "ppapi/proxy/printing_resource.h"
41 #include "ppapi/proxy/url_request_info_resource.h"
41 #include "ppapi/shared_impl/api_id.h" 42 #include "ppapi/shared_impl/api_id.h"
42 #include "ppapi/shared_impl/host_resource.h" 43 #include "ppapi/shared_impl/host_resource.h"
43 #include "ppapi/shared_impl/ppb_audio_config_shared.h" 44 #include "ppapi/shared_impl/ppb_audio_config_shared.h"
44 #include "ppapi/shared_impl/ppb_input_event_shared.h" 45 #include "ppapi/shared_impl/ppb_input_event_shared.h"
45 #include "ppapi/shared_impl/ppb_resource_array_shared.h" 46 #include "ppapi/shared_impl/ppb_resource_array_shared.h"
46 #include "ppapi/shared_impl/ppb_url_request_info_shared.h"
47 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h" 47 #include "ppapi/shared_impl/private/ppb_browser_font_trusted_shared.h"
48 #include "ppapi/shared_impl/var.h" 48 #include "ppapi/shared_impl/var.h"
49 #include "ppapi/thunk/enter.h" 49 #include "ppapi/thunk/enter.h"
50 #include "ppapi/thunk/ppb_image_data_api.h" 50 #include "ppapi/thunk/ppb_image_data_api.h"
51 51
52 using ppapi::thunk::ResourceCreationAPI; 52 using ppapi::thunk::ResourceCreationAPI;
53 53
54 namespace ppapi { 54 namespace ppapi {
55 namespace proxy { 55 namespace proxy {
56 56
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 OBJECT_IS_PROXY, instance, elements, size); 139 OBJECT_IS_PROXY, instance, elements, size);
140 return object->GetReference(); 140 return object->GetReference();
141 } 141 }
142 142
143 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) { 143 PP_Resource ResourceCreationProxy::CreateURLLoader(PP_Instance instance) {
144 return PPB_URLLoader_Proxy::CreateProxyResource(instance); 144 return PPB_URLLoader_Proxy::CreateProxyResource(instance);
145 } 145 }
146 146
147 PP_Resource ResourceCreationProxy::CreateURLRequestInfo( 147 PP_Resource ResourceCreationProxy::CreateURLRequestInfo(
148 PP_Instance instance, 148 PP_Instance instance,
149 const PPB_URLRequestInfo_Data& data) { 149 const URLRequestInfoData& data) {
150 return (new PPB_URLRequestInfo_Shared(OBJECT_IS_PROXY, 150 return (new URLRequestInfoResource(GetConnection(),
151 instance, data))->GetReference(); 151 instance, data))->GetReference();
152 } 152 }
153 153
154 PP_Resource ResourceCreationProxy::CreateWheelInputEvent( 154 PP_Resource ResourceCreationProxy::CreateWheelInputEvent(
155 PP_Instance instance, 155 PP_Instance instance,
156 PP_TimeTicks time_stamp, 156 PP_TimeTicks time_stamp,
157 uint32_t modifiers, 157 uint32_t modifiers,
158 const PP_FloatPoint* wheel_delta, 158 const PP_FloatPoint* wheel_delta,
159 const PP_FloatPoint* wheel_ticks, 159 const PP_FloatPoint* wheel_ticks,
160 PP_Bool scroll_by_page) { 160 PP_Bool scroll_by_page) {
161 return PPB_InputEvent_Shared::CreateWheelInputEvent( 161 return PPB_InputEvent_Shared::CreateWheelInputEvent(
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 } 374 }
375 375
376 Connection ResourceCreationProxy::GetConnection() { 376 Connection ResourceCreationProxy::GetConnection() {
377 return Connection( 377 return Connection(
378 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), 378 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(),
379 dispatcher()); 379 dispatcher());
380 } 380 }
381 381
382 } // namespace proxy 382 } // namespace proxy
383 } // namespace ppapi 383 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/proxy/url_request_info_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698