From 42c459638320b53e684fcebd60b6eca45f2cdea4 Mon Sep 17 00:00:00 2001 From: "jhawkins@chromium.org" Date: Sat, 17 Dec 2011 02:20:23 +0000 Subject: Reland after fixes. base::Bind: Remove even moar OldCompletionCallback. BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114896 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/completion_callback.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'net/base/completion_callback.h') 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::Type OldCompletionCallback; typedef base::Callback 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 OldCompletionCallbackImpl : -- cgit v1.1