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

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

Issue 3012001: Move implementation from header to source. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: blank line Created 10 years, 5 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
OLDNEW
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 // Filter performs filtering on data streams. Sample usage: 5 // Filter performs filtering on data streams. Sample usage:
6 // 6 //
7 // IStream* pre_filter_source; 7 // IStream* pre_filter_source;
8 // ... 8 // ...
9 // Filter* filter = Filter::Factory(filter_type, size); 9 // Filter* filter = Filter::Factory(filter_type, size);
10 // int pre_filter_data_len = filter->stream_buffer_size(); 10 // int pre_filter_data_len = filter->stream_buffer_size();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 public: 55 public:
56 // Enum to control what histograms are emitted near end-of-life of this 56 // Enum to control what histograms are emitted near end-of-life of this
57 // instance. 57 // instance.
58 enum StatisticSelector { 58 enum StatisticSelector {
59 SDCH_DECODE, 59 SDCH_DECODE,
60 SDCH_PASSTHROUGH, 60 SDCH_PASSTHROUGH,
61 SDCH_EXPERIMENT_DECODE, 61 SDCH_EXPERIMENT_DECODE,
62 SDCH_EXPERIMENT_HOLDBACK, 62 SDCH_EXPERIMENT_HOLDBACK,
63 }; 63 };
64 64
65 virtual ~FilterContext() {} 65 virtual ~FilterContext();
66 66
67 // What mime type was specified in the header for this data? 67 // What mime type was specified in the header for this data?
68 // Only makes senses for some types of contexts, and returns false 68 // Only makes senses for some types of contexts, and returns false
69 // when not applicable. 69 // when not applicable.
70 virtual bool GetMimeType(std::string* mime_type) const = 0; 70 virtual bool GetMimeType(std::string* mime_type) const = 0;
71 71
72 // What URL was used to access this data? 72 // What URL was used to access this data?
73 // Return false if gurl is not present. 73 // Return false if gurl is not present.
74 virtual bool GetURL(GURL* gurl) const = 0; 74 virtual bool GetURL(GURL* gurl) const = 0;
75 75
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 // Context data from the owner of this filter. Some filters need additional 260 // Context data from the owner of this filter. Some filters need additional
261 // context information (mime type, etc.) to properly function, and they access 261 // context information (mime type, etc.) to properly function, and they access
262 // this data via this reference member. 262 // this data via this reference member.
263 const FilterContext& filter_context_; 263 const FilterContext& filter_context_;
264 264
265 DISALLOW_COPY_AND_ASSIGN(Filter); 265 DISALLOW_COPY_AND_ASSIGN(Filter);
266 }; 266 };
267 267
268 #endif // NET_BASE_FILTER_H__ 268 #endif // NET_BASE_FILTER_H__
OLDNEW
« base/tracked.h ('K') | « chrome/chrome_browser.gypi ('k') | net/base/filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698