OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "net/http2/hpack/decoder/hpack_entry_decoder_listener.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace net { |
| 10 |
| 11 void HpackEntryDecoderVLoggingListener::OnIndexedHeader(size_t index) { |
| 12 VLOG(1) << "OnIndexedHeader, index=" << index; |
| 13 if (wrapped_) { |
| 14 wrapped_->OnIndexedHeader(index); |
| 15 } |
| 16 } |
| 17 |
| 18 void HpackEntryDecoderVLoggingListener::OnStartLiteralHeader( |
| 19 HpackEntryType entry_type, |
| 20 size_t maybe_name_index) { |
| 21 VLOG(1) << "OnStartLiteralHeader: entry_type=" << entry_type |
| 22 << ", maybe_name_index=" << maybe_name_index; |
| 23 if (wrapped_) { |
| 24 wrapped_->OnStartLiteralHeader(entry_type, maybe_name_index); |
| 25 } |
| 26 } |
| 27 |
| 28 void HpackEntryDecoderVLoggingListener::OnNameStart(bool huffman_encoded, |
| 29 size_t len) { |
| 30 VLOG(1) << "OnNameStart: H=" << huffman_encoded << ", len=" << len; |
| 31 if (wrapped_) { |
| 32 wrapped_->OnNameStart(huffman_encoded, len); |
| 33 } |
| 34 } |
| 35 |
| 36 void HpackEntryDecoderVLoggingListener::OnNameData(const char* data, |
| 37 size_t len) { |
| 38 VLOG(1) << "OnNameData: len=" << len; |
| 39 if (wrapped_) { |
| 40 wrapped_->OnNameData(data, len); |
| 41 } |
| 42 } |
| 43 |
| 44 void HpackEntryDecoderVLoggingListener::OnNameEnd() { |
| 45 VLOG(1) << "OnNameEnd"; |
| 46 if (wrapped_) { |
| 47 wrapped_->OnNameEnd(); |
| 48 } |
| 49 } |
| 50 |
| 51 void HpackEntryDecoderVLoggingListener::OnValueStart(bool huffman_encoded, |
| 52 size_t len) { |
| 53 VLOG(1) << "OnValueStart: H=" << huffman_encoded << ", len=" << len; |
| 54 if (wrapped_) { |
| 55 wrapped_->OnValueStart(huffman_encoded, len); |
| 56 } |
| 57 return; |
| 58 } |
| 59 |
| 60 void HpackEntryDecoderVLoggingListener::OnValueData(const char* data, |
| 61 size_t len) { |
| 62 VLOG(1) << "OnValueData: len=" << len; |
| 63 if (wrapped_) { |
| 64 wrapped_->OnValueData(data, len); |
| 65 } |
| 66 } |
| 67 |
| 68 void HpackEntryDecoderVLoggingListener::OnValueEnd() { |
| 69 VLOG(1) << "OnValueEnd"; |
| 70 if (wrapped_) { |
| 71 wrapped_->OnValueEnd(); |
| 72 } |
| 73 } |
| 74 |
| 75 void HpackEntryDecoderVLoggingListener::OnDynamicTableSizeUpdate(size_t size) { |
| 76 VLOG(1) << "OnDynamicTableSizeUpdate: size=" << size; |
| 77 if (wrapped_) { |
| 78 wrapped_->OnDynamicTableSizeUpdate(size); |
| 79 } |
| 80 return; |
| 81 } |
| 82 |
| 83 } // namespace net |
OLD | NEW |