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

Side by Side Diff: net/socket/tcp_server_socket_libevent.cc

Issue 7232002: net doesn't depend on libevent directly now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: No need to include message_pump_libevent.h Created 9 years, 6 months 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 | Annotate | Revision Log
« no previous file with comments | « net/socket/tcp_client_socket_libevent.cc ('k') | net/udp/udp_socket_libevent.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 (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 #include "net/socket/tcp_server_socket_libevent.h" 5 #include "net/socket/tcp_server_socket_libevent.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <fcntl.h> 8 #include <fcntl.h>
9 #include <netdb.h> 9 #include <netdb.h>
10 #include <sys/socket.h> 10 #include <sys/socket.h>
11 11
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 13
14 #if defined(OS_POSIX) 14 #if defined(OS_POSIX)
15 #include <netinet/in.h> 15 #include <netinet/in.h>
16 #endif 16 #endif
17 #if defined(USE_SYSTEM_LIBEVENT)
18 #include <event.h>
19 #else
20 #include "third_party/libevent/event.h"
21 #endif
22 17
23 #include "base/eintr_wrapper.h" 18 #include "base/eintr_wrapper.h"
24 #include "net/base/ip_endpoint.h" 19 #include "net/base/ip_endpoint.h"
25 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
26 #include "net/base/net_util.h" 21 #include "net/base/net_util.h"
27 #include "net/socket/tcp_client_socket.h" 22 #include "net/socket/tcp_client_socket.h"
28 23
29 namespace net { 24 namespace net {
30 25
31 namespace { 26 namespace {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 accept_socket_ = NULL; 188 accept_socket_ = NULL;
194 c->Run(result); 189 c->Run(result);
195 } 190 }
196 } 191 }
197 192
198 void TCPServerSocketLibevent::OnFileCanWriteWithoutBlocking(int fd) { 193 void TCPServerSocketLibevent::OnFileCanWriteWithoutBlocking(int fd) {
199 NOTREACHED(); 194 NOTREACHED();
200 } 195 }
201 196
202 } // namespace net 197 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/tcp_client_socket_libevent.cc ('k') | net/udp/udp_socket_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698