| Index: net/spdy/hpack_encoder.cc
|
| diff --git a/net/spdy/hpack_encoder.cc b/net/spdy/hpack_encoder.cc
|
| index 6cb8fad954161470b543eb8ddfc4e2ea194d27a7..0f57abb54a79a7b45a768219b703502131ddb72e 100644
|
| --- a/net/spdy/hpack_encoder.cc
|
| +++ b/net/spdy/hpack_encoder.cc
|
| @@ -48,7 +48,8 @@ bool HpackEncoder::EncodeHeaderSet(const std::map<string, string>& header_set,
|
| // Encode pseudo-headers.
|
| for (Representations::const_iterator it = pseudo_headers.begin();
|
| it != pseudo_headers.end(); ++it) {
|
| - HpackEntry* entry = header_table_.GetByNameAndValue(it->first, it->second);
|
| + const HpackEntry* entry =
|
| + header_table_.GetByNameAndValue(it->first, it->second);
|
| if (entry != NULL) {
|
| EmitIndex(entry);
|
| } else {
|
| @@ -71,7 +72,8 @@ bool HpackEncoder::EncodeHeaderSet(const std::map<string, string>& header_set,
|
| Representations literal_headers;
|
| for (Representations::const_iterator it = regular_headers.begin();
|
| it != regular_headers.end(); ++it) {
|
| - HpackEntry* entry = header_table_.GetByNameAndValue(it->first, it->second);
|
| + const HpackEntry* entry =
|
| + header_table_.GetByNameAndValue(it->first, it->second);
|
| if (entry != NULL) {
|
| EmitIndex(entry);
|
| } else {
|
| @@ -105,7 +107,7 @@ bool HpackEncoder::EncodeHeaderSetWithoutCompression(
|
| return true;
|
| }
|
|
|
| -void HpackEncoder::EmitIndex(HpackEntry* entry) {
|
| +void HpackEncoder::EmitIndex(const HpackEntry* entry) {
|
| output_stream_.AppendPrefix(kIndexedOpcode);
|
| output_stream_.AppendUint32(header_table_.IndexOf(entry));
|
| }
|
|
|