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

Side by Side Diff: net/quic/quic_reliable_client_stream.cc

Issue 12253020: Enhance net internals/net log output for QUIC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix use after free Created 7 years, 10 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/quic/quic_reliable_client_stream.h ('k') | net/quic/quic_reliable_client_stream_test.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/quic/quic_reliable_client_stream.h" 5 #include "net/quic/quic_reliable_client_stream.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/quic/quic_session.h" 8 #include "net/quic/quic_session.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 QuicReliableClientStream::QuicReliableClientStream(QuicStreamId id, 12 QuicReliableClientStream::QuicReliableClientStream(QuicStreamId id,
13 QuicSession* session) 13 QuicSession* session,
14 const BoundNetLog& net_log)
14 : ReliableQuicStream(id, session), 15 : ReliableQuicStream(id, session),
16 net_log_(net_log),
15 delegate_(NULL) { 17 delegate_(NULL) {
16 } 18 }
17 19
18 QuicReliableClientStream::~QuicReliableClientStream() { 20 QuicReliableClientStream::~QuicReliableClientStream() {
19 if (delegate_) 21 if (delegate_)
20 delegate_->OnClose(error()); 22 delegate_->OnClose(error());
21 } 23 }
22 24
23 uint32 QuicReliableClientStream::ProcessData(const char* data, 25 uint32 QuicReliableClientStream::ProcessData(const char* data,
24 uint32 data_len) { 26 uint32 data_len) {
(...skipping 26 matching lines...) Expand all
51 53
52 void QuicReliableClientStream::OnError(int error) { 54 void QuicReliableClientStream::OnError(int error) {
53 if (delegate_) { 55 if (delegate_) {
54 QuicReliableClientStream::Delegate* delegate = delegate_; 56 QuicReliableClientStream::Delegate* delegate = delegate_;
55 delegate_ = NULL; 57 delegate_ = NULL;
56 delegate->OnError(error); 58 delegate->OnError(error);
57 } 59 }
58 } 60 }
59 61
60 } // namespace net 62 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_reliable_client_stream.h ('k') | net/quic/quic_reliable_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698