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

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

Issue 2760293002: [dart:io] Adds a finalizer to _NativeSocket to avoid socket leaks (Closed)
Patch Set: Address comments 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 | « runtime/bin/error_exit.cc ('k') | runtime/bin/eventhandler.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_H_ 5 #ifndef RUNTIME_BIN_EVENTHANDLER_H_
6 #define RUNTIME_BIN_EVENTHANDLER_H_ 6 #define RUNTIME_BIN_EVENTHANDLER_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/dartutils.h" 9 #include "bin/dartutils.h"
10 #include "bin/isolate_data.h" 10 #include "bin/isolate_data.h"
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 static void Start(); 640 static void Start();
641 641
642 /** 642 /**
643 * Stop the event-handler. It's expected that there will be no further calls 643 * Stop the event-handler. It's expected that there will be no further calls
644 * to SendData after a call to Stop. 644 * to SendData after a call to Stop.
645 */ 645 */
646 static void Stop(); 646 static void Stop();
647 647
648 static EventHandlerImplementation* delegate(); 648 static EventHandlerImplementation* delegate();
649 649
650 static void SendFromNative(intptr_t id, Dart_Port port, int64_t data);
651
650 private: 652 private:
651 friend class EventHandlerImplementation; 653 friend class EventHandlerImplementation;
652 EventHandlerImplementation delegate_; 654 EventHandlerImplementation delegate_;
653 655
654 DISALLOW_COPY_AND_ASSIGN(EventHandler); 656 DISALLOW_COPY_AND_ASSIGN(EventHandler);
655 }; 657 };
656 658
657 } // namespace bin 659 } // namespace bin
658 } // namespace dart 660 } // namespace dart
659 661
660 #endif // RUNTIME_BIN_EVENTHANDLER_H_ 662 #endif // RUNTIME_BIN_EVENTHANDLER_H_
OLDNEW
« no previous file with comments | « runtime/bin/error_exit.cc ('k') | runtime/bin/eventhandler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698