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

Side by Side Diff: net/quic/chromium/quic_chromium_packet_writer.h

Issue 2508593002: net: move udp directory into socket (Closed)
Patch Set: revert sys/socket.h change Created 4 years, 1 month 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
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_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/base/net_export.h" 14 #include "net/base/net_export.h"
15 #include "net/quic/core/quic_connection.h" 15 #include "net/quic/core/quic_connection.h"
16 #include "net/quic/core/quic_packet_writer.h" 16 #include "net/quic/core/quic_packet_writer.h"
17 #include "net/quic/core/quic_protocol.h" 17 #include "net/quic/core/quic_protocol.h"
18 #include "net/quic/core/quic_types.h" 18 #include "net/quic/core/quic_types.h"
19 #include "net/udp/datagram_client_socket.h" 19 #include "net/socket/datagram_client_socket.h"
20 20
21 namespace net { 21 namespace net {
22 22
23 // Chrome specific packet writer which uses a datagram Socket for writing data. 23 // Chrome specific packet writer which uses a datagram Socket for writing data.
24 class NET_EXPORT_PRIVATE QuicChromiumPacketWriter : public QuicPacketWriter { 24 class NET_EXPORT_PRIVATE QuicChromiumPacketWriter : public QuicPacketWriter {
25 public: 25 public:
26 // Delegate interface which receives notifications on socket write events. 26 // Delegate interface which receives notifications on socket write events.
27 class NET_EXPORT_PRIVATE Delegate { 27 class NET_EXPORT_PRIVATE Delegate {
28 public: 28 public:
29 // Called when a socket write attempt results in a failure, so 29 // Called when a socket write attempt results in a failure, so
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 bool write_blocked_; 78 bool write_blocked_;
79 79
80 base::WeakPtrFactory<QuicChromiumPacketWriter> weak_factory_; 80 base::WeakPtrFactory<QuicChromiumPacketWriter> weak_factory_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(QuicChromiumPacketWriter); 82 DISALLOW_COPY_AND_ASSIGN(QuicChromiumPacketWriter);
83 }; 83 };
84 84
85 } // namespace net 85 } // namespace net
86 86
87 #endif // NET_QUIC_QUIC_CHROMIUM_PACKET_WRITER_H_ 87 #endif // NET_QUIC_QUIC_CHROMIUM_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_packet_reader.h ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698