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

Unified Diff: net/spdy/core/hpack/hpack_encoder.cc

Issue 2840563003: Implement SpdyMakeUnique and SpdyWrapUnique. (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/core/hpack/hpack_constants.cc ('k') | net/spdy/core/http2_frame_decoder_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/core/hpack/hpack_encoder.cc
diff --git a/net/spdy/core/hpack/hpack_encoder.cc b/net/spdy/core/hpack/hpack_encoder.cc
index c88a6c467dadcd65f5d1c05e4152013d6d8626e3..29199b8a54c0ac5e8ff808a2bb4900105747de1f 100644
--- a/net/spdy/core/hpack/hpack_encoder.cc
+++ b/net/spdy/core/hpack/hpack_encoder.cc
@@ -14,6 +14,7 @@
#include "net/spdy/core/hpack/hpack_huffman_table.h"
#include "net/spdy/core/hpack/hpack_output_stream.h"
#include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
+#include "net/spdy/platform/api/spdy_ptr_util.h"
namespace net {
@@ -327,8 +328,8 @@ HpackEncoder::Encoderator::Encoderator(const SpdyHeaderBlock& header_set,
: GatherRepresentation(header, &regular_headers_);
}
}
- header_it_ = base::MakeUnique<RepresentationIterator>(pseudo_headers_,
- regular_headers_);
+ header_it_ =
+ SpdyMakeUnique<RepresentationIterator>(pseudo_headers_, regular_headers_);
encoder_->MaybeEmitTableSize();
}
@@ -365,7 +366,7 @@ void HpackEncoder::Encoderator::Next(size_t max_encoded_bytes,
std::unique_ptr<HpackEncoder::ProgressiveEncoder> HpackEncoder::EncodeHeaderSet(
const SpdyHeaderBlock& header_set) {
- return base::MakeUnique<Encoderator>(header_set, this);
+ return SpdyMakeUnique<Encoderator>(header_set, this);
}
} // namespace net
« no previous file with comments | « net/spdy/core/hpack/hpack_constants.cc ('k') | net/spdy/core/http2_frame_decoder_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698