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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months 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
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « net/dns/dns_transaction.cc ('k') | net/http/http_server_properties_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698