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

Side by Side Diff: net/base/sdch_filter.h

Issue 17006: Histogram size of "final" block of SDCH compressed data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/base/sdch_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/base/sdch_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698