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

Side by Side Diff: net/quic/quic_default_packet_writer.h

Issue 127633002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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_connection_test.cc ('k') | net/quic/quic_default_packet_writer.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_ 5 #ifndef NET_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_
6 #define NET_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_ 6 #define NET_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
(...skipping 14 matching lines...) Expand all
25 explicit QuicDefaultPacketWriter(DatagramClientSocket* socket); 25 explicit QuicDefaultPacketWriter(DatagramClientSocket* socket);
26 virtual ~QuicDefaultPacketWriter(); 26 virtual ~QuicDefaultPacketWriter();
27 27
28 // QuicPacketWriter 28 // QuicPacketWriter
29 virtual WriteResult WritePacket( 29 virtual WriteResult WritePacket(
30 const char* buffer, size_t buf_len, 30 const char* buffer, size_t buf_len,
31 const net::IPAddressNumber& self_address, 31 const net::IPAddressNumber& self_address,
32 const net::IPEndPoint& peer_address, 32 const net::IPEndPoint& peer_address,
33 QuicBlockedWriterInterface* blocked_writer) OVERRIDE; 33 QuicBlockedWriterInterface* blocked_writer) OVERRIDE;
34 virtual bool IsWriteBlockedDataBuffered() const OVERRIDE; 34 virtual bool IsWriteBlockedDataBuffered() const OVERRIDE;
35 virtual bool IsWriteBlocked() const OVERRIDE;
36 virtual void SetWritable() OVERRIDE;
35 37
36 void OnWriteComplete(int rv); 38 void OnWriteComplete(int rv);
37 void SetConnection(QuicConnection* connection) { 39 void SetConnection(QuicConnection* connection) {
38 connection_ = connection; 40 connection_ = connection;
39 } 41 }
40 42
41 private: 43 private:
42 base::WeakPtrFactory<QuicDefaultPacketWriter> weak_factory_; 44 base::WeakPtrFactory<QuicDefaultPacketWriter> weak_factory_;
43 DatagramClientSocket* socket_; 45 DatagramClientSocket* socket_;
44 QuicConnection* connection_; 46 QuicConnection* connection_;
47 bool write_blocked_;
45 }; 48 };
46 49
47 } // namespace net 50 } // namespace net
48 51
49 #endif // NET_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_ 52 #endif // NET_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_default_packet_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698