OLD | NEW |
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 // |
11 // SdchFilter is also a subclass of Filter. See the latter's header file | 11 // SdchFilter is also a subclass of Filter. See the latter's header file |
12 // filter.h for sample usage. | 12 // filter.h for sample usage. |
13 | 13 |
14 #ifndef NET_FILTER_SDCH_FILTER_H_ | 14 #ifndef NET_FILTER_SDCH_FILTER_H_ |
15 #define NET_FILTER_SDCH_FILTER_H_ | 15 #define NET_FILTER_SDCH_FILTER_H_ |
16 | 16 |
| 17 #include <stddef.h> |
| 18 |
17 #include <string> | 19 #include <string> |
18 | 20 |
| 21 #include "base/macros.h" |
19 #include "base/memory/scoped_ptr.h" | 22 #include "base/memory/scoped_ptr.h" |
20 #include "net/base/net_export.h" | 23 #include "net/base/net_export.h" |
21 #include "net/base/sdch_dictionary.h" | 24 #include "net/base/sdch_dictionary.h" |
22 #include "net/base/sdch_manager.h" | 25 #include "net/base/sdch_manager.h" |
23 #include "net/filter/filter.h" | 26 #include "net/filter/filter.h" |
24 | 27 |
25 namespace open_vcdiff { | 28 namespace open_vcdiff { |
26 class VCDiffStreamingDecoder; | 29 class VCDiffStreamingDecoder; |
27 } | 30 } |
28 | 31 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // advertised (e.g. a cached response using an old dictionary), this | 132 // advertised (e.g. a cached response using an old dictionary), this |
130 // variable preserves that dictionary from deletion during decoding. | 133 // variable preserves that dictionary from deletion during decoding. |
131 scoped_ptr<SdchManager::DictionarySet> unexpected_dictionary_handle_; | 134 scoped_ptr<SdchManager::DictionarySet> unexpected_dictionary_handle_; |
132 | 135 |
133 DISALLOW_COPY_AND_ASSIGN(SdchFilter); | 136 DISALLOW_COPY_AND_ASSIGN(SdchFilter); |
134 }; | 137 }; |
135 | 138 |
136 } // namespace net | 139 } // namespace net |
137 | 140 |
138 #endif // NET_FILTER_SDCH_FILTER_H_ | 141 #endif // NET_FILTER_SDCH_FILTER_H_ |
OLD | NEW |