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

Unified Diff: net/quic/core/crypto/aead_base_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/chromium/quic_utils_chromium.cc ('k') | net/quic/core/crypto/aead_base_decrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/aead_base_decrypter.h
diff --git a/net/quic/core/crypto/aead_base_decrypter.h b/net/quic/core/crypto/aead_base_decrypter.h
index 23fbdd6fee4d6f00e20483f4d0c4c8be3c214306..02edd67a1adf8df21db164f2fc090f3f6b993641 100644
--- a/net/quic/core/crypto/aead_base_decrypter.h
+++ b/net/quic/core/crypto/aead_base_decrypter.h
@@ -12,6 +12,7 @@
#include "net/quic/core/crypto/quic_decrypter.h"
#include "net/quic/core/crypto/scoped_evp_aead_ctx.h"
#include "net/quic/platform/api/quic_export.h"
+#include "net/quic/platform/api/quic_string_piece.h"
namespace net {
@@ -25,19 +26,19 @@ class QUIC_EXPORT_PRIVATE AeadBaseDecrypter : public QuicDecrypter {
~AeadBaseDecrypter() 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;
protected:
// Make these constants available to the subclasses so that the subclasses
« no previous file with comments | « net/quic/chromium/quic_utils_chromium.cc ('k') | net/quic/core/crypto/aead_base_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698