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

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

Issue 8568021: Add OVERRIDE to net/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net only Created 9 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 | Annotate | Revision Log
« no previous file with comments | « net/base/dnsrr_resolver.h ('k') | net/base/host_resolver_impl.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // GZipFilter applies gzip and deflate content encoding/decoding to a data 5 // GZipFilter applies gzip and deflate content encoding/decoding to a data
6 // stream. As specified by HTTP 1.1, with gzip encoding the content is 6 // stream. As specified by HTTP 1.1, with gzip encoding the content is
7 // wrapped with a gzip header, and with deflate encoding the content is in 7 // wrapped with a gzip header, and with deflate encoding the content is in
8 // a raw, headerless DEFLATE stream. 8 // a raw, headerless DEFLATE stream.
9 // 9 //
10 // Internally GZipFilter uses zlib inflate to do decoding. 10 // Internally GZipFilter uses zlib inflate to do decoding.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // The function returns FilterStatus. See filter.h for its description. 42 // The function returns FilterStatus. See filter.h for its description.
43 // 43 //
44 // Upon entry, *dest_len is the total size (in number of chars) of the 44 // Upon entry, *dest_len is the total size (in number of chars) of the
45 // destination buffer. Upon exit, *dest_len is the actual number of chars 45 // destination buffer. Upon exit, *dest_len is the actual number of chars
46 // written into the destination buffer. 46 // written into the destination buffer.
47 // 47 //
48 // This function will fail if there is no pre-filter data in the 48 // This function will fail if there is no pre-filter data in the
49 // stream_buffer_. On the other hand, *dest_len can be 0 upon successful 49 // stream_buffer_. On the other hand, *dest_len can be 0 upon successful
50 // return. For example, the internal zlib may process some pre-filter data 50 // return. For example, the internal zlib may process some pre-filter data
51 // but not produce output yet. 51 // but not produce output yet.
52 virtual FilterStatus ReadFilteredData(char* dest_buffer, int* dest_len); 52 virtual FilterStatus ReadFilteredData(char* dest_buffer,
53 int* dest_len) OVERRIDE;
53 54
54 private: 55 private:
55 enum DecodingStatus { 56 enum DecodingStatus {
56 DECODING_UNINITIALIZED, 57 DECODING_UNINITIALIZED,
57 DECODING_IN_PROGRESS, 58 DECODING_IN_PROGRESS,
58 DECODING_DONE, 59 DECODING_DONE,
59 DECODING_ERROR 60 DECODING_ERROR
60 }; 61 };
61 62
62 enum DecodingMode { 63 enum DecodingMode {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // If this flag is set, then we will revert to being a pass through filter if 143 // If this flag is set, then we will revert to being a pass through filter if
143 // we don't get a valid gzip header. 144 // we don't get a valid gzip header.
144 bool possible_sdch_pass_through_; 145 bool possible_sdch_pass_through_;
145 146
146 DISALLOW_COPY_AND_ASSIGN(GZipFilter); 147 DISALLOW_COPY_AND_ASSIGN(GZipFilter);
147 }; 148 };
148 149
149 } // namespace net 150 } // namespace net
150 151
151 #endif // NET_BASE_GZIP_FILTER_H__ 152 #endif // NET_BASE_GZIP_FILTER_H__
OLDNEW
« no previous file with comments | « net/base/dnsrr_resolver.h ('k') | net/base/host_resolver_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698