diff options
Diffstat (limited to 'net/base/completion_callback.h')
-rw-r--r-- | net/base/completion_callback.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/base/completion_callback.h b/net/base/completion_callback.h index cea6be3..f55a855 100644 --- a/net/base/completion_callback.h +++ b/net/base/completion_callback.h @@ -9,6 +9,7 @@ #include "base/callback_old.h" #include "base/callback.h" #include "base/cancelable_callback.h" +#include "net/base/net_export.h" namespace net { @@ -17,6 +18,13 @@ namespace net { typedef Callback1<int>::Type OldCompletionCallback; typedef base::Callback<void(int)> CompletionCallback; +// Temporary (in the code) adapter of OldCompletionCallback for use at call +// sites that expect a CompletionCallback. +// +// TODO(jhawkins): Remove once OldCompletionCallback is removed. +void NET_EXPORT OldCompletionCallbackAdapter(OldCompletionCallback* callback, + int result); + // Used to implement a OldCompletionCallback. template <class T> class OldCompletionCallbackImpl : |