Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: net/http/http_response_body_drainer.h

Issue 8990001: base::Bind: Convert most of net/http. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clang. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 void OnIOComplete(int result); 54 void OnIOComplete(int result);
55 void OnTimerFired(); 55 void OnTimerFired();
56 void Finish(int result); 56 void Finish(int result);
57 57
58 int read_size_; 58 int read_size_;
59 scoped_refptr<IOBuffer> read_buf_; 59 scoped_refptr<IOBuffer> read_buf_;
60 const scoped_ptr<HttpStream> stream_; 60 const scoped_ptr<HttpStream> stream_;
61 State next_state_; 61 State next_state_;
62 int total_read_; 62 int total_read_;
63 OldCompletionCallbackImpl<HttpResponseBodyDrainer> io_callback_; 63 CompletionCallback user_callback_;
64 OldCompletionCallback* user_callback_;
65 base::OneShotTimer<HttpResponseBodyDrainer> timer_; 64 base::OneShotTimer<HttpResponseBodyDrainer> timer_;
66 HttpNetworkSession* session_; 65 HttpNetworkSession* session_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(HttpResponseBodyDrainer); 67 DISALLOW_COPY_AND_ASSIGN(HttpResponseBodyDrainer);
69 }; 68 };
70 69
71 } // namespace net 70 } // namespace net
72 71
73 #endif // NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_ 72 #endif // NET_HTTP_HTTP_RESPONSE_BODY_DRAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698