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

Unified Diff: net/quic/core/crypto/crypto_server_config_protobuf.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_secret_boxer_test.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_server_config_protobuf.h
diff --git a/net/quic/core/crypto/crypto_server_config_protobuf.h b/net/quic/core/crypto/crypto_server_config_protobuf.h
index 82dafd84e43463eba72272a86aab9fcb94eec11a..fe0cc4eaa4fae5dd9a1db93524aff0eeda708245 100644
--- a/net/quic/core/crypto/crypto_server_config_protobuf.h
+++ b/net/quic/core/crypto/crypto_server_config_protobuf.h
@@ -15,9 +15,9 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
-#include "base/strings/string_piece.h"
#include "net/quic/core/crypto/crypto_protocol.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -53,7 +53,7 @@ class QUIC_EXPORT_PRIVATE QuicServerConfigProtobuf {
std::string config() const { return config_; }
- void set_config(base::StringPiece config) { config.CopyToString(&config_); }
+ void set_config(QuicStringPiece config) { config.CopyToString(&config_); }
QuicServerConfigProtobuf::PrivateKey* add_key() {
keys_.push_back(base::MakeUnique<PrivateKey>());
@@ -83,7 +83,7 @@ class QUIC_EXPORT_PRIVATE QuicServerConfigProtobuf {
}
void set_source_address_token_secret_override(
- base::StringPiece source_address_token_secret_override) {
+ QuicStringPiece source_address_token_secret_override) {
source_address_token_secret_override.CopyToString(
&source_address_token_secret_override_);
}
« no previous file with comments | « net/quic/core/crypto/crypto_secret_boxer_test.cc ('k') | net/quic/core/crypto/crypto_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698