| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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.h" | 9 #include "base/callback_old.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 // A callback specialization that takes a single int parameter. Usually this | 13 // A callback specialization that takes a single int parameter. Usually this |
| 14 // is used to report a byte count or network error code. | 14 // is used to report a byte count or network error code. |
| 15 typedef Callback1<int>::Type CompletionCallback; | 15 typedef Callback1<int>::Type CompletionCallback; |
| 16 | 16 |
| 17 // Used to implement a CompletionCallback. | 17 // Used to implement a CompletionCallback. |
| 18 template <class T> | 18 template <class T> |
| 19 class CompletionCallbackImpl : | 19 class CompletionCallbackImpl : |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 bool is_canceled_; | 55 bool is_canceled_; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace net | 58 } // namespace net |
| 59 | 59 |
| 60 #endif // NET_BASE_COMPLETION_CALLBACK_H__ | 60 #endif // NET_BASE_COMPLETION_CALLBACK_H__ |
| OLD | NEW |