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

Issue 1728083002: Extract a Connector interface from Shell that can be cloned & passed to other threads (Closed)

Created:
4 years, 10 months ago by Ben Goodger (Google)
Modified:
4 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@12uid
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

One feature of MojoShellContext in content is that Connect() can be called from any thread. If we want to replace this class we need this ability in the Mojo Shell client lib too. To this end I've extracted the Connect() method to its own interface which can be constructed from Shell. This interface can be cloned and passed on to other threads also. R=sky@chromium.org BUG= CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/1a1f457e6c1d5ad1bc8816e443f3f7e2fe037333 Cr-Commit-Position: refs/heads/master@{#377407}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 4

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -133 lines) Patch
M content/browser/frame_host/frame_mojo_shell.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -3 lines 0 comments Download
M content/browser/frame_host/frame_mojo_shell.cc View 1 2 3 3 chunks +11 lines, -2 lines 0 comments Download
M content/browser/mojo/mojo_shell_context.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/mojo/mojo_shell_context.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M content/common/mojo/mojo_shell_connection_impl.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M content/test/data/web_ui_mojo_shell_test.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -1 line 0 comments Download
M mash/example/window_type_launcher/main.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/mojo_base.gyp View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/shell/application_instance.h View 1 4 chunks +8 lines, -1 line 0 comments Download
M mojo/shell/application_instance.cc View 1 5 chunks +18 lines, -9 lines 0 comments Download
M mojo/shell/application_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/application_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M mojo/shell/background/background_shell.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/connect_params.h View 1 2 chunks +4 lines, -3 lines 0 comments Download
M mojo/shell/connect_params.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/connect_util.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/identity.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/identity.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/shell/public/cpp/BUILD.gn View 1 2 chunks +3 lines, -0 lines 0 comments Download
A mojo/shell/public/cpp/connector.h View 1 2 3 4 5 6 7 8 1 chunk +88 lines, -0 lines 0 comments Download
M mojo/shell/public/cpp/lib/application_test_base.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/shell/public/cpp/lib/connection_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/public/cpp/lib/connection_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
A mojo/shell/public/cpp/lib/connector_impl.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A mojo/shell/public/cpp/lib/connector_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +74 lines, -0 lines 0 comments Download
M mojo/shell/public/cpp/lib/shell_connection.cc View 1 2 3 4 chunks +15 lines, -40 lines 0 comments Download
M mojo/shell/public/cpp/shell.h View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -31 lines 0 comments Download
M mojo/shell/public/cpp/shell_connection.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M mojo/shell/public/interfaces/shell.mojom View 1 2 3 4 5 6 7 8 2 chunks +14 lines, -3 lines 0 comments Download
M mojo/shell/runner/child/test_native_main.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/standalone/context.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M mojo/shell/tests/application_manager_apptest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
M mojo/shell/tests/application_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/tests/capability_filter_test.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/tests/package_apptest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 12 (5 generated)
Ben Goodger (Google)
4 years, 10 months ago (2016-02-24 05:45:09 UTC) #3
sky
https://codereview.chromium.org/1728083002/diff/140001/mojo/shell/public/cpp/connector.h File mojo/shell/public/cpp/connector.h (right): https://codereview.chromium.org/1728083002/diff/140001/mojo/shell/public/cpp/connector.h#newcode30 mojo/shell/public/cpp/connector.h:30: explicit ConnectParams(const std::string& url); How come this takes a ...
4 years, 10 months ago (2016-02-24 17:08:07 UTC) #5
Ben Goodger (Google)
On 2016/02/24 17:08:07, sky wrote: > https://codereview.chromium.org/1728083002/diff/140001/mojo/shell/public/cpp/connector.h > File mojo/shell/public/cpp/connector.h (right): > > https://codereview.chromium.org/1728083002/diff/140001/mojo/shell/public/cpp/connector.h#newcode30 > ...
4 years, 10 months ago (2016-02-24 19:03:23 UTC) #6
sky
LGTM
4 years, 10 months ago (2016-02-24 19:23:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1728083002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1728083002/180001
4 years, 10 months ago (2016-02-24 20:35:33 UTC) #9
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 10 months ago (2016-02-24 22:17:32 UTC) #10
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 22:19:51 UTC) #12
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1a1f457e6c1d5ad1bc8816e443f3f7e2fe037333
Cr-Commit-Position: refs/heads/master@{#377407}

Powered by Google App Engine
This is Rietveld 408576698