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

Unified Diff: webkit/plugins/ppapi/ppb_transport_impl.h

Issue 10081020: PPAPI: Make blocking completion callbacks work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again Created 8 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 side-by-side diff with in-line comments
Download patch
Index: webkit/plugins/ppapi/ppb_transport_impl.h
diff --git a/webkit/plugins/ppapi/ppb_transport_impl.h b/webkit/plugins/ppapi/ppb_transport_impl.h
index 34393e4297976964b6c2bd743f7381325a2167c8..0af5c5dbc945d6a2745373a1350aea72cf6185e1 100644
--- a/webkit/plugins/ppapi/ppb_transport_impl.h
+++ b/webkit/plugins/ppapi/ppb_transport_impl.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -36,14 +36,19 @@ class PPB_Transport_Impl : public ::ppapi::Resource,
virtual PP_Bool IsWritable() OVERRIDE;
virtual int32_t SetProperty(PP_TransportProperty property,
PP_Var value) OVERRIDE;
- virtual int32_t Connect(PP_CompletionCallback callback) OVERRIDE;
- virtual int32_t GetNextAddress(PP_Var* address,
- PP_CompletionCallback callback) OVERRIDE;
+ virtual int32_t Connect(
+ scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
+ virtual int32_t GetNextAddress(
+ PP_Var* address,
+ scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
virtual int32_t ReceiveRemoteAddress(PP_Var address) OVERRIDE;
- virtual int32_t Recv(void* data, uint32_t len,
- PP_CompletionCallback callback) OVERRIDE;
- virtual int32_t Send(const void* data, uint32_t len,
- PP_CompletionCallback callback) OVERRIDE;
+ virtual int32_t Recv(void* data,
+ uint32_t len,
+ scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
+ virtual int32_t Send(
+ const void* data,
+ uint32_t len,
+ scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
virtual int32_t Close() OVERRIDE;
// webkit_glue::P2PTransport::EventHandler implementation.

Powered by Google App Engine
This is Rietveld 408576698