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

Unified Diff: net/quic/core/crypto/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/ephemeral_key_source.h ('k') | net/quic/core/crypto/local_strike_register_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/key_exchange.h
diff --git a/net/quic/core/crypto/key_exchange.h b/net/quic/core/crypto/key_exchange.h
index 69da86e92fd0ea37caafc2d36b72d31606d67fd7..0e0a96ba973569b026813b4dd9e93d84517714f1 100644
--- a/net/quic/core/crypto/key_exchange.h
+++ b/net/quic/core/crypto/key_exchange.h
@@ -7,9 +7,9 @@
#include <string>
-#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 {
@@ -29,14 +29,14 @@ class QUIC_EXPORT_PRIVATE KeyExchange {
// CalculateSharedKey computes the shared key between the local private key
// (which is implicitly known by a KeyExchange object) and a public value
// from the peer.
- virtual bool CalculateSharedKey(base::StringPiece peer_public_value,
+ virtual bool CalculateSharedKey(QuicStringPiece peer_public_value,
std::string* shared_key) const = 0;
// public_value returns the local public key which can be sent to a peer in
- // order to complete a key exchange. The returned StringPiece is a reference
- // to a member of the KeyExchange and is only valid for as long as the
- // KeyExchange exists.
- virtual base::StringPiece public_value() const = 0;
+ // order to complete a key exchange. The returned QuicStringPiece is a
+ // reference to a member of the KeyExchange and is only valid for as long as
+ // the KeyExchange exists.
+ virtual QuicStringPiece public_value() const = 0;
// tag returns the tag value that identifies this key exchange function.
virtual QuicTag tag() const = 0;
« no previous file with comments | « net/quic/core/crypto/ephemeral_key_source.h ('k') | net/quic/core/crypto/local_strike_register_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698