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

Side by Side Diff: runtime/bin/sync_socket.h

Issue 3009523002: [dart:io] Remove DART_IO_DISABLED (Closed)
Patch Set: Created 3 years, 3 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 | « runtime/bin/stdio_win.cc ('k') | runtime/bin/sync_socket.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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef RUNTIME_BIN_SYNC_SOCKET_H_ 5 #ifndef RUNTIME_BIN_SYNC_SOCKET_H_
6 #define RUNTIME_BIN_SYNC_SOCKET_H_ 6 #define RUNTIME_BIN_SYNC_SOCKET_H_
7 7
8 #if defined(DART_IO_DISABLED)
9 #error "sync_socket.h can only be included on builds with IO enabled"
10 #endif
11
12 #include "bin/socket_base.h" 8 #include "bin/socket_base.h"
13 #include "platform/globals.h" 9 #include "platform/globals.h"
14 10
15 namespace dart { 11 namespace dart {
16 namespace bin { 12 namespace bin {
17 13
18 class SynchronousSocket { 14 class SynchronousSocket {
19 public: 15 public:
20 explicit SynchronousSocket(intptr_t fd) : fd_(fd) {} 16 explicit SynchronousSocket(intptr_t fd) : fd_(fd) {}
21 ~SynchronousSocket() { ASSERT(fd_ == kClosedFd); } 17 ~SynchronousSocket() { ASSERT(fd_ == kClosedFd); }
(...skipping 25 matching lines...) Expand all
47 43
48 intptr_t fd_; 44 intptr_t fd_;
49 45
50 DISALLOW_COPY_AND_ASSIGN(SynchronousSocket); 46 DISALLOW_COPY_AND_ASSIGN(SynchronousSocket);
51 }; 47 };
52 48
53 } // namespace bin 49 } // namespace bin
54 } // namespace dart 50 } // namespace dart
55 51
56 #endif // RUNTIME_BIN_SYNC_SOCKET_H_ 52 #endif // RUNTIME_BIN_SYNC_SOCKET_H_
OLDNEW
« no previous file with comments | « runtime/bin/stdio_win.cc ('k') | runtime/bin/sync_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698