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

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

Issue 11412184: Add more 'Dev' interfaces to the NaCl IPC proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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/thunk/interfaces_ppb_public_dev.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/audio_input_resource.h" 10 #include "ppapi/proxy/audio_input_resource.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 } 254 }
255 255
256 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 256 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
257 PP_Instance instance, 257 PP_Instance instance,
258 PPB_NetworkMonitor_Callback callback, 258 PPB_NetworkMonitor_Callback callback,
259 void* user_data) { 259 void* user_data) {
260 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource( 260 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
261 instance, callback, user_data); 261 instance, callback, user_data);
262 } 262 }
263 263
264 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
265 return (new PrintingResource(GetConnection(), instance))->GetReference();
266 }
267
264 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 268 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
265 PP_Instance instance) { 269 PP_Instance instance) {
266 return PPB_TCPServerSocket_Private_Proxy::CreateProxyResource(instance); 270 return PPB_TCPServerSocket_Private_Proxy::CreateProxyResource(instance);
267 } 271 }
268 272
269 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate( 273 PP_Resource ResourceCreationProxy::CreateTCPSocketPrivate(
270 PP_Instance instance) { 274 PP_Instance instance) {
271 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance); 275 return PPB_TCPSocket_Private_Proxy::CreateProxyResource(instance);
272 } 276 }
273 277
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 if (!flash_menu->Initialize(menu_data)) 340 if (!flash_menu->Initialize(menu_data))
337 return 0; 341 return 0;
338 return flash_menu->GetReference(); 342 return flash_menu->GetReference();
339 } 343 }
340 344
341 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop( 345 PP_Resource ResourceCreationProxy::CreateFlashMessageLoop(
342 PP_Instance instance) { 346 PP_Instance instance) {
343 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance); 347 return PPB_Flash_MessageLoop_Proxy::CreateProxyResource(instance);
344 } 348 }
345 349
346 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
347 return (new PrintingResource(GetConnection(), instance))->GetReference();
348 }
349
350 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance, 350 PP_Resource ResourceCreationProxy::CreateScrollbar(PP_Instance instance,
351 PP_Bool vertical) { 351 PP_Bool vertical) {
352 NOTIMPLEMENTED(); // Not proxied yet. 352 NOTIMPLEMENTED(); // Not proxied yet.
353 return 0; 353 return 0;
354 } 354 }
355 355
356 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) { 356 PP_Resource ResourceCreationProxy::CreateTalk(PP_Instance instance) {
357 return PPB_Talk_Private_Proxy::CreateProxyResource(instance); 357 return PPB_Talk_Private_Proxy::CreateProxyResource(instance);
358 } 358 }
359 359
(...skipping 24 matching lines...) Expand all
384 } 384 }
385 385
386 Connection ResourceCreationProxy::GetConnection() { 386 Connection ResourceCreationProxy::GetConnection() {
387 return Connection( 387 return Connection(
388 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(), 388 PluginGlobals::Get()->plugin_proxy_delegate()->GetBrowserSender(),
389 dispatcher()); 389 dispatcher());
390 } 390 }
391 391
392 } // namespace proxy 392 } // namespace proxy
393 } // namespace ppapi 393 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/thunk/interfaces_ppb_public_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698