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

Unified Diff: ppapi/shared_impl/private/udp_socket_private_impl.h

Issue 9053003: Convert ppapi/shared to use TrackedCallback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comments Created 8 years, 12 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: ppapi/shared_impl/private/udp_socket_private_impl.h
diff --git a/ppapi/shared_impl/private/udp_socket_private_impl.h b/ppapi/shared_impl/private/udp_socket_private_impl.h
index 0f06e06031c92e4750ea6aace556e5bc237acfd3..01242c12b3cf4777ec2c8e086ee51984c2411640 100644
--- a/ppapi/shared_impl/private/udp_socket_private_impl.h
+++ b/ppapi/shared_impl/private/udp_socket_private_impl.h
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "ppapi/shared_impl/resource.h"
+#include "ppapi/shared_impl/tracked_callback.h"
#include "ppapi/thunk/ppb_udp_socket_private_api.h"
namespace ppapi {
@@ -68,16 +69,16 @@ class PPAPI_SHARED_EXPORT UDPSocketPrivateImpl
protected:
void Init(uint32 socket_id);
- void PostAbortAndClearIfNecessary(PP_CompletionCallback* callback);
+ void PostAbortIfNecessary(scoped_refptr<TrackedCallback>* callback);
uint32 socket_id_;
bool bound_;
bool closed_;
- PP_CompletionCallback bind_callback_;
- PP_CompletionCallback recvfrom_callback_;
- PP_CompletionCallback sendto_callback_;
+ scoped_refptr<TrackedCallback> bind_callback_;
+ scoped_refptr<TrackedCallback> recvfrom_callback_;
+ scoped_refptr<TrackedCallback> sendto_callback_;
char* read_buffer_;
int32_t bytes_to_read_;

Powered by Google App Engine
This is Rietveld 408576698