OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ | 5 #ifndef NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ |
6 #define NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ | 6 #define NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/timer.h" | 11 #include "base/timer/timer.h" |
12 #include "net/base/completion_callback.h" | 12 #include "net/base/completion_callback.h" |
13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
14 #include "net/http/http_network_session.h" | 14 #include "net/http/http_network_session.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 | 17 |
18 class HttpStream; | 18 class HttpStream; |
19 class IOBuffer; | 19 class IOBuffer; |
20 | 20 |
21 class NET_EXPORT_PRIVATE HttpResponseBodyDrainer { | 21 class NET_EXPORT_PRIVATE HttpResponseBodyDrainer { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 CompletionCallback user_callback_; | 62 CompletionCallback user_callback_; |
63 base::OneShotTimer<HttpResponseBodyDrainer> timer_; | 63 base::OneShotTimer<HttpResponseBodyDrainer> timer_; |
64 HttpNetworkSession* session_; | 64 HttpNetworkSession* session_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(HttpResponseBodyDrainer); | 66 DISALLOW_COPY_AND_ASSIGN(HttpResponseBodyDrainer); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace net | 69 } // namespace net |
70 | 70 |
71 #endif // NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ | 71 #endif // NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ |
OLD | NEW |