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_string_decoder_listener.h" | |
6 | |
7 #include "base/logging.h" | |
8 | |
9 namespace net { | |
10 namespace test { | |
11 | |
12 void HpackStringDecoderVLoggingListener::OnStringStart(bool huffman_encoded, | |
13 size_t len) { | |
14 VLOG(1) << "OnStringStart: H=" << huffman_encoded << ", len=" << len; | |
15 if (wrapped_) { | |
16 wrapped_->OnStringStart(huffman_encoded, len); | |
17 } | |
18 } | |
19 | |
20 void HpackStringDecoderVLoggingListener::OnStringData(const char* data, | |
21 size_t len) { | |
22 VLOG(1) << "OnStringData: len=" << len; | |
23 if (wrapped_) { | |
24 return wrapped_->OnStringData(data, len); | |
25 } | |
26 } | |
27 | |
28 void HpackStringDecoderVLoggingListener::OnStringEnd() { | |
29 VLOG(1) << "OnStringEnd"; | |
30 if (wrapped_) { | |
31 return wrapped_->OnStringEnd(); | |
32 } | |
33 } | |
34 | |
35 } // namespace test | |
36 } // namespace net | |
OLD | NEW |