OLD | NEW |
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_CHROMIUM_PACKET_WRITER_H_ | 5 #ifndef NET_QUIC_QUIC_CHROMIUM_PACKET_WRITER_H_ |
6 #define NET_QUIC_QUIC_CHROMIUM_PACKET_WRITER_H_ | 6 #define NET_QUIC_QUIC_CHROMIUM_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" |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "net/base/io_buffer.h" | 12 #include "net/base/io_buffer.h" |
13 #include "net/base/ip_endpoint.h" | 13 #include "net/base/ip_endpoint.h" |
14 #include "net/quic/quic_connection.h" | 14 #include "net/quic/core/quic_connection.h" |
15 #include "net/quic/quic_packet_writer.h" | 15 #include "net/quic/core/quic_packet_writer.h" |
16 #include "net/quic/quic_protocol.h" | 16 #include "net/quic/core/quic_protocol.h" |
17 #include "net/quic/quic_types.h" | 17 #include "net/quic/core/quic_types.h" |
18 #include "net/udp/datagram_client_socket.h" | 18 #include "net/udp/datagram_client_socket.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 // Chrome specific packet writer which uses a datagram Socket for writing data. | 22 // Chrome specific packet writer which uses a datagram Socket for writing data. |
23 class NET_EXPORT_PRIVATE QuicChromiumPacketWriter : public QuicPacketWriter { | 23 class NET_EXPORT_PRIVATE QuicChromiumPacketWriter : public QuicPacketWriter { |
24 public: | 24 public: |
25 // Interface which receives notifications on socket write errors. | 25 // Interface which receives notifications on socket write errors. |
26 class NET_EXPORT_PRIVATE WriteErrorObserver { | 26 class NET_EXPORT_PRIVATE WriteErrorObserver { |
27 public: | 27 public: |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 bool write_blocked_; | 70 bool write_blocked_; |
71 | 71 |
72 base::WeakPtrFactory<QuicChromiumPacketWriter> weak_factory_; | 72 base::WeakPtrFactory<QuicChromiumPacketWriter> weak_factory_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(QuicChromiumPacketWriter); | 74 DISALLOW_COPY_AND_ASSIGN(QuicChromiumPacketWriter); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace net | 77 } // namespace net |
78 | 78 |
79 #endif // NET_QUIC_QUIC_CHROMIUM_PACKET_WRITER_H_ | 79 #endif // NET_QUIC_QUIC_CHROMIUM_PACKET_WRITER_H_ |
OLD | NEW |