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

Unified Diff: net/quic/core/crypto/local_strike_register_client.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
Index: net/quic/core/crypto/local_strike_register_client.cc
diff --git a/net/quic/core/crypto/local_strike_register_client.cc b/net/quic/core/crypto/local_strike_register_client.cc
index 1327818aaaf98116e8e437e1ebc54de66865eb8b..d0467f9c7b62b3649a01988e332c7a928c56f16e 100644
--- a/net/quic/core/crypto/local_strike_register_client.cc
+++ b/net/quic/core/crypto/local_strike_register_client.cc
@@ -6,7 +6,6 @@
#include "net/quic/core/crypto/crypto_protocol.h"
-using base::StringPiece;
using std::string;
namespace net {
@@ -23,7 +22,7 @@ LocalStrikeRegisterClient::LocalStrikeRegisterClient(
orbit,
startup) {}
-bool LocalStrikeRegisterClient::IsKnownOrbit(StringPiece orbit) const {
+bool LocalStrikeRegisterClient::IsKnownOrbit(QuicStringPiece orbit) const {
QuicWriterMutexLock lock(&m_);
if (orbit.length() != kOrbitSize) {
return false;
@@ -32,7 +31,7 @@ bool LocalStrikeRegisterClient::IsKnownOrbit(StringPiece orbit) const {
}
void LocalStrikeRegisterClient::VerifyNonceIsValidAndUnique(
- StringPiece nonce,
+ QuicStringPiece nonce,
QuicWallTime now,
ResultCallback* cb) {
InsertStatus nonce_error;
« no previous file with comments | « net/quic/core/crypto/local_strike_register_client.h ('k') | net/quic/core/crypto/local_strike_register_client_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698