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

Unified Diff: net/spdy/spdy_header_block.cc

Issue 2431413004: Removes SpdyHeaderBlock::GetHeader(). No functional change. Not protected. (Closed)
Patch Set: Created 4 years, 2 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.h ('k') | net/spdy/spdy_header_block_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_header_block.cc
diff --git a/net/spdy/spdy_header_block.cc b/net/spdy/spdy_header_block.cc
index e4a3f3dacb43d0389191bb5bd4cf9829ef9d688c..a5937ff393d7658a2d77b06e3adc9380b863f862 100644
--- a/net/spdy/spdy_header_block.cc
+++ b/net/spdy/spdy_header_block.cc
@@ -89,7 +89,9 @@ SpdyHeaderBlock::ValueProxy::ValueProxy(
storage_(storage),
lookup_result_(lookup_result),
key_(key),
- valid_(true) {}
+ valid_(true) {
+ DVLOG(1) << "Constructing ValueProxy with key: " << key;
+}
SpdyHeaderBlock::ValueProxy::ValueProxy(ValueProxy&& other)
: block_(other.block_),
@@ -222,11 +224,6 @@ SpdyHeaderBlock::ValueProxy SpdyHeaderBlock::operator[](const StringPiece key) {
return ValueProxy(&block_, GetStorage(), iter, out_key);
}
-StringPiece SpdyHeaderBlock::GetHeader(const StringPiece key) const {
- auto iter = block_.find(key);
- return iter == block_.end() ? StringPiece() : iter->second;
-}
-
void SpdyHeaderBlock::AppendValueOrAddHeader(const StringPiece key,
const StringPiece value) {
auto iter = block_.find(key);
« no previous file with comments | « net/spdy/spdy_header_block.h ('k') | net/spdy/spdy_header_block_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698