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

Unified Diff: net/quic/core/crypto/curve25519_key_exchange.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_utils.cc ('k') | net/quic/core/crypto/curve25519_key_exchange.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/curve25519_key_exchange.h
diff --git a/net/quic/core/crypto/curve25519_key_exchange.h b/net/quic/core/crypto/curve25519_key_exchange.h
index 0515e8d7d4edb67faae8ff6e84ab1790942a1069..1e23e0bc8e4641b88ccd38cb6b0fc4cf8678ddcc 100644
--- a/net/quic/core/crypto/curve25519_key_exchange.h
+++ b/net/quic/core/crypto/curve25519_key_exchange.h
@@ -9,9 +9,9 @@
#include <string>
#include "base/compiler_specific.h"
-#include "base/strings/string_piece.h"
#include "net/quic/core/crypto/key_exchange.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -25,7 +25,7 @@ class QUIC_EXPORT_PRIVATE Curve25519KeyExchange : public KeyExchange {
// New creates a new object from a private key. If the private key is
// invalid, nullptr is returned.
- static Curve25519KeyExchange* New(base::StringPiece private_key);
+ static Curve25519KeyExchange* New(QuicStringPiece private_key);
// NewPrivateKey returns a private key, generated from |rand|, suitable for
// passing to |New|.
@@ -33,9 +33,9 @@ class QUIC_EXPORT_PRIVATE Curve25519KeyExchange : public KeyExchange {
// KeyExchange interface.
KeyExchange* NewKeyPair(QuicRandom* rand) const override;
- bool CalculateSharedKey(base::StringPiece peer_public_value,
+ bool CalculateSharedKey(QuicStringPiece peer_public_value,
std::string* shared_key) const override;
- base::StringPiece public_value() const override;
+ QuicStringPiece public_value() const override;
QuicTag tag() const override;
private:
« no previous file with comments | « net/quic/core/crypto/crypto_utils.cc ('k') | net/quic/core/crypto/curve25519_key_exchange.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698