OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "net/base/load_timing_info.h" | 11 #include "net/base/load_timing_info.h" |
| 12 #include "net/base/net_export.h" |
12 #include "net/url_request/url_request.h" | 13 #include "net/url_request/url_request.h" |
13 #include "net/url_request/url_request_job.h" | 14 #include "net/url_request/url_request_job.h" |
14 #include "net/url_request/url_request_job_factory.h" | 15 #include "net/url_request/url_request_job_factory.h" |
15 | 16 |
16 namespace net { | 17 namespace net { |
17 | 18 |
18 // This job type is designed to help with simple unit tests. To use, you | 19 // This job type is designed to help with simple unit tests. To use, you |
19 // probably want to inherit from it to set up the state you want. Then install | 20 // probably want to inherit from it to set up the state you want. Then install |
20 // it as the protocol handler for the "test" scheme. | 21 // it as the protocol handler for the "test" scheme. |
21 // | 22 // |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 173 |
173 // Original size in bytes of the response headers before decoding. | 174 // Original size in bytes of the response headers before decoding. |
174 int response_headers_length_; | 175 int response_headers_length_; |
175 | 176 |
176 base::WeakPtrFactory<URLRequestTestJob> weak_factory_; | 177 base::WeakPtrFactory<URLRequestTestJob> weak_factory_; |
177 }; | 178 }; |
178 | 179 |
179 } // namespace net | 180 } // namespace net |
180 | 181 |
181 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ | 182 #endif // NET_URL_REQUEST_URL_REQUEST_TEST_JOB_H_ |
OLD | NEW |