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

Unified Diff: net/quic/core/quic_utils.h

Issue 2603723002: Add a new QUIC platform API for text utilities. (Closed)
Patch Set: Tests Created 4 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/core/quic_utils.h
diff --git a/net/quic/core/quic_utils.h b/net/quic/core/quic_utils.h
index db8e83496b7c1ae9b38fafdd52f73e6fdf99262e..c32e8657dde5b2a8ca742079767f40ac3ff252b7 100644
--- a/net/quic/core/quic_utils.h
+++ b/net/quic/core/quic_utils.h
@@ -65,22 +65,6 @@ class QUIC_EXPORT_PRIVATE QuicUtils {
const QuicSocketAddress& old_address,
const QuicSocketAddress& new_address);
- // This converts |length| bytes of binary to a 2*|length|-character
- // hexadecimal representation.
- // Return value: 2*|length| characters of ASCII std::string.
- static std::string HexEncode(const char* data, size_t length);
- static std::string HexEncode(base::StringPiece data);
-
- // Converts |data| from a hexadecimal ASCII std::string to binary.
- static std::string HexDecode(base::StringPiece data);
-
- // Returns a std::string containing hex and ASCII representations of |binary|,
- // side-by-side in the style of hexdump. Non-printable characters will be
- // printed as '.' in the ASCII output.
- // For example:
- // "0x0000: 4865 6c6c 6f2c 2051 5549 4321 0102 0304 Hello,.QUIC!...."
- static std::string HexDump(base::StringPiece binary_data);
-
private:
DISALLOW_COPY_AND_ASSIGN(QuicUtils);
};

Powered by Google App Engine
This is Rietveld 408576698