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

Unified Diff: net/filter/filter.h

Issue 737943002: Update from https://crrev.com/304715 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/sdch_problem_code_list.h ('k') | net/filter/filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/filter.h
diff --git a/net/filter/filter.h b/net/filter/filter.h
index 13489ef02823b054e38eba6cfe0eb3569055f336..cec8398a6a3afaca29158e7b54ae14af937afd72 100644
--- a/net/filter/filter.h
+++ b/net/filter/filter.h
@@ -225,12 +225,15 @@ class NET_EXPORT_PRIVATE Filter {
static void FixupEncodingTypes(const FilterContext& filter_context,
std::vector<FilterType>* encoding_types);
+ // Returns a string describing the FilterTypes implemented by this filter.
+ std::string OrderedFilterList() const;
+
protected:
friend class GZipUnitTest;
friend class SdchFilterChainingTest;
FRIEND_TEST_ALL_PREFIXES(FilterTest, ThreeFilterChain);
- Filter();
+ explicit Filter(FilterType type_id);
// Filters the data stored in stream_buffer_ and writes the output into the
// dest_buffer passed in.
@@ -294,10 +297,14 @@ class NET_EXPORT_PRIVATE Filter {
// An optional filter to process output from this filter.
scoped_ptr<Filter> next_filter_;
+
// Remember what status or local filter last returned so we can better handle
// chained filters.
FilterStatus last_status_;
+ // The filter type this filter was constructed from.
+ FilterType type_id_;
+
DISALLOW_COPY_AND_ASSIGN(Filter);
};
« no previous file with comments | « net/base/sdch_problem_code_list.h ('k') | net/filter/filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698