OLD | NEW |
1 // Copyright (c) 2011 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 // 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 18 matching lines...) Expand all Loading... |
29 #ifndef NET_BASE_FILTER_H__ | 29 #ifndef NET_BASE_FILTER_H__ |
30 #define NET_BASE_FILTER_H__ | 30 #define NET_BASE_FILTER_H__ |
31 | 31 |
32 #include <string> | 32 #include <string> |
33 #include <vector> | 33 #include <vector> |
34 | 34 |
35 #include "base/basictypes.h" | 35 #include "base/basictypes.h" |
36 #include "base/gtest_prod_util.h" | 36 #include "base/gtest_prod_util.h" |
37 #include "base/memory/ref_counted.h" | 37 #include "base/memory/ref_counted.h" |
38 #include "base/memory/scoped_ptr.h" | 38 #include "base/memory/scoped_ptr.h" |
39 #include "base/time.h" | 39 #include "base/time/time.h" |
40 #include "net/base/net_export.h" | 40 #include "net/base/net_export.h" |
41 | 41 |
42 class GURL; | 42 class GURL; |
43 | 43 |
44 namespace net { | 44 namespace net { |
45 | 45 |
46 class IOBuffer; | 46 class IOBuffer; |
47 | 47 |
48 //------------------------------------------------------------------------------ | 48 //------------------------------------------------------------------------------ |
49 // Define an interface class that allows access to contextual information | 49 // Define an interface class that allows access to contextual information |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 // Remember what status or local filter last returned so we can better handle | 267 // Remember what status or local filter last returned so we can better handle |
268 // chained filters. | 268 // chained filters. |
269 FilterStatus last_status_; | 269 FilterStatus last_status_; |
270 | 270 |
271 DISALLOW_COPY_AND_ASSIGN(Filter); | 271 DISALLOW_COPY_AND_ASSIGN(Filter); |
272 }; | 272 }; |
273 | 273 |
274 } // namespace net | 274 } // namespace net |
275 | 275 |
276 #endif // NET_BASE_FILTER_H__ | 276 #endif // NET_BASE_FILTER_H__ |
OLD | NEW |