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

Issue 1670283002: add sendRequest to VMIsolateRef

Created:
4 years, 10 months ago by yjbanov
Modified:
4 years, 10 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org
Base URL:
git@github.com:yjbanov/vm_service_client.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

add sendRequest to VMIsolateRef BUG=2

Patch Set 1 #

Patch Set 2 : rename to invokeExtension; enforce ext. prefix #

Total comments: 13

Patch Set 3 : more semantic ArgumentError; test params #

Total comments: 2

Patch Set 4 : onServiceExtensionAdded; Future<Object> #

Total comments: 6

Patch Set 5 : unwrap VMServiceExtension; add extensionRPCs #

Patch Set 6 : onExtensionEvent, selectExtensionEvents, waitForExtension #

Patch Set 7 : dartdocs #

Total comments: 27

Patch Set 8 : address review comments #

Patch Set 9 : address comments 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -3 lines) Patch
M lib/src/isolate.dart View 1 2 3 4 5 6 7 8 chunks +82 lines, -1 line 0 comments Download
M lib/src/scope.dart View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M lib/src/stream_manager.dart View 1 2 3 4 5 4 chunks +9 lines, -0 lines 0 comments Download
M test/isolate_test.dart View 1 2 3 4 5 6 7 8 4 chunks +172 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (2 generated)
nweiz
4 years, 10 months ago (2016-02-05 20:21:22 UTC) #3
nweiz
I was thinking of something more specifically targeted to service extensions in particular. I'm not ...
4 years, 10 months ago (2016-02-08 23:21:27 UTC) #4
yjbanov
On 2016/02/08 23:21:27, nweiz wrote: > I was thinking of something more specifically targeted to ...
4 years, 10 months ago (2016-02-09 02:24:43 UTC) #5
nweiz
On 2016/02/09 02:24:43, yjbanov wrote: > On 2016/02/08 23:21:27, nweiz wrote: > > I was ...
4 years, 10 months ago (2016-02-09 19:25:24 UTC) #6
yjbanov
> I'd like to name the method to invoke them something like `invokeExtension()`. Done. > ...
4 years, 10 months ago (2016-02-10 19:02:22 UTC) #7
nweiz
https://codereview.chromium.org/1670283002/diff/20001/lib/src/isolate.dart File lib/src/isolate.dart (right): https://codereview.chromium.org/1670283002/diff/20001/lib/src/isolate.dart#newcode271 lib/src/isolate.dart:271: /// isolate and it must begin with prefix "ext.". ...
4 years, 10 months ago (2016-02-10 21:28:28 UTC) #8
nweiz
> Ah, yes. This list can change dynamically so I'm not sure a snapshot would ...
4 years, 10 months ago (2016-02-10 21:32:38 UTC) #9
yjbanov
https://codereview.chromium.org/1670283002/diff/20001/lib/src/isolate.dart File lib/src/isolate.dart (right): https://codereview.chromium.org/1670283002/diff/20001/lib/src/isolate.dart#newcode271 lib/src/isolate.dart:271: /// isolate and it must begin with prefix "ext.". ...
4 years, 10 months ago (2016-02-10 22:06:07 UTC) #10
yjbanov
> I don't want to add a dependency on observe—I don't want to require either ...
4 years, 10 months ago (2016-02-10 22:13:36 UTC) #11
nweiz
> Actually, ServiceExtensionAdded is a built-in event > delievered through on StreamManager.isolate, similar to > ...
4 years, 10 months ago (2016-02-10 22:17:11 UTC) #12
yjbanov
> > Should I add VMIsolateRef.onServiceExtensionAdded? > > Yeah, that would be awesome. Gave it ...
4 years, 10 months ago (2016-02-10 23:05:54 UTC) #13
yjbanov
https://codereview.chromium.org/1670283002/diff/40001/test/isolate_test.dart File test/isolate_test.dart (right): https://codereview.chromium.org/1670283002/diff/40001/test/isolate_test.dart#newcode410 test/isolate_test.dart:410: Map response = await isolate.invokeExtension('ext.params', { On 2016/02/10 22:17:11, ...
4 years, 10 months ago (2016-02-10 23:06:37 UTC) #14
nweiz
https://codereview.chromium.org/1670283002/diff/60001/lib/src/extension.dart File lib/src/extension.dart (right): https://codereview.chromium.org/1670283002/diff/60001/lib/src/extension.dart#newcode16 lib/src/extension.dart:16: class VMServiceExtension { Since Isolate.extensionRPCs is a set of ...
4 years, 10 months ago (2016-02-16 22:03:20 UTC) #15
yjbanov
https://codereview.chromium.org/1670283002/diff/60001/lib/src/extension.dart File lib/src/extension.dart (right): https://codereview.chromium.org/1670283002/diff/60001/lib/src/extension.dart#newcode16 lib/src/extension.dart:16: class VMServiceExtension { On 2016/02/16 22:03:20, nweiz wrote: > ...
4 years, 10 months ago (2016-02-16 22:31:49 UTC) #16
nweiz
https://codereview.chromium.org/1670283002/diff/120001/lib/src/isolate.dart File lib/src/isolate.dart (right): https://codereview.chromium.org/1670283002/diff/120001/lib/src/isolate.dart#newcode83 lib/src/isolate.dart:83: transform(_onExtensionEvent, new _VMExtensionEventSelector(kind, prefix)); I'd rather this just be ...
4 years, 10 months ago (2016-02-17 21:35:41 UTC) #17
yjbanov
PTAL https://codereview.chromium.org/1670283002/diff/120001/lib/src/isolate.dart File lib/src/isolate.dart (right): https://codereview.chromium.org/1670283002/diff/120001/lib/src/isolate.dart#newcode83 lib/src/isolate.dart:83: transform(_onExtensionEvent, new _VMExtensionEventSelector(kind, prefix)); On 2016/02/17 21:35:41, nweiz ...
4 years, 10 months ago (2016-02-17 23:51:44 UTC) #18
nweiz
https://codereview.chromium.org/1670283002/diff/120001/test/isolate_test.dart File test/isolate_test.dart (right): https://codereview.chromium.org/1670283002/diff/120001/test/isolate_test.dart#newcode193 test/isolate_test.dart:193: var event = await isolate.onExtensionEvent.first; On 2016/02/17 23:51:43, yjbanov ...
4 years, 10 months ago (2016-02-18 00:24:06 UTC) #19
yjbanov
PTAL https://codereview.chromium.org/1670283002/diff/120001/test/isolate_test.dart File test/isolate_test.dart (right): https://codereview.chromium.org/1670283002/diff/120001/test/isolate_test.dart#newcode193 test/isolate_test.dart:193: var event = await isolate.onExtensionEvent.first; > How does ...
4 years, 10 months ago (2016-02-18 01:00:22 UTC) #20
nweiz
LGTM! I'll merge this in. Thanks for the patch, and for all your hard work ...
4 years, 10 months ago (2016-02-18 01:09:39 UTC) #21
yjbanov
4 years, 10 months ago (2016-02-18 01:10:23 UTC) #22
On 2016/02/18 01:09:39, nweiz wrote:
> LGTM! I'll merge this in.
> 
> Thanks for the patch, and for all your hard work iterating on it!

\o/

Powered by Google App Engine
This is Rietveld 408576698