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

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
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 *ipv6_addr))->GetReference(); 304 *ipv6_addr))->GetReference();
305 } 305 }
306 306
307 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( 307 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate(
308 PP_Instance instance, 308 PP_Instance instance,
309 const PP_NetAddress_Private& private_addr) { 309 const PP_NetAddress_Private& private_addr) {
310 return (new NetAddressResource(GetConnection(), instance, 310 return (new NetAddressResource(GetConnection(), instance,
311 private_addr))->GetReference(); 311 private_addr))->GetReference();
312 } 312 }
313 313
314 PP_Resource ResourceCreationProxy::CreateNetworkMonitorPrivate( 314 PP_Resource ResourceCreationProxy::CreateNetworkMonitor(
315 PP_Instance instance) { 315 PP_Instance instance) {
316 return (new NetworkMonitorResource(GetConnection(), instance))-> 316 return (new NetworkMonitorResource(GetConnection(), instance))->
317 GetReference(); 317 GetReference();
318 } 318 }
319 319
320 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { 320 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
321 return (new PrintingResource(GetConnection(), instance))->GetReference(); 321 return (new PrintingResource(GetConnection(), instance))->GetReference();
322 } 322 }
323 323
324 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 324 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 455 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
456 return false; 456 return false;
457 } 457 }
458 458
459 Connection ResourceCreationProxy::GetConnection() { 459 Connection ResourceCreationProxy::GetConnection() {
460 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 460 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
461 } 461 }
462 462
463 } // namespace proxy 463 } // namespace proxy
464 } // namespace ppapi 464 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698