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

Unified Diff: net/spdy/spdy_header_indexing.h

Issue 2801603003: Add SpdyString alias for std::string in net/spdy. (Closed)
Patch Set: Created 3 years, 8 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/spdy/spdy_header_block_test.cc ('k') | net/spdy/spdy_header_indexing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_header_indexing.h
diff --git a/net/spdy/spdy_header_indexing.h b/net/spdy/spdy_header_indexing.h
index a7d5c20fec5aec5c16e11935e3d637bbd0c83c9d..69cc08d23d2dbd6b183fba8a238b8529ab55df07 100644
--- a/net/spdy/spdy_header_indexing.h
+++ b/net/spdy/spdy_header_indexing.h
@@ -7,11 +7,11 @@
#include <stdint.h>
#include <memory>
-#include <string>
#include <unordered_set>
#include <utility>
#include "net/base/net_export.h"
+#include "net/spdy/platform/api/spdy_string.h"
#include "net/spdy/platform/api/spdy_string_piece.h"
namespace net {
@@ -29,7 +29,7 @@ NET_EXPORT_PRIVATE extern int32_t FLAGS_gfe_spdy_tracking_set_bound;
// UpdateSets to log the headers into both sets.
class NET_EXPORT HeaderIndexing {
public:
- using HeaderSet = std::unordered_set<std::string>;
+ using HeaderSet = std::unordered_set<SpdyString>;
HeaderIndexing();
~HeaderIndexing();
@@ -53,7 +53,7 @@ class NET_EXPORT HeaderIndexing {
private:
friend class test::HeaderIndexingPeer;
- void TryInsertHeader(std::string&& header, HeaderSet* set, size_t bound);
+ void TryInsertHeader(SpdyString&& header, HeaderSet* set, size_t bound);
// Headers to index.
HeaderSet indexing_set_;
// Headers seen so far.
« no previous file with comments | « net/spdy/spdy_header_block_test.cc ('k') | net/spdy/spdy_header_indexing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698