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

Issue 710043004: Make it possible to have multiple InspectorBackends (Closed)

Created:
6 years, 1 month ago by eseidel
Modified:
6 years, 1 month ago
CC:
abarth-chromium, aa, esprehn, mojo-reviews_chromium.org, ojan
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Make it possible to have multiple InspectorBackends This will make it possible to connect a c++ inspector backend in addition to the JS one. We lose the feature of running multiple inspector servers in this patch, but we weren't using that feature and could easily add it back if we plan to use it. This patch has a *ton* of boilerplate code due to crbug.com/431911, hopefully that will be fixed soon and we can delete all the Impl nonsense. R=abarth@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/efa9b171d1b3d2b7b6643106055c33f33096edce

Patch Set 1 #

Patch Set 2 : Actually works #

Total comments: 1

Patch Set 3 : Split out ServerImpl, somehow breaks JS connections... #

Total comments: 7

Patch Set 4 : It works! #

Patch Set 5 : remove unused include #

Patch Set 6 : Make possible multiple ServerImpls per aa's review to close a potential leak #

Total comments: 13

Patch Set 7 : Move InspectorFrontendImpl into server.cc and rename ServerImpl to InspectorServerImpl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -172 lines) Patch
M mojo/services/window_manager/window_manager_app.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M sky/framework/inspector/inspector.sky View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M sky/services/inspector/BUILD.gn View 1 2 3 4 5 6 2 chunks +0 lines, -4 lines 0 comments Download
M sky/services/inspector/inspector.mojom View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M sky/services/inspector/inspector_frontend_impl.h View 1 2 3 4 5 6 1 chunk +0 lines, -56 lines 0 comments Download
M sky/services/inspector/inspector_frontend_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -97 lines 0 comments Download
M sky/services/inspector/server.cc View 1 2 3 4 5 6 1 chunk +222 lines, -10 lines 0 comments Download
M sky/viewer/BUILD.gn View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M sky/viewer/services/inspector_impl.cc View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
eseidel
This doesn't actually work, I must have made a typo.
6 years, 1 month ago (2014-11-10 19:51:32 UTC) #1
eseidel
Works now, ptal
6 years, 1 month ago (2014-11-10 21:47:00 UTC) #2
eseidel
Hopefully now ServerImpl won't leak and the pattern is the same between ServerImpl and InspectorFrontendImpl
6 years, 1 month ago (2014-11-11 01:54:21 UTC) #3
abarth-chromium
lgtm https://codereview.chromium.org/710043004/diff/20001/sky/services/inspector/server.cc File sky/services/inspector/server.cc (right): https://codereview.chromium.org/710043004/diff/20001/sky/services/inspector/server.cc#newcode5 sky/services/inspector/server.cc:5: #include "base/lazy_instance.h" I don't think this is needed ...
6 years, 1 month ago (2014-11-11 02:53:57 UTC) #4
Aaron Boodman
https://codereview.chromium.org/710043004/diff/40001/sky/services/inspector/inspector_frontend_impl.cc File sky/services/inspector/inspector_frontend_impl.cc (right): https://codereview.chromium.org/710043004/diff/40001/sky/services/inspector/inspector_frontend_impl.cc#newcode20 sky/services/inspector/inspector_frontend_impl.cc:20: client()->OnDisconnect(); The client will find out when this end ...
6 years, 1 month ago (2014-11-11 16:12:50 UTC) #6
eseidel
https://codereview.chromium.org/710043004/diff/40001/sky/services/inspector/inspector_frontend_impl.cc File sky/services/inspector/inspector_frontend_impl.cc (right): https://codereview.chromium.org/710043004/diff/40001/sky/services/inspector/inspector_frontend_impl.cc#newcode20 sky/services/inspector/inspector_frontend_impl.cc:20: client()->OnDisconnect(); On 2014/11/11 16:12:50, Aaron Boodman wrote: > The ...
6 years, 1 month ago (2014-11-11 18:15:26 UTC) #7
eseidel
On 2014/11/11 16:12:50, Aaron Boodman wrote: > https://codereview.chromium.org/710043004/diff/100001/sky/services/inspector/inspector_frontend_impl.h#newcode21 > sky/services/inspector/inspector_frontend_impl.h:21: virtual void > Register(InspectorFrontendImpl*) = ...
6 years, 1 month ago (2014-11-11 18:23:16 UTC) #8
eseidel
Thank you very much Aaron for taking the time to review. I really appreciate it!
6 years, 1 month ago (2014-11-11 18:28:29 UTC) #9
eseidel
6 years, 1 month ago (2014-11-11 18:29:25 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
efa9b171d1b3d2b7b6643106055c33f33096edce (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698