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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "net/base/sdch_manager.h" | 15 #include "net/base/sdch_manager.h" |
16 #include "net/filter/filter.h" | 16 #include "net/filter/filter.h" |
17 #include "net/log/net_log.h" | 17 #include "net/log/net_log_with_source.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 class URLRequestContext; | 22 class URLRequestContext; |
23 | 23 |
24 class MockFilterContext : public FilterContext { | 24 class MockFilterContext : public FilterContext { |
25 public: | 25 public: |
26 MockFilterContext(); | 26 MockFilterContext(); |
27 ~MockFilterContext() override; | 27 ~MockFilterContext() override; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 int response_code_; | 80 int response_code_; |
81 std::unique_ptr<URLRequestContext> context_; | 81 std::unique_ptr<URLRequestContext> context_; |
82 NetLogWithSource net_log_; | 82 NetLogWithSource net_log_; |
83 | 83 |
84 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); | 84 DISALLOW_COPY_AND_ASSIGN(MockFilterContext); |
85 }; | 85 }; |
86 | 86 |
87 } // namespace net | 87 } // namespace net |
88 | 88 |
89 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ | 89 #endif // NET_FILTER_MOCK_FILTER_CONTEXT_H_ |
OLD | NEW |