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_URL_REQUEST_URL_REQUEST_HANGING_READ_JOB_H_ |
6 #define NET_URL_REQUEST_URL_REQUEST_HANGING_READ_JOB_H_ | 6 #define NET_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/base/net_export.h" | |
11 #include "net/url_request/url_request_job.h" | 10 #include "net/url_request/url_request_job.h" |
12 | 11 |
13 namespace net { | 12 namespace net { |
14 | 13 |
15 class URLRequest; | 14 class URLRequest; |
16 | 15 |
17 // A URLRequestJob that hangs when try to read response body. | 16 // A URLRequestJob that hangs when try to read response body. |
18 class URLRequestHangingReadJob : public URLRequestJob { | 17 class URLRequestHangingReadJob : public URLRequestJob { |
19 public: | 18 public: |
20 URLRequestHangingReadJob(URLRequest* request, | 19 URLRequestHangingReadJob(URLRequest* request, |
(...skipping 18 matching lines...) Expand all Loading... |
39 | 38 |
40 const int content_length_; | 39 const int content_length_; |
41 base::WeakPtrFactory<URLRequestHangingReadJob> weak_factory_; | 40 base::WeakPtrFactory<URLRequestHangingReadJob> weak_factory_; |
42 | 41 |
43 DISALLOW_COPY_AND_ASSIGN(URLRequestHangingReadJob); | 42 DISALLOW_COPY_AND_ASSIGN(URLRequestHangingReadJob); |
44 }; | 43 }; |
45 | 44 |
46 } // namespace net | 45 } // namespace net |
47 | 46 |
48 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ | 47 #endif // NET_URL_REQUEST_URL_REQUEST_SIMPLE_JOB_H_ |
OLD | NEW |