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

Unified Diff: ppapi/shared_impl/private/tcp_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/tcp_socket_private_impl.h
diff --git a/ppapi/shared_impl/private/tcp_socket_private_impl.h b/ppapi/shared_impl/private/tcp_socket_private_impl.h
index 095f1550c352f4b0c36bcfd383e7b2a394c63860..c9a65a7c7d96e427d8654c987e29060551da5df6 100644
--- a/ppapi/shared_impl/private/tcp_socket_private_impl.h
+++ b/ppapi/shared_impl/private/tcp_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_tcp_socket_private_api.h"
namespace ppapi {
@@ -92,15 +93,15 @@ class PPAPI_SHARED_EXPORT TCPSocketPrivateImpl
void Init(uint32 socket_id);
bool IsConnected() const;
- void PostAbortAndClearIfNecessary(PP_CompletionCallback* callback);
+ void PostAbortIfNecessary(scoped_refptr<TrackedCallback>* callback);
uint32 socket_id_;
ConnectionState connection_state_;
- PP_CompletionCallback connect_callback_;
- PP_CompletionCallback ssl_handshake_callback_;
- PP_CompletionCallback read_callback_;
- PP_CompletionCallback write_callback_;
+ scoped_refptr<TrackedCallback> connect_callback_;
+ scoped_refptr<TrackedCallback> ssl_handshake_callback_;
+ scoped_refptr<TrackedCallback> read_callback_;
+ scoped_refptr<TrackedCallback> write_callback_;
char* read_buffer_;
int32_t bytes_to_read_;

Powered by Google App Engine
This is Rietveld 408576698