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

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

Issue 14371021: Implementation of URLLoader using PluginResource/ResourceHost. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase, track src/webkit gypi changes. Created 7 years, 7 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
« no previous file with comments | « ppapi/ppapi_proxy.gypi ('k') | ppapi/proxy/plugin_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/interface_list.h" 5 #include "ppapi/proxy/interface_list.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "ppapi/c/dev/ppb_audio_input_dev.h" 9 #include "ppapi/c/dev/ppb_audio_input_dev.h"
10 #include "ppapi/c/dev/ppb_buffer_dev.h" 10 #include "ppapi/c/dev/ppb_buffer_dev.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 #include "ppapi/proxy/ppb_file_ref_proxy.h" 97 #include "ppapi/proxy/ppb_file_ref_proxy.h"
98 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h" 98 #include "ppapi/proxy/ppb_flash_message_loop_proxy.h"
99 #include "ppapi/proxy/ppb_graphics_3d_proxy.h" 99 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
100 #include "ppapi/proxy/ppb_image_data_proxy.h" 100 #include "ppapi/proxy/ppb_image_data_proxy.h"
101 #include "ppapi/proxy/ppb_instance_proxy.h" 101 #include "ppapi/proxy/ppb_instance_proxy.h"
102 #include "ppapi/proxy/ppb_message_loop_proxy.h" 102 #include "ppapi/proxy/ppb_message_loop_proxy.h"
103 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h" 103 #include "ppapi/proxy/ppb_network_monitor_private_proxy.h"
104 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h" 104 #include "ppapi/proxy/ppb_tcp_server_socket_private_proxy.h"
105 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h" 105 #include "ppapi/proxy/ppb_tcp_socket_private_proxy.h"
106 #include "ppapi/proxy/ppb_testing_proxy.h" 106 #include "ppapi/proxy/ppb_testing_proxy.h"
107 #include "ppapi/proxy/ppb_url_loader_proxy.h"
108 #include "ppapi/proxy/ppb_var_deprecated_proxy.h" 107 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
109 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 108 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
110 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h" 109 #include "ppapi/proxy/ppb_x509_certificate_private_proxy.h"
111 #include "ppapi/proxy/ppp_class_proxy.h" 110 #include "ppapi/proxy/ppp_class_proxy.h"
112 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h" 111 #include "ppapi/proxy/ppp_content_decryptor_private_proxy.h"
113 #include "ppapi/proxy/ppp_graphics_3d_proxy.h" 112 #include "ppapi/proxy/ppp_graphics_3d_proxy.h"
114 #include "ppapi/proxy/ppp_input_event_proxy.h" 113 #include "ppapi/proxy/ppp_input_event_proxy.h"
115 #include "ppapi/proxy/ppp_instance_private_proxy.h" 114 #include "ppapi/proxy/ppp_instance_private_proxy.h"
116 #include "ppapi/proxy/ppp_instance_proxy.h" 115 #include "ppapi/proxy/ppp_instance_proxy.h"
117 #include "ppapi/proxy/ppp_messaging_proxy.h" 116 #include "ppapi/proxy/ppp_messaging_proxy.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE, 236 AddPPB(PPB_VAR_INTERFACE_1_1, API_ID_NONE,
238 PPB_Var_Shared::GetVarInterface1_1(), PERMISSION_NONE); 237 PPB_Var_Shared::GetVarInterface1_1(), PERMISSION_NONE);
239 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE, 238 AddPPB(PPB_VAR_INTERFACE_1_0, API_ID_NONE,
240 PPB_Var_Shared::GetVarInterface1_0(), PERMISSION_NONE); 239 PPB_Var_Shared::GetVarInterface1_0(), PERMISSION_NONE);
241 240
242 #if !defined(OS_NACL) 241 #if !defined(OS_NACL)
243 // PPB (browser) interfaces. 242 // PPB (browser) interfaces.
244 // Do not add more stuff here, they should be added to interface_list*.h 243 // Do not add more stuff here, they should be added to interface_list*.h
245 // TODO(brettw) remove these. 244 // TODO(brettw) remove these.
246 AddPPB(PPB_Instance_Proxy::GetInfoPrivate(), PERMISSION_PRIVATE); 245 AddPPB(PPB_Instance_Proxy::GetInfoPrivate(), PERMISSION_PRIVATE);
247 AddPPB(PPB_URLLoader_Proxy::GetTrustedInfo(), PERMISSION_PRIVATE);
248 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo(), PERMISSION_DEV); 246 AddPPB(PPB_Var_Deprecated_Proxy::GetInfo(), PERMISSION_DEV);
249 247
250 // TODO(tomfinegan): Figure out where to put these once we refactor things 248 // TODO(tomfinegan): Figure out where to put these once we refactor things
251 // to load the PPP interface struct from the PPB interface. 249 // to load the PPP interface struct from the PPB interface.
252 AddProxy(API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE, 250 AddProxy(API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE,
253 &ProxyFactory<PPP_ContentDecryptor_Private_Proxy>); 251 &ProxyFactory<PPP_ContentDecryptor_Private_Proxy>);
254 AddPPP(PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE, 252 AddPPP(PPP_CONTENTDECRYPTOR_PRIVATE_INTERFACE,
255 API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE, 253 API_ID_PPP_CONTENT_DECRYPTOR_PRIVATE,
256 PPP_ContentDecryptor_Private_Proxy::GetProxyInterface()); 254 PPP_ContentDecryptor_Private_Proxy::GetProxyInterface());
257 #endif 255 #endif
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 AddPPB(info->name, info->id, info->interface_ptr, perm); 376 AddPPB(info->name, info->id, info->interface_ptr, perm);
379 } 377 }
380 378
381 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) { 379 void InterfaceList::AddPPP(const InterfaceProxy::Info* info) {
382 AddProxy(info->id, info->create_proxy); 380 AddProxy(info->id, info->create_proxy);
383 AddPPP(info->name, info->id, info->interface_ptr); 381 AddPPP(info->name, info->id, info->interface_ptr);
384 } 382 }
385 383
386 } // namespace proxy 384 } // namespace proxy
387 } // namespace ppapi 385 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/ppapi_proxy.gypi ('k') | ppapi/proxy/plugin_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698