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

Unified Diff: net/quic/quartc/quartc_stream.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/quartc/quartc_session_test.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quartc/quartc_stream.cc
diff --git a/net/quic/quartc/quartc_stream.cc b/net/quic/quartc/quartc_stream.cc
index e702a5874ee66c40685631011df9eb0189f25cc4..620b193894e03cf7b671e8d840035a7b1ab631e4 100644
--- a/net/quic/quartc/quartc_stream.cc
+++ b/net/quic/quartc/quartc_stream.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "net/quic/quartc/quartc_stream.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -53,7 +54,7 @@ bool QuartcStream::fin_sent() {
void QuartcStream::Write(const char* data,
size_t size,
const WriteParameters& param) {
- WriteOrBufferData(base::StringPiece(data, size), param.fin, nullptr);
+ WriteOrBufferData(QuicStringPiece(data, size), param.fin, nullptr);
}
void QuartcStream::Close() {
« no previous file with comments | « net/quic/quartc/quartc_session_test.cc ('k') | net/quic/test_tools/crypto_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698