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

Unified Diff: net/quic/core/crypto/cert_compressor.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/aes_128_gcm_12_encrypter_test.cc ('k') | net/quic/core/crypto/cert_compressor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/cert_compressor.h
diff --git a/net/quic/core/crypto/cert_compressor.h b/net/quic/core/crypto/cert_compressor.h
index 7e0031ca2532dcea02c3781b740bfd48d626471e..c903e8498e5a915ad0b604dc082847c079ed0e38 100644
--- a/net/quic/core/crypto/cert_compressor.h
+++ b/net/quic/core/crypto/cert_compressor.h
@@ -9,10 +9,10 @@
#include <vector>
#include "base/macros.h"
-#include "base/strings/string_piece.h"
#include "net/quic/core/crypto/common_cert_set.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 {
@@ -36,15 +36,15 @@ class QUIC_EXPORT_PRIVATE CertCompressor {
// the common sets known to the peer. |client_cached_cert_hashes| contains
// 64-bit, FNV-1a hashes of certificates that the peer already possesses.
static std::string CompressChain(const std::vector<std::string>& certs,
- base::StringPiece client_common_set_hashes,
- base::StringPiece client_cached_cert_hashes,
+ QuicStringPiece client_common_set_hashes,
+ QuicStringPiece client_cached_cert_hashes,
const CommonCertSets* common_sets);
// DecompressChain decompresses the result of |CompressChain|, given in |in|,
// into a series of certificates that are written to |out_certs|.
// |cached_certs| contains certificates that the peer may have omitted and
// |common_sets| contains the common certificate sets known locally.
- static bool DecompressChain(base::StringPiece in,
+ static bool DecompressChain(QuicStringPiece in,
const std::vector<std::string>& cached_certs,
const CommonCertSets* common_sets,
std::vector<std::string>* out_certs);
« no previous file with comments | « net/quic/core/crypto/aes_128_gcm_12_encrypter_test.cc ('k') | net/quic/core/crypto/cert_compressor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698