OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_HANGING_READ_JOB_H_ | 5 #ifndef NET_TEST_URL_REQUEST_URL_REQUEST_HANGING_READ_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HANGING_READ_JOB_H_ | 6 #define NET_TEST_URL_REQUEST_URL_REQUEST_HANGING_READ_JOB_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "net/url_request/url_request_job.h" | 10 #include "net/url_request/url_request_job.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 class URLRequest; | 14 class URLRequest; |
15 | 15 |
16 // A URLRequestJob that hangs when try to read response body. | 16 // A URLRequestJob that hangs when try to read response body. |
(...skipping 20 matching lines...) Expand all Loading... |
37 void StartAsync(); | 37 void StartAsync(); |
38 | 38 |
39 const int content_length_; | 39 const int content_length_; |
40 base::WeakPtrFactory<URLRequestHangingReadJob> weak_factory_; | 40 base::WeakPtrFactory<URLRequestHangingReadJob> weak_factory_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(URLRequestHangingReadJob); | 42 DISALLOW_COPY_AND_ASSIGN(URLRequestHangingReadJob); |
43 }; | 43 }; |
44 | 44 |
45 } // namespace net | 45 } // namespace net |
46 | 46 |
47 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ | 47 #endif // NET_TEST_URL_REQUEST_URL_REQUEST_HANGING_READ_JOB_H_ |
OLD | NEW |