OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // SdchFilter applies open_vcdiff content decoding to a datastream. | 5 // SdchFilter applies open_vcdiff content decoding to a datastream. |
6 // This decoding uses a pre-cached dictionary of text fragments to decode | 6 // This decoding uses a pre-cached dictionary of text fragments to decode |
7 // (expand) the stream back to its original contents. | 7 // (expand) the stream back to its original contents. |
8 // | 8 // |
9 // This SdchFilter internally uses open_vcdiff/vcdec library to do decoding. | 9 // This SdchFilter internally uses open_vcdiff/vcdec library to do decoding. |
10 // | 10 // |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 std::string dest_buffer_excess_; | 92 std::string dest_buffer_excess_; |
93 // To avoid moving strings around too much, we save the index into | 93 // To avoid moving strings around too much, we save the index into |
94 // dest_buffer_excess_ that has the next byte to output. | 94 // dest_buffer_excess_ that has the next byte to output. |
95 size_t dest_buffer_excess_index_; | 95 size_t dest_buffer_excess_index_; |
96 | 96 |
97 // To get stats on activities, we keep track of source and target bytes. | 97 // To get stats on activities, we keep track of source and target bytes. |
98 // Visit about:histograms/Sdch to see histogram data. | 98 // Visit about:histograms/Sdch to see histogram data. |
99 size_t source_bytes_; | 99 size_t source_bytes_; |
100 size_t output_bytes_; | 100 size_t output_bytes_; |
101 | 101 |
| 102 // When was the most recent non-zero size data chunk processed? |
102 base::Time time_of_last_read_; | 103 base::Time time_of_last_read_; |
| 104 // How large was the most recent non-zero size data chunk? |
| 105 int size_of_last_read_; |
| 106 |
103 | 107 |
104 DISALLOW_COPY_AND_ASSIGN(SdchFilter); | 108 DISALLOW_COPY_AND_ASSIGN(SdchFilter); |
105 }; | 109 }; |
106 | 110 |
107 #endif // NET_BASE_SDCH_FILTER_H_ | 111 #endif // NET_BASE_SDCH_FILTER_H_ |
OLD | NEW |