Searched refs:filter_context (Results 1 – 6 of 6) sorted by relevance
/external/chromium_org/net/filter/ |
D | filter_unittest.cc | 40 MockFilterContext filter_context; in TEST() local 41 filter_context.SetSdchResponse(false); in TEST() 52 filter_context.SetMimeType(kGzipMime1); in TEST() 53 Filter::FixupEncodingTypes(filter_context, &encoding_types); in TEST() 58 filter_context.SetMimeType(kGzipMime2); in TEST() 59 Filter::FixupEncodingTypes(filter_context, &encoding_types); in TEST() 64 filter_context.SetMimeType(kGzipMime3); in TEST() 65 Filter::FixupEncodingTypes(filter_context, &encoding_types); in TEST() 71 filter_context.SetMimeType(kGzipMime1); in TEST() 72 Filter::FixupEncodingTypes(filter_context, &encoding_types); in TEST() [all …]
|
D | sdch_filter_unittest.cc | 66 MockFilterContext* filter_context() { return filter_context_.get(); } in filter_context() function in net::SdchFilterTest 165 filter_context()->SetURL(GURL(url_string)); in TEST_F() 166 scoped_ptr<Filter> filter(Filter::Factory(filter_types, *filter_context())); in TEST_F() 184 filter_context()->SetResponseCode(200); in TEST_F() 186 filter_context()->SetURL(GURL(url_string)); in TEST_F() 187 scoped_ptr<Filter> filter(Filter::Factory(filter_types, *filter_context())); in TEST_F() 221 filter_context()->SetResponseCode(403); in TEST_F() 223 filter_context()->SetMimeType("text/html"); in TEST_F() 225 filter_context()->SetURL(GURL(url_string)); in TEST_F() 226 scoped_ptr<Filter> filter(Filter::Factory(filter_types, *filter_context())); in TEST_F() [all …]
|
D | filter.cc | 48 const FilterContext& filter_context) { in Factory() argument 54 filter_list = PrependNewFilter(filter_types[i], filter_context, in Factory() 69 const FilterContext& filter_context, in FactoryForTests() argument 76 filter_list = PrependNewFilter(filter_types[i], filter_context, in FactoryForTests() 158 const FilterContext& filter_context, in FixupEncodingTypes() argument 161 bool success = filter_context.GetMimeType(&mime_type); in FixupEncodingTypes() 177 success = filter_context.GetURL(&url); in FixupEncodingTypes() 179 filter_context.GetContentDisposition(&disposition); in FixupEncodingTypes() 184 if (filter_context.IsDownload()) { in FixupEncodingTypes() 209 if (!filter_context.IsSdchResponse()) { in FixupEncodingTypes() [all …]
|
D | filter.h | 157 const FilterContext& filter_context); 204 static void FixupEncodingTypes(const FilterContext& filter_context, 253 const FilterContext& filter_context, 261 const FilterContext& filter_context, 270 const FilterContext& filter_context,
|
D | sdch_filter.cc | 21 SdchFilter::SdchFilter(const FilterContext& filter_context) in SdchFilter() argument 22 : filter_context_(filter_context), in SdchFilter() 27 url_request_context_(filter_context.GetURLRequestContext()), in SdchFilter() 33 bool success = filter_context.GetMimeType(&mime_type_); in SdchFilter() 35 success = filter_context.GetURL(&url_); in SdchFilter()
|
D | sdch_filter.h | 58 explicit SdchFilter(const FilterContext& filter_context);
|