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

Side by Side Diff: net/http/http_basic_stream.cc

Issue 15829004: Update net/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: license twerk Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/http/http_cache.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "net/http/http_basic_stream.h" 5 #include "net/http/http_basic_stream.h"
6 6
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "net/base/io_buffer.h" 8 #include "net/base/io_buffer.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 #include "net/http/http_request_headers.h" 10 #include "net/http/http_request_headers.h"
(...skipping 17 matching lines...) Expand all
28 28
29 HttpBasicStream::~HttpBasicStream() {} 29 HttpBasicStream::~HttpBasicStream() {}
30 30
31 int HttpBasicStream::InitializeStream( 31 int HttpBasicStream::InitializeStream(
32 const HttpRequestInfo* request_info, 32 const HttpRequestInfo* request_info,
33 RequestPriority priority, 33 RequestPriority priority,
34 const BoundNetLog& net_log, 34 const BoundNetLog& net_log,
35 const CompletionCallback& callback) { 35 const CompletionCallback& callback) {
36 DCHECK(!parser_.get()); 36 DCHECK(!parser_.get());
37 request_info_ = request_info; 37 request_info_ = request_info;
38 parser_.reset(new HttpStreamParser(connection_.get(), request_info, 38 parser_.reset(new HttpStreamParser(
39 read_buf_, net_log)); 39 connection_.get(), request_info, read_buf_.get(), net_log));
40 return OK; 40 return OK;
41 } 41 }
42 42
43 43
44 int HttpBasicStream::SendRequest(const HttpRequestHeaders& headers, 44 int HttpBasicStream::SendRequest(const HttpRequestHeaders& headers,
45 HttpResponseInfo* response, 45 HttpResponseInfo* response,
46 const CompletionCallback& callback) { 46 const CompletionCallback& callback) {
47 DCHECK(parser_.get()); 47 DCHECK(parser_.get());
48 DCHECK(request_info_); 48 DCHECK(request_info_);
49 const std::string path = using_proxy_ ? 49 const std::string path = using_proxy_ ?
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return false; 121 return false;
122 } 122 }
123 123
124 void HttpBasicStream::Drain(HttpNetworkSession* session) { 124 void HttpBasicStream::Drain(HttpNetworkSession* session) {
125 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this); 125 HttpResponseBodyDrainer* drainer = new HttpResponseBodyDrainer(this);
126 drainer->Start(session); 126 drainer->Start(session);
127 // |drainer| will delete itself. 127 // |drainer| will delete itself.
128 } 128 }
129 129
130 } // namespace net 130 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_auth_controller.cc ('k') | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698