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

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 170943003: Allow for embedder provided service request handlers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/platform/json.cc ('k') | runtime/vm/json_stream.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "include/dart_api.h" 5 #include "include/dart_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "include/dart_native_api.h" 7 #include "include/dart_native_api.h"
8 8
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 4537 matching lines...) Expand 10 before | Expand all | Expand 10 after
4548 return Api::Success(); 4548 return Api::Success();
4549 } 4549 }
4550 4550
4551 4551
4552 // --- Service support --- 4552 // --- Service support ---
4553 4553
4554 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data) { 4554 DART_EXPORT Dart_Isolate Dart_GetServiceIsolate(void* callback_data) {
4555 return Api::CastIsolate(Service::GetServiceIsolate(callback_data)); 4555 return Api::CastIsolate(Service::GetServiceIsolate(callback_data));
4556 } 4556 }
4557 4557
4558
4559 DART_EXPORT bool Dart_IsServiceRunning() {
4560 return Service::IsRunning();
4561 }
4562
4563
4564 DART_EXPORT void Dart_RegisterIsolateServiceRequestCallback(
4565 const char* name,
4566 Dart_ServiceRequestCallback callback,
4567 void* user_data) {
4568 Service::RegisterIsolateEmbedderCallback(name, callback, user_data);
4569 }
4570
4571
4572 DART_EXPORT void Dart_RegisterRootServiceRequestCallback(
4573 const char* name,
4574 Dart_ServiceRequestCallback callback,
4575 void* user_data) {
4576 Service::RegisterRootEmbedderCallback(name, callback, user_data);
4577 }
4578
4558 } // namespace dart 4579 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/platform/json.cc ('k') | runtime/vm/json_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698