OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
13 #include "net/base/completion_callback.h" | 13 #include "net/base/completion_callback.h" |
14 #include "net/base/ip_endpoint.h" | 14 #include "net/base/ip_endpoint.h" |
15 #include "net/base/net_log.h" | 15 #include "net/base/net_log.h" |
16 #include "net/socket/client_socket.h" | 16 #include "net/socket/stream_socket.h" |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 class BoundNetLog; | 20 class BoundNetLog; |
21 | 21 |
22 class UDPSocketLibevent : public base::NonThreadSafe { | 22 class UDPSocketLibevent : public base::NonThreadSafe { |
23 public: | 23 public: |
24 UDPSocketLibevent(net::NetLog* net_log, | 24 UDPSocketLibevent(net::NetLog* net_log, |
25 const net::NetLog::Source& source); | 25 const net::NetLog::Source& source); |
26 virtual ~UDPSocketLibevent(); | 26 virtual ~UDPSocketLibevent(); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 CompletionCallback* write_callback_; | 185 CompletionCallback* write_callback_; |
186 | 186 |
187 BoundNetLog net_log_; | 187 BoundNetLog net_log_; |
188 | 188 |
189 DISALLOW_COPY_AND_ASSIGN(UDPSocketLibevent); | 189 DISALLOW_COPY_AND_ASSIGN(UDPSocketLibevent); |
190 }; | 190 }; |
191 | 191 |
192 } // namespace net | 192 } // namespace net |
193 | 193 |
194 #endif // NET_UDP_UDP_SOCKET_LIBEVENT_H_ | 194 #endif // NET_UDP_UDP_SOCKET_LIBEVENT_H_ |
OLD | NEW |