Index: tools/android/common/net.h |
=================================================================== |
--- tools/android/common/net.h (revision 122317) |
+++ tools/android/common/net.h (working copy) |
@@ -6,6 +6,8 @@ |
#define TOOLS_ANDROID_COMMON_NET_H_ |
#pragma once |
+#include <string> |
+ |
namespace tools { |
// DisableNagle can improve TCP transmission performance. Both Chrome net stack |
@@ -15,6 +17,9 @@ |
// Wake up listener only when data arrive. |
int DeferAccept(int socket); |
+// Dumps a binary buffer into a string in a human-readable format. |
+std::string DumpBinary(const char* buffer, size_t length); |
+ |
} // namespace tools |
#endif // TOOLS_ANDROID_COMMON_NET_H_ |