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

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

Issue 23450012: Make NetworkList and NetworkMonitor APIs public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/serialized_structs.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/proxy/audio_input_resource.h" 9 #include "ppapi/proxy/audio_input_resource.h"
10 #include "ppapi/proxy/connection.h" 10 #include "ppapi/proxy/connection.h"
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 *ipv6_addr))->GetReference(); 305 *ipv6_addr))->GetReference();
306 } 306 }
307 307
308 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( 308 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate(
309 PP_Instance instance, 309 PP_Instance instance,
310 const PP_NetAddress_Private& private_addr) { 310 const PP_NetAddress_Private& private_addr) {
311 return (new NetAddressResource(GetConnection(), instance, 311 return (new NetAddressResource(GetConnection(), instance,
312 private_addr))->GetReference(); 312 private_addr))->GetReference();
313 } 313 }
314 314
315 PP_Resource ResourceCreationProxy::CreateNetworkMonitorPrivate( 315 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
316 PP_Instance instance) { 316 PP_Instance instance) {
317 return (new NetworkMonitorResource(GetConnection(), instance))-> 317 return (new NetworkMonitorResource(GetConnection(), instance))->
318 GetReference(); 318 GetReference();
319 } 319 }
320 320
321 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { 321 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
322 return (new PrintingResource(GetConnection(), instance))->GetReference(); 322 return (new PrintingResource(GetConnection(), instance))->GetReference();
323 } 323 }
324 324
325 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 325 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 462 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
463 return false; 463 return false;
464 } 464 }
465 465
466 Connection ResourceCreationProxy::GetConnection() { 466 Connection ResourceCreationProxy::GetConnection() {
467 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 467 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
468 } 468 }
469 469
470 } // namespace proxy 470 } // namespace proxy
471 } // namespace ppapi 471 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/proxy/serialized_structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698