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

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

Issue 704493002: Revert "Sdch view for net-internals" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « net/filter/mock_filter_context.cc ('k') | net/filter/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 explicit SdchFilter(const FilterContext& filter_context); 57 explicit SdchFilter(const FilterContext& filter_context);
58 friend class Filter; 58 friend class Filter;
59 59
60 // Identify the suggested dictionary, and initialize underlying decompressor. 60 // Identify the suggested dictionary, and initialize underlying decompressor.
61 Filter::FilterStatus InitializeDictionary(); 61 Filter::FilterStatus InitializeDictionary();
62 62
63 // Move data that was internally buffered (after decompression) to the 63 // Move data that was internally buffered (after decompression) to the
64 // specified dest_buffer. 64 // specified dest_buffer.
65 int OutputBufferExcess(char* const dest_buffer, size_t available_space); 65 int OutputBufferExcess(char* const dest_buffer, size_t available_space);
66 66
67 // Add SDCH Problem to net-log and record histogram.
68 void LogSdchProblem(SdchProblemCode problem);
69
70 // Context data from the owner of this filter. 67 // Context data from the owner of this filter.
71 const FilterContext& filter_context_; 68 const FilterContext& filter_context_;
72 69
73 // Tracks the status of decoding. 70 // Tracks the status of decoding.
74 // This variable is initialized by InitDecoding and updated only by 71 // This variable is initialized by InitDecoding and updated only by
75 // ReadFilteredData. 72 // ReadFilteredData.
76 DecodingStatus decoding_status_; 73 DecodingStatus decoding_status_;
77 74
78 // The underlying decoder that processes data. 75 // The underlying decoder that processes data.
79 // This data structure is initialized by InitDecoding and updated in 76 // This data structure is initialized by InitDecoding and updated in
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // To facilitate error recovery, allow filter to know if content is text/html 125 // To facilitate error recovery, allow filter to know if content is text/html
129 // by checking within this mime type (we may do a meta-refresh via html). 126 // by checking within this mime type (we may do a meta-refresh via html).
130 std::string mime_type_; 127 std::string mime_type_;
131 128
132 DISALLOW_COPY_AND_ASSIGN(SdchFilter); 129 DISALLOW_COPY_AND_ASSIGN(SdchFilter);
133 }; 130 };
134 131
135 } // namespace net 132 } // namespace net
136 133
137 #endif // NET_FILTER_SDCH_FILTER_H_ 134 #endif // NET_FILTER_SDCH_FILTER_H_
OLDNEW
« no previous file with comments | « net/filter/mock_filter_context.cc ('k') | net/filter/sdch_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698