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

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

Issue 2149323003: Change the way that gzipped resources are loaded from resources.pak (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 4 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
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | net/filter/gzip_header.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // 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 // std::unique_ptr<Filter> filter = Filter::Factory(filter_type, size); 9 // std::unique_ptr<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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // The following method forces the context to emit a specific set of 127 // The following method forces the context to emit a specific set of
128 // statistics as selected by the argument. 128 // statistics as selected by the argument.
129 virtual void RecordPacketStats(StatisticSelector statistic) const = 0; 129 virtual void RecordPacketStats(StatisticSelector statistic) const = 0;
130 130
131 // The BoundNetLog of the associated request. 131 // The BoundNetLog of the associated request.
132 virtual const BoundNetLog& GetNetLog() const = 0; 132 virtual const BoundNetLog& GetNetLog() const = 0;
133 }; 133 };
134 134
135 //------------------------------------------------------------------------------ 135 //------------------------------------------------------------------------------
136 class NET_EXPORT_PRIVATE Filter { 136 class NET_EXPORT Filter {
137 public: 137 public:
138 // Return values of function ReadFilteredData. 138 // Return values of function ReadFilteredData.
139 enum FilterStatus { 139 enum FilterStatus {
140 // Read filtered data successfully 140 // Read filtered data successfully
141 FILTER_OK, 141 FILTER_OK,
142 // Read filtered data successfully, and the data in the buffer has been 142 // Read filtered data successfully, and the data in the buffer has been
143 // consumed by the filter, but more data is needed in order to continue 143 // consumed by the filter, but more data is needed in order to continue
144 // filtering. At this point, the caller is free to reuse the filter 144 // filtering. At this point, the caller is free to reuse the filter
145 // buffer to provide more data. 145 // buffer to provide more data.
146 FILTER_NEED_MORE_DATA, 146 FILTER_NEED_MORE_DATA,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // The filter type this filter was constructed from. 323 // The filter type this filter was constructed from.
324 FilterType type_id_; 324 FilterType type_id_;
325 325
326 DISALLOW_COPY_AND_ASSIGN(Filter); 326 DISALLOW_COPY_AND_ASSIGN(Filter);
327 }; 327 };
328 328
329 } // namespace net 329 } // namespace net
330 330
331 #endif // NET_FILTER_FILTER_H__ 331 #endif // NET_FILTER_FILTER_H__
OLDNEW
« no previous file with comments | « content/public/test/browser_test_utils.cc ('k') | net/filter/gzip_header.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698