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

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

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_crypto_stream.cc ('k') | net/quic/core/quic_data_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_data_reader.h
diff --git a/net/quic/core/quic_data_reader.h b/net/quic/core/quic_data_reader.h
index b1d8444e6f08e249227cda2897fc48a9b3125e14..2e365033e9e411dcefce0dca1d99e4742dd182d4 100644
--- a/net/quic/core/quic_data_reader.h
+++ b/net/quic/core/quic_data_reader.h
@@ -9,9 +9,9 @@
#include <cstdint>
#include "base/macros.h"
-#include "base/strings/string_piece.h"
#include "net/base/int128.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -64,29 +64,29 @@ class QUIC_EXPORT_PRIVATE QuicDataReader {
//
// Forwards the internal iterator on success.
// Returns true on success, false otherwise.
- bool ReadStringPiece16(base::StringPiece* result);
+ bool ReadStringPiece16(QuicStringPiece* result);
// Reads a given number of bytes into the given buffer. The buffer
// must be of adequate size.
// Forwards the internal iterator on success.
// Returns true on success, false otherwise.
- bool ReadStringPiece(base::StringPiece* result, size_t len);
+ bool ReadStringPiece(QuicStringPiece* result, size_t len);
- // Returns the remaining payload as a StringPiece.
+ // Returns the remaining payload as a QuicStringPiece.
//
// NOTE: Does not copy but rather references strings in the underlying buffer.
// This should be kept in mind when handling memory management!
//
// Forwards the internal iterator.
- base::StringPiece ReadRemainingPayload();
+ QuicStringPiece ReadRemainingPayload();
- // Returns the remaining payload as a StringPiece.
+ // Returns the remaining payload as a QuicStringPiece.
//
// NOTE: Does not copy but rather references strings in the underlying buffer.
// This should be kept in mind when handling memory management!
//
// DOES NOT forward the internal iterator.
- base::StringPiece PeekRemainingPayload();
+ QuicStringPiece PeekRemainingPayload();
// Reads a given number of bytes into the given buffer. The buffer
// must be of adequate size.
« no previous file with comments | « net/quic/core/quic_crypto_stream.cc ('k') | net/quic/core/quic_data_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698