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

Issue 741453002: Make sure that Content Handled application can be connected multiple times. (Closed)

Created:
6 years, 1 month ago by qsr
Modified:
6 years ago
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, esprehn, yzshen+watch_chromium.org, abarth-chromium, darin (slow to review), ben+mojo_chromium.org, ojan
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Make sure that Content Handled application can be connected multiple times. This CL updates ApplicationManager so that it always reconnect to an application that is already launched. To obtain this results, the following changes habe also been made: 1) The Loader interface has been simplified: - The pipe to the shell if given during the Load request, so that loader do not need to called RegisterLoadedApplication 2) PngViewer and PdfViewer allows multiple embedder to embed those. 3) For the second connection forward, Sky issue network request to get the content of the page to display. R=aa@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/5170129e3c402b3ee8cecb914c934fd56019b6e9

Patch Set 1 #

Total comments: 42

Patch Set 2 : Follow review #

Total comments: 6

Patch Set 3 : Follow review #

Patch Set 4 : Follow review #

Patch Set 5 : Follow review #

Total comments: 4

Patch Set 6 : Fix sky #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -385 lines) Patch
M mojo/application_manager/application_loader.h View 1 2 3 4 2 chunks +13 lines, -43 lines 0 comments Download
D mojo/application_manager/application_loader.cc View 1 2 3 4 1 chunk +9 lines, -13 lines 0 comments Download
M mojo/application_manager/application_manager.h View 1 2 3 4 5 3 chunks +3 lines, -14 lines 0 comments Download
M mojo/application_manager/application_manager.cc View 1 2 3 4 5 6 chunks +21 lines, -110 lines 0 comments Download
M mojo/application_manager/application_manager_unittest.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M mojo/application_manager/background_shell_application_loader.h View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M mojo/application_manager/background_shell_application_loader.cc View 1 2 3 4 6 chunks +10 lines, -45 lines 0 comments Download
M mojo/application_manager/background_shell_application_loader_unittest.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M mojo/services/public/cpp/view_manager/tests/view_manager_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -6 lines 0 comments Download
M mojo/services/view_manager/view_manager_unittest.cc View 1 2 3 4 5 2 chunks +8 lines, -10 lines 0 comments Download
M mojo/services/window_manager/window_manager_api_unittest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M mojo/shell/context.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M mojo/shell/dynamic_application_loader.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M mojo/shell/dynamic_application_loader.cc View 1 2 3 8 chunks +33 lines, -29 lines 0 comments Download
M mojo/shell/dynamic_application_loader_unittest.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M mojo/shell/external_application_listener_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M mojo/shell/network_application_loader.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M mojo/shell/network_application_loader.cc View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M mojo/shell/ui_application_loader_android.h View 1 2 3 chunks +3 lines, -5 lines 0 comments Download
M mojo/shell/ui_application_loader_android.cc View 1 2 3 4 3 chunks +10 lines, -44 lines 0 comments Download
M mojo/shell/view_manager_loader.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/view_manager_loader.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sky/viewer/content_handler_impl.cc View 1 2 3 2 chunks +72 lines, -1 line 0 comments Download
M sky/viewer/document_view.h View 1 2 3 4 5 6 chunks +9 lines, -11 lines 0 comments Download
M sky/viewer/document_view.cc View 1 2 3 4 5 4 chunks +12 lines, -16 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
qsr
Aaron -> For review. I didn't do html_viewer yet, but it will work the same ...
6 years, 1 month ago (2014-11-18 16:27:27 UTC) #2
DaveMoore
https://codereview.chromium.org/741453002/diff/1/mojo/application_manager/application_loader.h File mojo/application_manager/application_loader.h (right): https://codereview.chromium.org/741453002/diff/1/mojo/application_manager/application_loader.h#newcode33 mojo/application_manager/application_loader.h:33: URLResponsePtr url_response) = 0; I like this. It's a ...
6 years, 1 month ago (2014-11-18 17:00:46 UTC) #3
Aaron Boodman
This is great. I'm convinced now this is the right approach. https://codereview.chromium.org/741453002/diff/1/examples/pdf_viewer/pdf_viewer.cc File examples/pdf_viewer/pdf_viewer.cc (right): ...
6 years, 1 month ago (2014-11-18 23:46:15 UTC) #4
Aaron Boodman
https://codereview.chromium.org/741453002/diff/1/mojo/application_manager/application_manager.cc File mojo/application_manager/application_manager.cc (right): https://codereview.chromium.org/741453002/diff/1/mojo/application_manager/application_manager.cc#newcode238 mojo/application_manager/application_manager.cc:238: new ShellImpl(pipe.handle0.Pass(), this, requested_url, resolved_url); Argh, I just realized ...
6 years, 1 month ago (2014-11-19 01:47:24 UTC) #5
qsr
https://codereview.chromium.org/741453002/diff/1/examples/pdf_viewer/pdf_viewer.cc File examples/pdf_viewer/pdf_viewer.cc (right): https://codereview.chromium.org/741453002/diff/1/examples/pdf_viewer/pdf_viewer.cc#newcode33 examples/pdf_viewer/pdf_viewer.cc:33: namespace { On 2014/11/18 23:46:15, Aaron Boodman wrote: > ...
6 years, 1 month ago (2014-11-19 13:42:38 UTC) #6
Aaron Boodman
https://codereview.chromium.org/741453002/diff/1/examples/pdf_viewer/pdf_viewer.cc File examples/pdf_viewer/pdf_viewer.cc (right): https://codereview.chromium.org/741453002/diff/1/examples/pdf_viewer/pdf_viewer.cc#newcode33 examples/pdf_viewer/pdf_viewer.cc:33: namespace { On 2014/11/19 13:42:37, qsr wrote: > On ...
6 years, 1 month ago (2014-11-19 15:58:15 UTC) #7
Aaron Boodman
https://codereview.chromium.org/741453002/diff/20001/mojo/application_manager/application_manager_unittest.cc File mojo/application_manager/application_manager_unittest.cc (right): https://codereview.chromium.org/741453002/diff/20001/mojo/application_manager/application_manager_unittest.cc#newcode119 mojo/application_manager/application_manager_unittest.cc:119: LoadCallback callbacks) override { here and elsewhere, can you ...
6 years, 1 month ago (2014-11-19 16:09:58 UTC) #8
qsr
https://codereview.chromium.org/741453002/diff/1/examples/png_viewer/png_viewer.cc File examples/png_viewer/png_viewer.cc (right): https://codereview.chromium.org/741453002/diff/1/examples/png_viewer/png_viewer.cc#newcode110 examples/png_viewer/png_viewer.cc:110: // TODO(aa): Need to figure out how shutdown works. ...
6 years, 1 month ago (2014-11-19 16:37:22 UTC) #9
Aaron Boodman
https://codereview.chromium.org/741453002/diff/1/examples/png_viewer/png_viewer.cc File examples/png_viewer/png_viewer.cc (right): https://codereview.chromium.org/741453002/diff/1/examples/png_viewer/png_viewer.cc#newcode126 examples/png_viewer/png_viewer.cc:126: ApplicationImpl::Terminate(); On 2014/11/19 16:37:21, qsr wrote: > On 2014/11/19 ...
6 years, 1 month ago (2014-11-20 00:59:01 UTC) #10
qsr
https://codereview.chromium.org/741453002/diff/20001/mojo/application_manager/background_shell_application_loader.cc File mojo/application_manager/background_shell_application_loader.cc (right): https://codereview.chromium.org/741453002/diff/20001/mojo/application_manager/background_shell_application_loader.cc#newcode82 mojo/application_manager/background_shell_application_loader.cc:82: loader_->Load(manager, url, shell_handle.Pass(), LoadCallback()); On 2014/11/20 00:59:01, Aaron Boodman ...
6 years, 1 month ago (2014-11-20 10:02:59 UTC) #11
Aaron Boodman
LGTM, but please delete the content_shell map thing. https://codereview.chromium.org/741453002/diff/80001/mojo/application_manager/application_manager.cc File mojo/application_manager/application_manager.cc (right): https://codereview.chromium.org/741453002/diff/80001/mojo/application_manager/application_manager.cc#newcode176 mojo/application_manager/application_manager.cc:176: STLDeleteElements(&content_shell_impls_); ...
6 years, 1 month ago (2014-11-20 18:26:08 UTC) #12
Aaron Boodman
set rather, whatever
6 years, 1 month ago (2014-11-20 18:26:17 UTC) #13
qsr
https://codereview.chromium.org/741453002/diff/80001/mojo/application_manager/application_manager.cc File mojo/application_manager/application_manager.cc (right): https://codereview.chromium.org/741453002/diff/80001/mojo/application_manager/application_manager.cc#newcode176 mojo/application_manager/application_manager.cc:176: STLDeleteElements(&content_shell_impls_); On 2014/11/20 18:26:08, Aaron Boodman wrote: > content_shell_impls_ ...
6 years, 1 month ago (2014-11-21 09:50:08 UTC) #14
qsr
Committed patchset #6 (id:100001) manually as 5170129e3c402b3ee8cecb914c934fd56019b6e9 (presubmit successful).
6 years, 1 month ago (2014-11-21 09:53:40 UTC) #15
eseidel
6 years ago (2014-12-05 23:11:50 UTC) #17
Message was sent while issue was closed.
I believe this broke skydb reload.

sky/tools/skydb your_favorite_file.sky
(skydb) reload
// does nothing?
(skydb) reload
// properly reloads!
(skydb) reload
// does nothing?
(skydb) reload
// properly reloads!

It has to do with deleting the SkyApplication at a bad time.  I've hacked around
this in https://codereview.chromium.org/780413002/, but I'm sure there is a
better solution.

Powered by Google App Engine
This is Rietveld 408576698