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

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

Issue 506523002: net : Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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/quic/quic_per_connection_packet_writer.h ('k') | net/quic/quic_server_packet_writer.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_per_connection_packet_writer.h" 5 #include "net/quic/quic_per_connection_packet_writer.h"
6 6
7 #include "net/quic/quic_server_packet_writer.h" 7 #include "net/quic/quic_server_packet_writer.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter( 11 QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
12 QuicServerPacketWriter* shared_writer, 12 QuicServerPacketWriter* shared_writer,
13 QuicConnection* connection) 13 QuicConnection* connection)
14 : weak_factory_(this), 14 : shared_writer_(shared_writer),
15 shared_writer_(shared_writer), 15 connection_(connection),
16 connection_(connection) { 16 weak_factory_(this){
17 } 17 }
18 18
19 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() { 19 QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
20 } 20 }
21 21
22 QuicPacketWriter* QuicPerConnectionPacketWriter::shared_writer() const { 22 QuicPacketWriter* QuicPerConnectionPacketWriter::shared_writer() const {
23 return shared_writer_; 23 return shared_writer_;
24 } 24 }
25 25
26 WriteResult QuicPerConnectionPacketWriter::WritePacket( 26 WriteResult QuicPerConnectionPacketWriter::WritePacket(
(...skipping 22 matching lines...) Expand all
49 shared_writer_->SetWritable(); 49 shared_writer_->SetWritable();
50 } 50 }
51 51
52 void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) { 52 void QuicPerConnectionPacketWriter::OnWriteComplete(WriteResult result) {
53 if (result.status == WRITE_STATUS_ERROR) { 53 if (result.status == WRITE_STATUS_ERROR) {
54 connection_->OnWriteError(result.error_code); 54 connection_->OnWriteError(result.error_code);
55 } 55 }
56 } 56 }
57 57
58 } // namespace net 58 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_per_connection_packet_writer.h ('k') | net/quic/quic_server_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698