OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_DART_EMBEDDER_DART_CONTROLLER_H_ | 5 #ifndef MOJO_DART_EMBEDDER_DART_CONTROLLER_H_ |
6 #define MOJO_DART_EMBEDDER_DART_CONTROLLER_H_ | 6 #define MOJO_DART_EMBEDDER_DART_CONTROLLER_H_ |
7 | 7 |
8 #include <unordered_set> | 8 #include <unordered_set> |
9 | 9 |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 private: | 130 private: |
131 static void MessageNotifyCallback(Dart_Isolate dest_isolate); | 131 static void MessageNotifyCallback(Dart_Isolate dest_isolate); |
132 | 132 |
133 // Set the control handle in the isolate. | 133 // Set the control handle in the isolate. |
134 static Dart_Handle SetHandleWatcherControlHandle(); | 134 static Dart_Handle SetHandleWatcherControlHandle(); |
135 | 135 |
136 // Dart API callback(s). | 136 // Dart API callback(s). |
137 static Dart_Isolate IsolateCreateCallback(const char* script_uri, | 137 static Dart_Isolate IsolateCreateCallback(const char* script_uri, |
138 const char* main, | 138 const char* main, |
139 const char* package_root, | 139 const char* package_root, |
140 const char** package_map, | 140 const char* package_config, |
141 Dart_IsolateFlags* flags, | 141 Dart_IsolateFlags* flags, |
142 void* callback_data, | 142 void* callback_data, |
143 char** error); | 143 char** error); |
144 static void IsolateShutdownCallback(void* callback_data); | 144 static void IsolateShutdownCallback(void* callback_data); |
145 | 145 |
146 // Initialize per-isolate flags. | 146 // Initialize per-isolate flags. |
147 static void SetIsolateFlags(Dart_IsolateFlags* flags, | 147 static void SetIsolateFlags(Dart_IsolateFlags* flags, |
148 bool strict_compilation); | 148 bool strict_compilation); |
149 | 149 |
150 // Dart API callback helper(s). | 150 // Dart API callback helper(s). |
(...skipping 22 matching lines...) Expand all Loading... |
173 static bool observatory_enabled_; | 173 static bool observatory_enabled_; |
174 static bool service_isolate_running_; | 174 static bool service_isolate_running_; |
175 static bool service_isolate_spawned_; | 175 static bool service_isolate_spawned_; |
176 static DartControllerServiceConnector* service_connector_; | 176 static DartControllerServiceConnector* service_connector_; |
177 }; | 177 }; |
178 | 178 |
179 } // namespace dart | 179 } // namespace dart |
180 } // namespace mojo | 180 } // namespace mojo |
181 | 181 |
182 #endif // MOJO_DART_EMBEDDER_DART_CONTROLLER_H_ | 182 #endif // MOJO_DART_EMBEDDER_DART_CONTROLLER_H_ |
OLD | NEW |