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

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

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. Created 4 years 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/tools/quic/quic_client_bin.cc ('k') | net/tools/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_TOOLS_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_
6 #define NET_TOOLS_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_ 6 #define NET_TOOLS_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 const IPEndPoint& peer_address, 30 const IPEndPoint& peer_address,
31 PerPacketOptions* options) override; 31 PerPacketOptions* options) override;
32 bool IsWriteBlockedDataBuffered() const override; 32 bool IsWriteBlockedDataBuffered() const override;
33 bool IsWriteBlocked() const override; 33 bool IsWriteBlocked() const override;
34 void SetWritable() override; 34 void SetWritable() override;
35 QuicByteCount GetMaxPacketSize(const IPEndPoint& peer_address) const override; 35 QuicByteCount GetMaxPacketSize(const IPEndPoint& peer_address) const override;
36 36
37 void set_fd(int fd) { fd_ = fd; } 37 void set_fd(int fd) { fd_ = fd; }
38 38
39 protected: 39 protected:
40 void set_write_blocked(bool is_blocked) { write_blocked_ = is_blocked; } 40 virtual void set_write_blocked(bool is_blocked);
41 int fd() { return fd_; } 41 int fd() { return fd_; }
42 42
43 private: 43 private:
44 int fd_; 44 int fd_;
45 bool write_blocked_; 45 bool write_blocked_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(QuicDefaultPacketWriter); 47 DISALLOW_COPY_AND_ASSIGN(QuicDefaultPacketWriter);
48 }; 48 };
49 49
50 } // namespace net 50 } // namespace net
51 51
52 #endif // NET_TOOLS_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_ 52 #endif // NET_TOOLS_QUIC_QUIC_DEFAULT_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_bin.cc ('k') | net/tools/quic/quic_default_packet_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698