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

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

Issue 2830273002: [dart:io][windows] Implements RawSynchronousSocket (Closed)
Patch Set: Fix Linux build Created 3 years, 8 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 | « no previous file | runtime/bin/file_system_watcher_linux.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 Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_EVENTHANDLER_WIN_H_ 5 #ifndef RUNTIME_BIN_EVENTHANDLER_WIN_H_
6 #define RUNTIME_BIN_EVENTHANDLER_WIN_H_ 6 #define RUNTIME_BIN_EVENTHANDLER_WIN_H_
7 7
8 #if !defined(RUNTIME_BIN_EVENTHANDLER_H_) 8 #if !defined(RUNTIME_BIN_EVENTHANDLER_H_)
9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead. 9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead.
10 #endif 10 #endif
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 struct sockaddr* from_; // Pointer to source sockaddr storage. 150 struct sockaddr* from_; // Pointer to source sockaddr storage.
151 151
152 // Buffer for recv/send/AcceptEx. This must be at the end of the 152 // Buffer for recv/send/AcceptEx. This must be at the end of the
153 // object as the object is allocated larger than it's definition 153 // object as the object is allocated larger than it's definition
154 // indicate to extend this array. 154 // indicate to extend this array.
155 uint8_t buffer_data_[1]; 155 uint8_t buffer_data_[1];
156 156
157 DISALLOW_COPY_AND_ASSIGN(OverlappedBuffer); 157 DISALLOW_COPY_AND_ASSIGN(OverlappedBuffer);
158 }; 158 };
159 159
160
161 // Abstract super class for holding information on listen and connected 160 // Abstract super class for holding information on listen and connected
162 // sockets. 161 // sockets.
163 class Handle : public ReferenceCounted<Handle>, public DescriptorInfoBase { 162 class Handle : public ReferenceCounted<Handle>, public DescriptorInfoBase {
164 public: 163 public:
165 enum Type { 164 enum Type {
166 kFile, 165 kFile,
167 kStd, 166 kStd,
168 kDirectoryWatch, 167 kDirectoryWatch,
169 kClientSocket, 168 kClientSocket,
170 kListenSocket, 169 kListenSocket,
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 bool shutdown_; 574 bool shutdown_;
576 HANDLE completion_port_; 575 HANDLE completion_port_;
577 576
578 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation); 577 DISALLOW_COPY_AND_ASSIGN(EventHandlerImplementation);
579 }; 578 };
580 579
581 } // namespace bin 580 } // namespace bin
582 } // namespace dart 581 } // namespace dart
583 582
584 #endif // RUNTIME_BIN_EVENTHANDLER_WIN_H_ 583 #endif // RUNTIME_BIN_EVENTHANDLER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/file_system_watcher_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698