Index: net/filter/mock_filter_context.h |
diff --git a/net/filter/mock_filter_context.h b/net/filter/mock_filter_context.h |
index 41c9e9e1e21d4d228ed70185e75f5dd587729c36..776a2377cca17e9321e5a357ee9987558fe7be00 100644 |
--- a/net/filter/mock_filter_context.h |
+++ b/net/filter/mock_filter_context.h |
@@ -9,6 +9,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "net/base/net_log.h" |
+#include "net/base/sdch_manager.h" |
#include "net/filter/filter.h" |
#include "url/gurl.h" |
@@ -30,15 +31,15 @@ class MockFilterContext : public FilterContext { |
void SetCached(bool is_cached) { is_cached_content_ = is_cached; } |
void SetDownload(bool is_download) { is_download_ = is_download; } |
void SetResponseCode(int response_code) { response_code_ = response_code; } |
- void SetSdchResponse(bool is_sdch_response) { |
- is_sdch_response_ = is_sdch_response; |
+ void SetSdchResponse(scoped_ptr<SdchManager::DictionarySet> handle) { |
+ dictionaries_handle_ = handle.Pass(); |
} |
URLRequestContext* GetModifiableURLRequestContext() const { |
return context_.get(); |
} |
// After a URLRequest's destructor is called, some interfaces may become |
- // unstable. This method is used to signal that state, so we can tag use |
+ // unstable. This method is used to signal that state, so we can tag use |
// of those interfaces as coding errors. |
void NukeUnstableInterfaces(); |
@@ -61,8 +62,8 @@ class MockFilterContext : public FilterContext { |
// Is this a download? |
bool IsDownload() const override; |
- // Was this data flagged as a response to a request with an SDCH dictionary? |
- bool SdchResponseExpected() const override; |
+ // Handle to dictionaries advertised. |
+ SdchManager::DictionarySet* SdchDictionariesAdvertised() const override; |
// How many bytes were fed to filter(s) so far? |
int64 GetByteReadCount() const override; |
@@ -84,7 +85,7 @@ class MockFilterContext : public FilterContext { |
base::Time request_time_; |
bool is_cached_content_; |
bool is_download_; |
- bool is_sdch_response_; |
+ scoped_ptr<SdchManager::DictionarySet> dictionaries_handle_; |
bool ok_to_call_get_url_; |
int response_code_; |
scoped_ptr<URLRequestContext> context_; |