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

Side by Side Diff: base/sync_socket.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 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
« no previous file with comments | « base/supports_user_data.h ('k') | base/sync_socket_nacl.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) 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 BASE_SYNC_SOCKET_H_ 5 #ifndef BASE_SYNC_SOCKET_H_
6 #define BASE_SYNC_SOCKET_H_ 6 #define BASE_SYNC_SOCKET_H_
7 7
8 // A socket abstraction used for sending and receiving plain 8 // A socket abstraction used for sending and receiving plain
9 // data. Because the receiving is blocking, they can be used to perform 9 // data. Because the receiving is blocking, they can be used to perform
10 // rudimentary cross-process synchronization with low latency. 10 // rudimentary cross-process synchronization with low latency.
11 11
12 #include "base/basictypes.h" 12 #include <stddef.h>
13
14 #include "base/base_export.h"
15 #include "base/compiler_specific.h"
16 #include "base/macros.h"
17 #include "base/process/process_handle.h"
18 #include "base/synchronization/waitable_event.h"
19 #include "base/time/time.h"
20 #include "build/build_config.h"
21
13 #if defined(OS_WIN) 22 #if defined(OS_WIN)
14 #include <windows.h> 23 #include <windows.h>
15 #endif 24 #endif
16 #include <sys/types.h> 25 #include <sys/types.h>
17 26
18 #include "base/base_export.h"
19 #include "base/compiler_specific.h"
20 #include "base/process/process_handle.h"
21 #include "base/synchronization/waitable_event.h"
22 #include "base/time/time.h"
23
24 #if defined(OS_POSIX) 27 #if defined(OS_POSIX)
25 #include "base/file_descriptor_posix.h" 28 #include "base/file_descriptor_posix.h"
26 #endif 29 #endif
27 30
28 namespace base { 31 namespace base {
29 32
30 class BASE_EXPORT SyncSocket { 33 class BASE_EXPORT SyncSocket {
31 public: 34 public:
32 #if defined(OS_WIN) 35 #if defined(OS_WIN)
33 typedef HANDLE Handle; 36 typedef HANDLE Handle;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 149
147 #if defined(OS_WIN) && !defined(COMPONENT_BUILD) 150 #if defined(OS_WIN) && !defined(COMPONENT_BUILD)
148 // TODO(cpu): remove this once chrome is split in two dlls. 151 // TODO(cpu): remove this once chrome is split in two dlls.
149 __declspec(selectany) 152 __declspec(selectany)
150 const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE; 153 const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE;
151 #endif 154 #endif
152 155
153 } // namespace base 156 } // namespace base
154 157
155 #endif // BASE_SYNC_SOCKET_H_ 158 #endif // BASE_SYNC_SOCKET_H_
OLDNEW
« no previous file with comments | « base/supports_user_data.h ('k') | base/sync_socket_nacl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698