Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / net / base / completion_callback.h
blob7e5c90e8bab0e872add07925218a43c531fba9dd
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef NET_BASE_COMPLETION_CALLBACK_H__
6 #define NET_BASE_COMPLETION_CALLBACK_H__
8 #include "base/callback.h"
9 #include "base/cancelable_callback.h"
11 namespace net {
13 // A callback specialization that takes a single int parameter. Usually this is
14 // used to report a byte count or network error code.
15 typedef base::Callback<void(int)> CompletionCallback;
17 // 64bit version of callback specialization that takes a single int64 parameter.
18 // Usually this is used to report a file offset, size or network error code.
19 typedef base::Callback<void(int64)> Int64CompletionCallback;
21 typedef base::CancelableCallback<void(int)> CancelableCompletionCallback;
23 } // namespace net
25 #endif // NET_BASE_COMPLETION_CALLBACK_H__