Index: tools/android/common/net.h |
diff --git a/tools/android/common/net.h b/tools/android/common/net.h |
index d17b6f43e8bde07dee4965b02b5dd89ce2510b5c..091f3626009679674f5bb7d25fb9950dd07d622b 100644 |
--- a/tools/android/common/net.h |
+++ b/tools/android/common/net.h |
@@ -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 @@ int DisableNagle(int socket); |
// 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_ |