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

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

Issue 198743002: Make the event-handler handle backpreasure. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Doc fix Created 6 years, 9 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 | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/eventhandler_win.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 BIN_EVENTHANDLER_WIN_H_ 5 #ifndef BIN_EVENTHANDLER_WIN_H_
6 #define BIN_EVENTHANDLER_WIN_H_ 6 #define BIN_EVENTHANDLER_WIN_H_
7 7
8 #if !defined(BIN_EVENTHANDLER_H_) 8 #if !defined(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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 virtual void DoClose(); 478 virtual void DoClose();
479 virtual bool IsClosed(); 479 virtual bool IsClosed();
480 }; 480 };
481 481
482 // Event handler. 482 // Event handler.
483 class EventHandlerImplementation { 483 class EventHandlerImplementation {
484 public: 484 public:
485 EventHandlerImplementation(); 485 EventHandlerImplementation();
486 virtual ~EventHandlerImplementation(); 486 virtual ~EventHandlerImplementation();
487 487
488 void Notify(intptr_t id, Dart_Port dart_port, int64_t data); 488 void SendData(intptr_t id, Dart_Port dart_port, int64_t data);
489 void Start(EventHandler* handler); 489 void Start(EventHandler* handler);
490 void Shutdown(); 490 void Shutdown();
491 491
492 static void EventHandlerEntry(uword args); 492 static void EventHandlerEntry(uword args);
493 493
494 int64_t GetTimeout(); 494 int64_t GetTimeout();
495 void HandleInterrupt(InterruptMessage* msg); 495 void HandleInterrupt(InterruptMessage* msg);
496 void HandleTimeout(); 496 void HandleTimeout();
497 void HandleAccept(ListenSocket* listen_socket, OverlappedBuffer* buffer); 497 void HandleAccept(ListenSocket* listen_socket, OverlappedBuffer* buffer);
498 void HandleClosed(Handle* handle); 498 void HandleClosed(Handle* handle);
(...skipping 13 matching lines...) Expand all
512 512
513 TimeoutQueue timeout_queue_; // Time for next timeout. 513 TimeoutQueue timeout_queue_; // Time for next timeout.
514 bool shutdown_; 514 bool shutdown_;
515 HANDLE completion_port_; 515 HANDLE completion_port_;
516 }; 516 };
517 517
518 } // namespace bin 518 } // namespace bin
519 } // namespace dart 519 } // namespace dart
520 520
521 #endif // BIN_EVENTHANDLER_WIN_H_ 521 #endif // BIN_EVENTHANDLER_WIN_H_
OLDNEW
« no previous file with comments | « runtime/bin/eventhandler_macos.cc ('k') | runtime/bin/eventhandler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698