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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 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
« no previous file with comments | « net/base/chunked_upload_data_stream.h ('k') | net/base/crypto_module.h » ('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) 2012 The Chromium Authors. All rights reserved. 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 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 7
8 #include <stdint.h>
9
8 #include "base/callback.h" 10 #include "base/callback.h"
9 #include "base/cancelable_callback.h" 11 #include "base/cancelable_callback.h"
10 12
11 namespace net { 13 namespace net {
12 14
13 // A callback specialization that takes a single int parameter. Usually this is 15 // A callback specialization that takes a single int parameter. Usually this is
14 // used to report a byte count or network error code. 16 // used to report a byte count or network error code.
15 typedef base::Callback<void(int)> CompletionCallback; 17 typedef base::Callback<void(int)> CompletionCallback;
16 18
17 // 64bit version of callback specialization that takes a single int64_t 19 // 64bit version of callback specialization that takes a single int64_t
18 // parameter. Usually this is used to report a file offset, size or network 20 // parameter. Usually this is used to report a file offset, size or network
19 // error code. 21 // error code.
20 typedef base::Callback<void(int64_t)> Int64CompletionCallback; 22 typedef base::Callback<void(int64_t)> Int64CompletionCallback;
21 23
22 typedef base::CancelableCallback<void(int)> CancelableCompletionCallback; 24 typedef base::CancelableCallback<void(int)> CancelableCompletionCallback;
23 25
24 } // namespace net 26 } // namespace net
25 27
26 #endif // NET_BASE_COMPLETION_CALLBACK_H__ 28 #endif // NET_BASE_COMPLETION_CALLBACK_H__
OLDNEW
« no previous file with comments | « net/base/chunked_upload_data_stream.h ('k') | net/base/crypto_module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698