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

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

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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/filter_unittest.cc ('k') | net/filter/gzip_header.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 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 // 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.
11 // 11 //
12 // GZipFilter is a subclass of Filter. See the latter's header file filter.h 12 // GZipFilter is a subclass of Filter. See the latter's header file filter.h
13 // for sample usage. 13 // for sample usage.
14 14
15 #ifndef NET_FILTER_GZIP_FILTER_H_ 15 #ifndef NET_FILTER_GZIP_FILTER_H_
16 #define NET_FILTER_GZIP_FILTER_H_ 16 #define NET_FILTER_GZIP_FILTER_H_
17 17
18 #include "base/basictypes.h" 18 #include "base/macros.h"
19 #include "base/memory/scoped_ptr.h" 19 #include "base/memory/scoped_ptr.h"
20 #include "net/filter/filter.h" 20 #include "net/filter/filter.h"
21 21
22 typedef struct z_stream_s z_stream; 22 typedef struct z_stream_s z_stream;
23 23
24 namespace net { 24 namespace net {
25 25
26 class GZipHeader; 26 class GZipHeader;
27 27
28 class GZipFilter : public Filter { 28 class GZipFilter : public Filter {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // If this flag is set, then we will revert to being a pass through filter if 141 // If this flag is set, then we will revert to being a pass through filter if
142 // we don't get a valid gzip header. 142 // we don't get a valid gzip header.
143 bool possible_sdch_pass_through_; 143 bool possible_sdch_pass_through_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(GZipFilter); 145 DISALLOW_COPY_AND_ASSIGN(GZipFilter);
146 }; 146 };
147 147
148 } // namespace net 148 } // namespace net
149 149
150 #endif // NET_FILTER_GZIP_FILTER_H__ 150 #endif // NET_FILTER_GZIP_FILTER_H__
OLDNEW
« no previous file with comments | « net/filter/filter_unittest.cc ('k') | net/filter/gzip_header.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698