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

Issue 835463003: Remove client relationship between sky::Inspector{Front,Back}end (Closed)

Created:
5 years, 11 months ago by jamesr
Modified:
5 years, 11 months ago
CC:
abarth-chromium, Aaron Boodman, ben+mojo_chromium.org, darin (slow to review), esprehn, mojo-reviews_chromium.org, ojan, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Remove client relationship between sky::Inspector{Front,Back}end This removes the client relationship between the sky::InspectorFrontend and sky::InspectorBackend mojo interfaces. Instead, the two are now unrelated (in the mojom) and just happen to be often used together. The inspector service provides the InspectorFrontend interface to connecting applications and optimistically tries to connect to the InspectorBackend interface of applications that connect, in case they want to receive messages. The front and back end interfaces are both broadcast APIs, so no attempt is made to keep track of which binding is which. If they did need to be correlated this could be easily accomplished by allocating a new object to keep a mojo::Binding<sky::InspectorFrontend> and the corresponding sky::InspectorBackendPtr. R=abarth@chromium.org, eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/f824c8fadce0427e1793fab63b618f44beb6c574

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : provide InspectorBackend impl from inspector.sky #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -25 lines) Patch
M mojo/common/weak_binding_set.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
A mojo/common/weak_interface_ptr_set.h View 1 1 chunk +88 lines, -0 lines 0 comments Download
M sky/engine/v8_inspector/inspector_backend_mojo.cc View 6 chunks +24 lines, -6 lines 0 comments Download
M sky/framework/inspector/inspector.sky View 1 2 4 chunks +11 lines, -10 lines 0 comments Download
M sky/services/inspector/inspector.mojom View 1 chunk +0 lines, -2 lines 0 comments Download
M sky/services/inspector/server.cc View 4 chunks +14 lines, -7 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
jamesr
I think this works but I can't successfully run the inspector to verify. If I ...
5 years, 11 months ago (2014-12-30 21:56:08 UTC) #1
abarth-chromium
lgtm https://codereview.chromium.org/835463003/diff/1/mojo/common/weak_interface_ptr_set.h File mojo/common/weak_interface_ptr_set.h (right): https://codereview.chromium.org/835463003/diff/1/mojo/common/weak_interface_ptr_set.h#newcode4 mojo/common/weak_interface_ptr_set.h:4: Don't we need a #define guard?
5 years, 11 months ago (2014-12-31 06:36:29 UTC) #3
jamesr
Thanks, added. Eric told me how to get the 'inspect' command in skydb working locally ...
5 years, 11 months ago (2015-01-05 21:57:15 UTC) #4
jamesr
OK, so the issue here is that while the C++ code is hooking up correctly ...
5 years, 11 months ago (2015-01-06 01:08:12 UTC) #6
hansmuller1
On 2015/01/06 01:08:12, jamesr wrote: > OK, so the issue here is that while the ...
5 years, 11 months ago (2015-01-06 17:43:11 UTC) #7
hansmuller1
On 2015/01/06 17:43:11, hansmuller1 wrote: > On 2015/01/06 01:08:12, jamesr wrote: > > OK, so ...
5 years, 11 months ago (2015-01-08 17:58:55 UTC) #8
jamesr
OK, this one seems to actually work! Hans - could you review the inspector.sky changes?
5 years, 11 months ago (2015-01-08 21:46:23 UTC) #9
hansmuller1
On 2015/01/08 21:46:23, jamesr wrote: > OK, this one seems to actually work! > > ...
5 years, 11 months ago (2015-01-08 21:53:37 UTC) #10
jamesr
5 years, 11 months ago (2015-01-09 22:50:44 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f824c8fadce0427e1793fab63b618f44beb6c574 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698