| 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" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 void OnIOComplete(int result); | 50 void OnIOComplete(int result); |
| 51 void OnTimerFired(); | 51 void OnTimerFired(); |
| 52 void Finish(int result); | 52 void Finish(int result); |
| 53 | 53 |
| 54 scoped_refptr<IOBuffer> read_buf_; | 54 scoped_refptr<IOBuffer> read_buf_; |
| 55 const scoped_ptr<HttpStream> stream_; | 55 const scoped_ptr<HttpStream> stream_; |
| 56 State next_state_; | 56 State next_state_; |
| 57 int total_read_; | 57 int total_read_; |
| 58 CompletionCallback user_callback_; | 58 CompletionCallback user_callback_; |
| 59 base::OneShotTimer<HttpResponseBodyDrainer> timer_; | 59 base::OneShotTimer timer_; |
| 60 HttpNetworkSession* session_; | 60 HttpNetworkSession* session_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(HttpResponseBodyDrainer); | 62 DISALLOW_COPY_AND_ASSIGN(HttpResponseBodyDrainer); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace net | 65 } // namespace net |
| 66 | 66 |
| 67 #endif // NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ | 67 #endif // NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ |
| OLD | NEW |