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

Issue 1228743002: Mandoline: Move ContentHandlerConnection into separate file (Closed)

Created:
5 years, 5 months ago by Fady Samuel
Modified:
5 years, 5 months ago
Reviewers:
jam
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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mandoline: Move ContentHandlerConnection into separate file ContentHandlerConnection will serve as the equivalent of SiteInstance in Chromium. In the future, ContentHandlerConnection will represent an Application instance for a particular origin/site. As the complexity of this object will grow soon, it makes sense to move it out as a first step. ContentHandlerConnection now also uses the same lifetime management idiom used in ApplicationConnection and elsewhere to help guard against reentrant calls during destruction and double deletes. This also makes it easier to unit test this class in the future as more functionality is added. BUG=496937 Committed: https://crrev.com/09c726e468cf0e5e0c9a2d39888c63561d5838f0 Cr-Commit-Position: refs/heads/master@{#338173}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 7

Patch Set 3 : Addressed jam's comments #

Total comments: 3

Patch Set 4 : Addressed comments #

Patch Set 5 : Fix build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -93 lines) Patch
M content/browser/mojo/mojo_shell_context.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M mojo/mojo_shell.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/runner/context.cc View 1 2 3 3 chunks +8 lines, -7 lines 0 comments Download
M mojo/runner/native_runner_unittest.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/runner/shell_test_base.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M mojo/shell/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/shell/application_manager.h View 1 2 3 5 chunks +13 lines, -18 lines 0 comments Download
M mojo/shell/application_manager.cc View 1 2 3 7 chunks +10 lines, -58 lines 0 comments Download
M mojo/shell/application_manager_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
A mojo/shell/content_handler_connection.h View 1 2 1 chunk +59 lines, -0 lines 0 comments Download
A mojo/shell/content_handler_connection.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
M mojo/shell/shell_impl.cc View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
Fady Samuel
5 years, 5 months ago (2015-07-08 22:26:27 UTC) #2
jam
https://codereview.chromium.org/1228743002/diff/20001/mojo/shell/application_manager.h File mojo/shell/application_manager.h (right): https://codereview.chromium.org/1228743002/diff/20001/mojo/shell/application_manager.h#newcode148 mojo/shell/application_manager.h:148: friend class ContentHandlerConnection; now that it't not an inner ...
5 years, 5 months ago (2015-07-09 17:27:23 UTC) #3
Fady Samuel
PTAL https://codereview.chromium.org/1228743002/diff/20001/mojo/shell/application_manager.h File mojo/shell/application_manager.h (right): https://codereview.chromium.org/1228743002/diff/20001/mojo/shell/application_manager.h#newcode148 mojo/shell/application_manager.h:148: friend class ContentHandlerConnection; On 2015/07/09 17:27:23, jam wrote: ...
5 years, 5 months ago (2015-07-09 17:49:22 UTC) #4
Fady Samuel
https://codereview.chromium.org/1228743002/diff/40001/mojo/shell/content_handler_connection.cc File mojo/shell/content_handler_connection.cc (right): https://codereview.chromium.org/1228743002/diff/40001/mojo/shell/content_handler_connection.cc#newcode24 mojo/shell/content_handler_connection.cc:24: manager->ConnectToApplicationInternal( Actually, it needs to be friend for this ...
5 years, 5 months ago (2015-07-09 17:52:47 UTC) #5
jam
https://codereview.chromium.org/1228743002/diff/20001/mojo/shell/content_handler_connection.cc File mojo/shell/content_handler_connection.cc (right): https://codereview.chromium.org/1228743002/diff/20001/mojo/shell/content_handler_connection.cc#newcode36 mojo/shell/content_handler_connection.cc:36: return; On 2015/07/09 17:49:21, Fady Samuel wrote: > On ...
5 years, 5 months ago (2015-07-09 18:00:18 UTC) #6
Fady Samuel
Renamed ConnectToApplicationInternal to ConnectToApplication and updated call sites. ContentHandlerConnection no longer needs to be a ...
5 years, 5 months ago (2015-07-09 18:15:18 UTC) #7
Fady Samuel
PTAL
5 years, 5 months ago (2015-07-09 18:15:30 UTC) #8
jam
lgtm
5 years, 5 months ago (2015-07-09 19:14:53 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228743002/60001
5 years, 5 months ago (2015-07-09 19:16:29 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/89994) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-09 19:30:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1228743002/80001
5 years, 5 months ago (2015-07-09 21:46:36 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 5 months ago (2015-07-09 22:39:55 UTC) #17
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 22:41:50 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/09c726e468cf0e5e0c9a2d39888c63561d5838f0
Cr-Commit-Position: refs/heads/master@{#338173}

Powered by Google App Engine
This is Rietveld 408576698