OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NET_FILTER_MOCK_FILTER_CONTEXT_H_ | 5 #ifndef NET_FILTER_MOCK_FILTER_CONTEXT_H_ |
6 #define NET_FILTER_MOCK_FILTER_CONTEXT_H_ | 6 #define NET_FILTER_MOCK_FILTER_CONTEXT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int GetResponseCode() const override; | 71 int GetResponseCode() const override; |
72 | 72 |
73 // The URLRequestContext associated with the request. | 73 // The URLRequestContext associated with the request. |
74 const URLRequestContext* GetURLRequestContext() const override; | 74 const URLRequestContext* GetURLRequestContext() const override; |
75 | 75 |
76 void RecordPacketStats(StatisticSelector statistic) const override {} | 76 void RecordPacketStats(StatisticSelector statistic) const override {} |
77 | 77 |
78 const BoundNetLog& GetNetLog() const override; | 78 const BoundNetLog& GetNetLog() const override; |
79 | 79 |
80 private: | 80 private: |
81 int buffer_size_; | |
82 std::string mime_type_; | 81 std::string mime_type_; |
83 std::string content_disposition_; | 82 std::string content_disposition_; |
84 GURL gurl_; | 83 GURL gurl_; |
85 base::Time request_time_; | 84 base::Time request_time_; |
86 bool is_cached_content_; | 85 bool is_cached_content_; |
87 bool is_download_; | 86 bool is_download_; |
88 scoped_ptr<SdchManager::DictionarySet> dictionaries_handle_; | 87 scoped_ptr<SdchManager::DictionarySet> dictionaries_handle_; |
89 bool ok_to_call_get_url_; | 88 bool ok_to_call_get_url_; |
90 int response_code_; | 89 int response_code_; |
91 scoped_ptr<URLRequestContext> context_; | 90 scoped_ptr<URLRequestContext> context_; |
92 BoundNetLog net_log_; | 91 BoundNetLog net_log_; |
93 | 92 |
94 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); | 93 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); |
95 }; | 94 }; |
96 | 95 |
97 } // namespace net | 96 } // namespace net |
98 | 97 |
99 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ | 98 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ |
OLD | NEW |