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

Side by Side Diff: net/base/listen_socket.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/base/listen_socket.h ('k') | net/net.gyp » ('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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 // winsock2.h must be included first in order to ensure it is included before 8 // winsock2.h must be included first in order to ensure it is included before
9 // windows.h. 9 // windows.h.
10 #include <winsock2.h> 10 #include <winsock2.h>
11 #elif defined(OS_POSIX) 11 #elif defined(OS_POSIX)
12 #include <errno.h> 12 #include <errno.h>
13 #include <netinet/in.h> 13 #include <netinet/in.h>
14 #include <sys/socket.h> 14 #include <sys/socket.h>
15 #include <arpa/inet.h> 15 #include <arpa/inet.h>
16 #include "net/base/net_errors.h" 16 #include "net/base/net_errors.h"
17 #if defined(USE_SYSTEM_LIBEVENT)
18 #include <event.h>
19 #else
20 #include "third_party/libevent/event.h"
21 #endif
22 #endif 17 #endif
23 18
24 #include "base/eintr_wrapper.h" 19 #include "base/eintr_wrapper.h"
25 #include "base/threading/platform_thread.h" 20 #include "base/threading/platform_thread.h"
26 #include "net/base/net_util.h" 21 #include "net/base/net_util.h"
27 #include "net/base/listen_socket.h" 22 #include "net/base/listen_socket.h"
28 23
29 #if defined(OS_WIN) 24 #if defined(OS_WIN)
30 typedef int socklen_t; 25 typedef int socklen_t;
31 #endif // defined(OS_WIN) 26 #endif // defined(OS_WIN)
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 } 314 }
320 } 315 }
321 316
322 void ListenSocket::OnFileCanWriteWithoutBlocking(int fd) { 317 void ListenSocket::OnFileCanWriteWithoutBlocking(int fd) {
323 // MessagePumpLibevent callback, we don't listen for write events 318 // MessagePumpLibevent callback, we don't listen for write events
324 // so we shouldn't ever reach here. 319 // so we shouldn't ever reach here.
325 NOTREACHED(); 320 NOTREACHED();
326 } 321 }
327 322
328 #endif 323 #endif
OLDNEW
« no previous file with comments | « net/base/listen_socket.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698