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

Unified Diff: net/quic/core/crypto/crypto_handshake_message.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/crypto/crypto_framer_test.cc ('k') | net/quic/core/crypto/crypto_handshake_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_handshake_message.h
diff --git a/net/quic/core/crypto/crypto_handshake_message.h b/net/quic/core/crypto/crypto_handshake_message.h
index f1e7b995e69f788aea9cfcb3e047ebeb85e604ae..57b8f54caedabc235716888d0f6e97bf0908838c 100644
--- a/net/quic/core/crypto/crypto_handshake_message.h
+++ b/net/quic/core/crypto/crypto_handshake_message.h
@@ -11,9 +11,9 @@
#include <string>
#include <vector>
-#include "base/strings/string_piece.h"
#include "net/quic/core/quic_packets.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -66,7 +66,7 @@ class QUIC_EXPORT_PRIVATE CryptoHandshakeMessage {
const QuicTagValueMap& tag_value_map() const { return tag_value_map_; }
- void SetStringPiece(QuicTag tag, base::StringPiece value);
+ void SetStringPiece(QuicTag tag, QuicStringPiece value);
// Erase removes a tag/value, if present, from the message.
void Erase(QuicTag tag);
@@ -81,7 +81,7 @@ class QUIC_EXPORT_PRIVATE CryptoHandshakeMessage {
const QuicTag** out_tags,
size_t* out_len) const;
- bool GetStringPiece(QuicTag tag, base::StringPiece* out) const;
+ bool GetStringPiece(QuicTag tag, QuicStringPiece* out) const;
bool HasStringPiece(QuicTag tag) const;
// GetNthValue24 interprets the value with the given tag to be a series of
@@ -89,7 +89,7 @@ class QUIC_EXPORT_PRIVATE CryptoHandshakeMessage {
// index.
QuicErrorCode GetNthValue24(QuicTag tag,
unsigned index,
- base::StringPiece* out) const;
+ QuicStringPiece* out) const;
QuicErrorCode GetUint32(QuicTag tag, uint32_t* out) const;
QuicErrorCode GetUint64(QuicTag tag, uint64_t* out) const;
« no previous file with comments | « net/quic/core/crypto/crypto_framer_test.cc ('k') | net/quic/core/crypto/crypto_handshake_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698