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

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

Issue 6347033: net: Add namespace net to Sdch* classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: namespace on unittest Created 9 years, 10 months 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
OLDNEW
1 // Copyright (c) 2010 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 // 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 #pragma once 16 #pragma once
17 17
18 #include <string> 18 #include <string>
19 19
20 #include "base/scoped_ptr.h" 20 #include "base/scoped_ptr.h"
21 #include "net/base/filter.h" 21 #include "net/base/filter.h"
22 #include "net/base/sdch_manager.h" 22 #include "net/base/sdch_manager.h"
23 23
24 namespace open_vcdiff { 24 namespace open_vcdiff {
25 class VCDiffStreamingDecoder; 25 class VCDiffStreamingDecoder;
26 } 26 }
27 27
28 namespace net {
29
28 class SdchFilter : public Filter { 30 class SdchFilter : public Filter {
29 public: 31 public:
30 explicit SdchFilter(const FilterContext& filter_context); 32 explicit SdchFilter(const FilterContext& filter_context);
31 33
32 virtual ~SdchFilter(); 34 virtual ~SdchFilter();
33 35
34 // Initializes filter decoding mode and internal control blocks. 36 // Initializes filter decoding mode and internal control blocks.
35 bool InitDecoding(Filter::FilterType filter_type); 37 bool InitDecoding(Filter::FilterType filter_type);
36 38
37 // Decode the pre-filter data and writes the output into |dest_buffer| 39 // Decode the pre-filter data and writes the output into |dest_buffer|
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // This is used to restrict use of a dictionary to a specific URL or path. 110 // This is used to restrict use of a dictionary to a specific URL or path.
109 GURL url_; 111 GURL url_;
110 112
111 // To facilitate error recovery, allow filter to know if content is text/html 113 // To facilitate error recovery, allow filter to know if content is text/html
112 // by checking within this mime type (we may do a meta-refresh via html). 114 // by checking within this mime type (we may do a meta-refresh via html).
113 std::string mime_type_; 115 std::string mime_type_;
114 116
115 DISALLOW_COPY_AND_ASSIGN(SdchFilter); 117 DISALLOW_COPY_AND_ASSIGN(SdchFilter);
116 }; 118 };
117 119
120 } // namespace net
121
118 #endif // NET_BASE_SDCH_FILTER_H_ 122 #endif // NET_BASE_SDCH_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698