OLD | NEW |
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 // |
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_BASE_SDCH_FILTER_H_ | 14 #ifndef NET_BASE_SDCH_FILTER_H_ |
15 #define NET_BASE_SDCH_FILTER_H_ | 15 #define NET_BASE_SDCH_FILTER_H_ |
16 | 16 |
17 #include <string> | 17 #include <string> |
18 #include <vector> | |
19 | 18 |
20 #include "base/scoped_ptr.h" | 19 #include "base/scoped_ptr.h" |
21 #include "base/time.h" | |
22 #include "net/base/filter.h" | 20 #include "net/base/filter.h" |
23 #include "net/base/sdch_manager.h" | 21 #include "net/base/sdch_manager.h" |
24 | 22 |
25 class SafeOutputStringInterface; | 23 class SafeOutputStringInterface; |
26 | 24 |
27 namespace open_vcdiff { | 25 namespace open_vcdiff { |
28 class VCDiffStreamingDecoder; | 26 class VCDiffStreamingDecoder; |
29 } | 27 } |
30 | 28 |
31 class SdchFilter : public Filter { | 29 class SdchFilter : public Filter { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 GURL url_; | 110 GURL url_; |
113 | 111 |
114 // To facilitate error recovery, allow filter to know if content is text/html | 112 // To facilitate error recovery, allow filter to know if content is text/html |
115 // by checking within this mime type (we may do a meta-refresh via html). | 113 // by checking within this mime type (we may do a meta-refresh via html). |
116 std::string mime_type_; | 114 std::string mime_type_; |
117 | 115 |
118 DISALLOW_COPY_AND_ASSIGN(SdchFilter); | 116 DISALLOW_COPY_AND_ASSIGN(SdchFilter); |
119 }; | 117 }; |
120 | 118 |
121 #endif // NET_BASE_SDCH_FILTER_H_ | 119 #endif // NET_BASE_SDCH_FILTER_H_ |
OLD | NEW |