| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UDP_UDP_SOCKET_LIBEVENT_H_ | 5 #ifndef NET_UDP_UDP_SOCKET_LIBEVENT_H_ |
| 6 #define NET_UDP_UDP_SOCKET_LIBEVENT_H_ | 6 #define NET_UDP_UDP_SOCKET_LIBEVENT_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
| 12 #include "net/base/address_family.h" | 12 #include "net/base/address_family.h" |
| 13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
| 14 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
| 15 #include "net/base/ip_endpoint.h" | 15 #include "net/base/ip_endpoint.h" |
| 16 #include "net/base/net_export.h" | 16 #include "net/base/net_export.h" |
| 17 #include "net/base/net_util.h" |
| 17 #include "net/base/rand_callback.h" | 18 #include "net/base/rand_callback.h" |
| 18 #include "net/log/net_log.h" | 19 #include "net/log/net_log.h" |
| 19 #include "net/socket/socket_descriptor.h" | 20 #include "net/socket/socket_descriptor.h" |
| 20 #include "net/udp/datagram_socket.h" | 21 #include "net/udp/datagram_socket.h" |
| 21 | 22 |
| 22 namespace net { | 23 namespace net { |
| 23 | 24 |
| 24 class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe { | 25 class NET_EXPORT UDPSocketLibevent : public base::NonThreadSafe { |
| 25 public: | 26 public: |
| 26 UDPSocketLibevent(DatagramSocket::BindType bind_type, | 27 UDPSocketLibevent(DatagramSocket::BindType bind_type, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 CompletionCallback write_callback_; | 299 CompletionCallback write_callback_; |
| 299 | 300 |
| 300 BoundNetLog net_log_; | 301 BoundNetLog net_log_; |
| 301 | 302 |
| 302 DISALLOW_COPY_AND_ASSIGN(UDPSocketLibevent); | 303 DISALLOW_COPY_AND_ASSIGN(UDPSocketLibevent); |
| 303 }; | 304 }; |
| 304 | 305 |
| 305 } // namespace net | 306 } // namespace net |
| 306 | 307 |
| 307 #endif // NET_UDP_UDP_SOCKET_LIBEVENT_H_ | 308 #endif // NET_UDP_UDP_SOCKET_LIBEVENT_H_ |
| OLD | NEW |