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

Unified Diff: net/filter/mock_filter_context.h

Issue 1008873006: [net] Remove logic for fixing up Gzip encoding type for downloads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a basic test Created 5 years, 9 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
« no previous file with comments | « net/filter/filter_unittest.cc ('k') | net/filter/mock_filter_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/mock_filter_context.h
diff --git a/net/filter/mock_filter_context.h b/net/filter/mock_filter_context.h
index f66939da569a1d96e3b7d1a257059896c1e77f99..1a55eb595ea3291803b0552c5ded5e0ec8ffeadb 100644
--- a/net/filter/mock_filter_context.h
+++ b/net/filter/mock_filter_context.h
@@ -24,12 +24,8 @@ class MockFilterContext : public FilterContext {
void SetMimeType(const std::string& mime_type) { mime_type_ = mime_type; }
void SetURL(const GURL& gurl) { gurl_ = gurl; }
- void SetContentDisposition(const std::string& disposition) {
- content_disposition_ = disposition;
- }
void SetRequestTime(const base::Time time) { request_time_ = time; }
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(scoped_ptr<SdchManager::DictionarySet> handle) {
dictionaries_handle_ = handle.Pass();
@@ -49,19 +45,12 @@ class MockFilterContext : public FilterContext {
// Return false if gurl is not present.
bool GetURL(GURL* gurl) const override;
- // What Content-Disposition did the server supply for this data?
- // Return false if Content-Disposition was not present.
- bool GetContentDisposition(std::string* disposition) const override;
-
// What was this data requested from a server?
base::Time GetRequestTime() const override;
// Is data supplied from cache, or fresh across the net?
bool IsCachedContent() const override;
- // Is this a download?
- bool IsDownload() const override;
-
// Handle to dictionaries advertised.
SdchManager::DictionarySet* SdchDictionariesAdvertised() const override;
@@ -79,11 +68,9 @@ class MockFilterContext : public FilterContext {
private:
std::string mime_type_;
- std::string content_disposition_;
GURL gurl_;
base::Time request_time_;
bool is_cached_content_;
- bool is_download_;
scoped_ptr<SdchManager::DictionarySet> dictionaries_handle_;
bool ok_to_call_get_url_;
int response_code_;
« no previous file with comments | « net/filter/filter_unittest.cc ('k') | net/filter/mock_filter_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698