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

Unified Diff: net/filter/mock_filter_context.cc

Issue 711753003: Pin dictionaries from being deleted while request is outstanding. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated comments; fixed try job errors. Created 6 years, 1 month 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/filter/mock_filter_context.cc
diff --git a/net/filter/mock_filter_context.cc b/net/filter/mock_filter_context.cc
index e1e47939c4abdf1e34cee8c58a2b2229029f53a9..d172afef9f6be311d9085cda17480bdf106c9486 100644
--- a/net/filter/mock_filter_context.cc
+++ b/net/filter/mock_filter_context.cc
@@ -11,7 +11,6 @@ namespace net {
MockFilterContext::MockFilterContext()
: is_cached_content_(false),
is_download_(false),
- is_sdch_response_(false),
ok_to_call_get_url_(true),
response_code_(-1),
context_(new URLRequestContext()) {
@@ -54,8 +53,9 @@ bool MockFilterContext::IsCachedContent() const { return is_cached_content_; }
bool MockFilterContext::IsDownload() const { return is_download_; }
-bool MockFilterContext::SdchResponseExpected() const {
- return is_sdch_response_;
+SdchManager::DictionarySet*
+MockFilterContext::SdchDictionariesAdvertised() const {
+ return dictionaries_handle_.get();
}
int64 MockFilterContext::GetByteReadCount() const { return 0; }

Powered by Google App Engine
This is Rietveld 408576698