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

Side by Side Diff: tools/android/common/net.h

Issue 1549203002: Switch to standard integer types in tools/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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 | « tools/android/common/adb_connection.cc ('k') | tools/android/file_poller/file_poller.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) 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 TOOLS_ANDROID_COMMON_NET_H_ 5 #ifndef TOOLS_ANDROID_COMMON_NET_H_
6 #define TOOLS_ANDROID_COMMON_NET_H_ 6 #define TOOLS_ANDROID_COMMON_NET_H_
7 7
8 #include <stddef.h>
9
8 #include <string> 10 #include <string>
9 11
10 namespace tools { 12 namespace tools {
11 13
12 // DisableNagle can improve TCP transmission performance. Both Chrome net stack 14 // DisableNagle can improve TCP transmission performance. Both Chrome net stack
13 // and adb tool use it. 15 // and adb tool use it.
14 int DisableNagle(int socket); 16 int DisableNagle(int socket);
15 17
16 // Wake up listener only when data arrive. 18 // Wake up listener only when data arrive.
17 int DeferAccept(int socket); 19 int DeferAccept(int socket);
18 20
19 // Dumps a binary buffer into a string in a human-readable format. 21 // Dumps a binary buffer into a string in a human-readable format.
20 std::string DumpBinary(const char* buffer, size_t length); 22 std::string DumpBinary(const char* buffer, size_t length);
21 23
22 } // namespace tools 24 } // namespace tools
23 25
24 #endif // TOOLS_ANDROID_COMMON_NET_H_ 26 #endif // TOOLS_ANDROID_COMMON_NET_H_
25 27
OLDNEW
« no previous file with comments | « tools/android/common/adb_connection.cc ('k') | tools/android/file_poller/file_poller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698