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

Unified Diff: net/quic/core/crypto/null_decrypter.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/local_strike_register_client_test.cc ('k') | net/quic/core/crypto/null_decrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/null_decrypter.h
diff --git a/net/quic/core/crypto/null_decrypter.h b/net/quic/core/crypto/null_decrypter.h
index db93c445f5171a978a37cd6ea1fb5d33c02368bd..4191e0e11081e5d4260bef4d521e1a3e01eee38f 100644
--- a/net/quic/core/crypto/null_decrypter.h
+++ b/net/quic/core/crypto/null_decrypter.h
@@ -14,6 +14,7 @@
#include "net/quic/core/crypto/quic_decrypter.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 {
@@ -28,19 +29,19 @@ class QUIC_EXPORT_PRIVATE NullDecrypter : public QuicDecrypter {
~NullDecrypter() override {}
// QuicDecrypter implementation
- bool SetKey(base::StringPiece key) override;
- bool SetNoncePrefix(base::StringPiece nonce_prefix) override;
- bool SetPreliminaryKey(base::StringPiece key) override;
+ bool SetKey(QuicStringPiece key) override;
+ bool SetNoncePrefix(QuicStringPiece nonce_prefix) override;
+ bool SetPreliminaryKey(QuicStringPiece key) override;
bool SetDiversificationNonce(const DiversificationNonce& nonce) override;
bool DecryptPacket(QuicVersion version,
QuicPacketNumber packet_number,
- base::StringPiece associated_data,
- base::StringPiece ciphertext,
+ QuicStringPiece associated_data,
+ QuicStringPiece ciphertext,
char* output,
size_t* output_length,
size_t max_output_length) override;
- base::StringPiece GetKey() const override;
- base::StringPiece GetNoncePrefix() const override;
+ QuicStringPiece GetKey() const override;
+ QuicStringPiece GetNoncePrefix() const override;
const char* cipher_name() const override;
uint32_t cipher_id() const override;
@@ -48,8 +49,8 @@ class QUIC_EXPORT_PRIVATE NullDecrypter : public QuicDecrypter {
private:
bool ReadHash(QuicDataReader* reader, uint128* hash);
uint128 ComputeHash(QuicVersion version,
- base::StringPiece data1,
- base::StringPiece data2) const;
+ QuicStringPiece data1,
+ QuicStringPiece data2) const;
Perspective perspective_;
« no previous file with comments | « net/quic/core/crypto/local_strike_register_client_test.cc ('k') | net/quic/core/crypto/null_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698