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

Unified Diff: net/quic/core/crypto/null_encrypter.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/null_decrypter_test.cc ('k') | net/quic/core/crypto/null_encrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/null_encrypter.h
diff --git a/net/quic/core/crypto/null_encrypter.h b/net/quic/core/crypto/null_encrypter.h
index d605d8e0667ee1d1024348de64af53e5f7cfd5e5..c768c64671654865bcc24b85617f47377918a244 100644
--- a/net/quic/core/crypto/null_encrypter.h
+++ b/net/quic/core/crypto/null_encrypter.h
@@ -12,6 +12,7 @@
#include "net/quic/core/crypto/quic_encrypter.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 {
@@ -24,12 +25,12 @@ class QUIC_EXPORT_PRIVATE NullEncrypter : public QuicEncrypter {
~NullEncrypter() override {}
// QuicEncrypter implementation
- bool SetKey(base::StringPiece key) override;
- bool SetNoncePrefix(base::StringPiece nonce_prefix) override;
+ bool SetKey(QuicStringPiece key) override;
+ bool SetNoncePrefix(QuicStringPiece nonce_prefix) override;
bool EncryptPacket(QuicVersion version,
QuicPacketNumber packet_number,
- base::StringPiece associated_data,
- base::StringPiece plaintext,
+ QuicStringPiece associated_data,
+ QuicStringPiece plaintext,
char* output,
size_t* output_length,
size_t max_output_length) override;
@@ -37,8 +38,8 @@ class QUIC_EXPORT_PRIVATE NullEncrypter : public QuicEncrypter {
size_t GetNoncePrefixSize() const override;
size_t GetMaxPlaintextSize(size_t ciphertext_size) const override;
size_t GetCiphertextSize(size_t plaintext_size) const override;
- base::StringPiece GetKey() const override;
- base::StringPiece GetNoncePrefix() const override;
+ QuicStringPiece GetKey() const override;
+ QuicStringPiece GetNoncePrefix() const override;
private:
size_t GetHashLength() const;
« no previous file with comments | « net/quic/core/crypto/null_decrypter_test.cc ('k') | net/quic/core/crypto/null_encrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698