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

Unified Diff: lib/src/extension.dart

Issue 1670283002: add sendRequest to VMIsolateRef Base URL: git@github.com:yjbanov/vm_service_client.git@master
Patch Set: onServiceExtensionAdded; Future<Object> Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/isolate.dart » ('j') | lib/src/isolate.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/extension.dart
diff --git a/lib/src/extension.dart b/lib/src/extension.dart
new file mode 100644
index 0000000000000000000000000000000000000000..281fb7f31ae47c2e7bf5015baf45df64f6c22dbb
--- /dev/null
+++ b/lib/src/extension.dart
@@ -0,0 +1,21 @@
+// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'scope.dart';
+
+VMServiceExtension newVMServiceExtension(String method) {
+ assert(method != null);
+ return new VMServiceExtension._(method);
+}
+
+/// Represents a VM service extension registered in an isolate.
+///
+/// Extensions are registered using `registerExtension` from the
+/// `dart:developer` package.
+class VMServiceExtension {
nweiz 2016/02/16 22:03:20 Since Isolate.extensionRPCs is a set of strings, I
yjbanov 2016/02/16 22:31:49 Done.
+ /// RPC method name under which the extension is registered.
+ final String method;
+
+ VMServiceExtension._(this.method);
+}
« no previous file with comments | « no previous file | lib/src/isolate.dart » ('j') | lib/src/isolate.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698