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

Side by Side Diff: net/base/completion_callback.h

Issue 8914022: Revert 114494 - Remove BindStateHolder and have Bind() return a Callback<> object directly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/demuxer_stream.h ('k') | net/base/completion_callback.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_BASE_COMPLETION_CALLBACK_H__ 5 #ifndef NET_BASE_COMPLETION_CALLBACK_H__
6 #define NET_BASE_COMPLETION_CALLBACK_H__ 6 #define NET_BASE_COMPLETION_CALLBACK_H__
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback_old.h" 9 #include "base/callback_old.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 base::RefCounted<CancelableOldCompletionCallback<T> >::Release(); 53 base::RefCounted<CancelableOldCompletionCallback<T> >::Release();
54 } else { 54 } else {
55 OldCompletionCallbackImpl<T>::RunWithParams(params); 55 OldCompletionCallbackImpl<T>::RunWithParams(params);
56 } 56 }
57 } 57 }
58 58
59 private: 59 private:
60 bool is_canceled_; 60 bool is_canceled_;
61 }; 61 };
62 62
63 // Helper function for using OldCompletionCallback objects with
64 // the newer CompletionCallback APIs.
65 //
66 // This is a transitional function and should be removed when
67 // OldCompletionCallbackAdapter is deleted.
68 void OldCompletionCallbackAdapter(OldCompletionCallback* old_callback, int rv);
69
70 } // namespace net 63 } // namespace net
71 64
72 #endif // NET_BASE_COMPLETION_CALLBACK_H__ 65 #endif // NET_BASE_COMPLETION_CALLBACK_H__
OLDNEW
« no previous file with comments | « media/base/demuxer_stream.h ('k') | net/base/completion_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698