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

Unified Diff: net/base/sdch_filter.cc

Issue 40138: Use FilterContext to allow filters to access URLRequestJob data... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: net/base/sdch_filter.cc
===================================================================
--- net/base/sdch_filter.cc (revision 11030)
+++ net/base/sdch_filter.cc (working copy)
@@ -14,8 +14,9 @@
#include "sdch/open-vcdiff/src/google/vcdecoder.h"
-SdchFilter::SdchFilter()
- : decoding_status_(DECODING_UNINITIALIZED),
+SdchFilter::SdchFilter(const FilterContext& filter_context)
+ : Filter(filter_context),
+ decoding_status_(DECODING_UNINITIALIZED),
vcdiff_streaming_decoder_(NULL),
dictionary_hash_(),
dictionary_hash_is_plausible_(false),
@@ -182,7 +183,7 @@
// that is sufficiently unlikely that we ignore it.
if (std::string::npos == mime_type().find_first_of("text/html")) {
SdchManager::BlacklistDomainForever(url());
- if (was_cached_)
+ if (was_cached())
SdchManager::SdchErrorRecovery(
SdchManager::CACHED_META_REFRESH_UNSUPPORTED);
else
@@ -192,7 +193,7 @@
}
// HTML content means we can issue a meta-refresh, and get the content
// again, perhaps without SDCH (to be safe).
- if (was_cached_) {
+ if (was_cached()) {
// Cached content is probably a startup tab, so we'll just get fresh
// content and try again, without disabling sdch.
SdchManager::SdchErrorRecovery(

Powered by Google App Engine
This is Rietveld 408576698