OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 #ifndef BIN_ISOLATE_DATA_H_ |
| 6 #define BIN_ISOLATE_DATA_H_ |
| 7 |
| 8 #include "platform/globals.h" |
| 9 |
| 10 // Forward declaration. |
| 11 class EventHandler; |
| 12 |
| 13 // Data associated with every isolate in the standalone VM |
| 14 // embedding. This is used to free external resources for each isolate |
| 15 // when the isolate shuts down. |
| 16 class IsolateData { |
| 17 public: |
| 18 IsolateData() : event_handler(NULL) {} |
| 19 |
| 20 EventHandler* event_handler; |
| 21 |
| 22 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(IsolateData); |
| 24 }; |
| 25 |
| 26 #endif // BIN_ISOLATE_DATA_H_ |
OLD | NEW |