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

Unified Diff: net/quic/core/crypto/channel_id.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/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/core/crypto/channel_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/channel_id.h
diff --git a/net/quic/core/crypto/channel_id.h b/net/quic/core/crypto/channel_id.h
index 3d41e538cc26ca97a675eef7b55336bf4327f26d..eda503ef7f92383fb3b9b1f2e7c9d13734fb7ddf 100644
--- a/net/quic/core/crypto/channel_id.h
+++ b/net/quic/core/crypto/channel_id.h
@@ -9,9 +9,9 @@
#include <string>
#include "base/macros.h"
-#include "base/strings/string_piece.h"
#include "net/quic/core/quic_types.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -23,7 +23,7 @@ class QUIC_EXPORT_PRIVATE ChannelIDKey {
// Sign signs |signed_data| using the ChannelID private key and puts the
// signature into |out_signature|. It returns true on success.
- virtual bool Sign(base::StringPiece signed_data,
+ virtual bool Sign(QuicStringPiece signed_data,
std::string* out_signature) const = 0;
// SerializeKey returns the serialized ChannelID public key.
@@ -77,17 +77,17 @@ class QUIC_EXPORT_PRIVATE ChannelIDVerifier {
// Verify returns true iff |signature| is a valid signature of |signed_data|
// by |key|.
- static bool Verify(base::StringPiece key,
- base::StringPiece signed_data,
- base::StringPiece signature);
+ static bool Verify(QuicStringPiece key,
+ QuicStringPiece signed_data,
+ QuicStringPiece signature);
// FOR TESTING ONLY: VerifyRaw returns true iff |signature| is a valid
// signature of |signed_data| by |key|. |is_channel_id_signature| indicates
// whether |signature| is a ChannelID signature (with kContextStr prepended
// to the data to be signed).
- static bool VerifyRaw(base::StringPiece key,
- base::StringPiece signed_data,
- base::StringPiece signature,
+ static bool VerifyRaw(QuicStringPiece key,
+ QuicStringPiece signed_data,
+ QuicStringPiece signature,
bool is_channel_id_signature);
private:
« no previous file with comments | « net/quic/core/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/core/crypto/channel_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698