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

Unified Diff: net/quic/core/quic_data_writer.cc

Issue 2740453006: Add QuicStringPiece which is actually StringPiece. (Closed)
Patch Set: fix compile error and rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_data_writer.h ('k') | net/quic/core/quic_framer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_data_writer.cc
diff --git a/net/quic/core/quic_data_writer.cc b/net/quic/core/quic_data_writer.cc
index f890eb2393cac3a6b7316ca3ee90a5aa2eab2330..ac56e5eeb727141c115abae7f8d4701979b95b5f 100644
--- a/net/quic/core/quic_data_writer.cc
+++ b/net/quic/core/quic_data_writer.cc
@@ -7,8 +7,6 @@
#include <algorithm>
#include <limits>
-using base::StringPiece;
-
namespace net {
QuicDataWriter::QuicDataWriter(size_t size, char* buffer)
@@ -81,7 +79,7 @@ bool QuicDataWriter::WriteUFloat16(uint64_t value) {
return WriteBytes(&result, sizeof(result));
}
-bool QuicDataWriter::WriteStringPiece16(StringPiece val) {
+bool QuicDataWriter::WriteStringPiece16(QuicStringPiece val) {
if (val.size() > std::numeric_limits<uint16_t>::max()) {
return false;
}
« no previous file with comments | « net/quic/core/quic_data_writer.h ('k') | net/quic/core/quic_framer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698