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

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

Issue 23453025: Refactor PPB_NetworkMonitor_Private interface to use CompletionCallback. (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/shared_impl/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/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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 *ipv6_addr))->GetReference(); 289 *ipv6_addr))->GetReference();
290 } 290 }
291 291
292 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate( 292 PP_Resource ResourceCreationProxy::CreateNetAddressFromNetAddressPrivate(
293 PP_Instance instance, 293 PP_Instance instance,
294 const PP_NetAddress_Private& private_addr) { 294 const PP_NetAddress_Private& private_addr) {
295 return (new NetAddressResource(GetConnection(), instance, 295 return (new NetAddressResource(GetConnection(), instance,
296 private_addr))->GetReference(); 296 private_addr))->GetReference();
297 } 297 }
298 298
299 PP_Resource ResourceCreationProxy::CreateNetworkMonitor( 299 PP_Resource ResourceCreationProxy::CreateNetworkMonitorPrivate(
300 PP_Instance instance, 300 PP_Instance instance) {
301 PPB_NetworkMonitor_Callback callback, 301 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(instance);
302 void* user_data) {
303 return PPB_NetworkMonitor_Private_Proxy::CreateProxyResource(
304 instance, callback, user_data);
305 } 302 }
306 303
307 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) { 304 PP_Resource ResourceCreationProxy::CreatePrinting(PP_Instance instance) {
308 return (new PrintingResource(GetConnection(), instance))->GetReference(); 305 return (new PrintingResource(GetConnection(), instance))->GetReference();
309 } 306 }
310 307
311 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate( 308 PP_Resource ResourceCreationProxy::CreateTCPServerSocketPrivate(
312 PP_Instance instance) { 309 PP_Instance instance) {
313 return (new TCPServerSocketPrivateResource(GetConnection(), instance))-> 310 return (new TCPServerSocketPrivateResource(GetConnection(), instance))->
314 GetReference(); 311 GetReference();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 439 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
443 return false; 440 return false;
444 } 441 }
445 442
446 Connection ResourceCreationProxy::GetConnection() { 443 Connection ResourceCreationProxy::GetConnection() {
447 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher()); 444 return Connection(PluginGlobals::Get()->GetBrowserSender(), dispatcher());
448 } 445 }
449 446
450 } // namespace proxy 447 } // namespace proxy
451 } // namespace ppapi 448 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/resource_creation_proxy.h ('k') | ppapi/shared_impl/resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698