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

Side by Side Diff: net/spdy/spdy_http_stream.cc

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 5 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/socket_stream/socket_stream_job.h ('k') | net/spdy/spdy_http_stream_unittest.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/spdy/spdy_http_stream.h" 5 #include "net/spdy/spdy_http_stream.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 21 matching lines...) Expand all
32 closed_stream_status_(ERR_FAILED), 32 closed_stream_status_(ERR_FAILED),
33 closed_stream_id_(0), 33 closed_stream_id_(0),
34 request_info_(NULL), 34 request_info_(NULL),
35 response_info_(NULL), 35 response_info_(NULL),
36 response_headers_status_(RESPONSE_HEADERS_ARE_INCOMPLETE), 36 response_headers_status_(RESPONSE_HEADERS_ARE_INCOMPLETE),
37 user_buffer_len_(0), 37 user_buffer_len_(0),
38 request_body_buf_size_(0), 38 request_body_buf_size_(0),
39 buffered_read_callback_pending_(false), 39 buffered_read_callback_pending_(false),
40 more_read_data_pending_(false), 40 more_read_data_pending_(false),
41 direct_(direct) { 41 direct_(direct) {
42 DCHECK(spdy_session_); 42 DCHECK(spdy_session_.get());
43 } 43 }
44 44
45 SpdyHttpStream::~SpdyHttpStream() { 45 SpdyHttpStream::~SpdyHttpStream() {
46 if (stream_.get()) { 46 if (stream_.get()) {
47 stream_->DetachDelegate(); 47 stream_->DetachDelegate();
48 DCHECK(!stream_.get()); 48 DCHECK(!stream_.get());
49 } 49 }
50 } 50 }
51 51
52 int SpdyHttpStream::InitializeStream(const HttpRequestInfo* request_info, 52 int SpdyHttpStream::InitializeStream(const HttpRequestInfo* request_info,
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 bool SpdyHttpStream::IsSpdyHttpStream() const { 523 bool SpdyHttpStream::IsSpdyHttpStream() const {
524 return true; 524 return true;
525 } 525 }
526 526
527 void SpdyHttpStream::Drain(HttpNetworkSession* session) { 527 void SpdyHttpStream::Drain(HttpNetworkSession* session) {
528 Close(false); 528 Close(false);
529 delete this; 529 delete this;
530 } 530 }
531 531
532 } // namespace net 532 } // namespace net
OLDNEW
« no previous file with comments | « net/socket_stream/socket_stream_job.h ('k') | net/spdy/spdy_http_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698