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

Issue 187533002: Add SharedWorkerServiceImpl::CheckWorkerDependency(). (Closed)

Created:
6 years, 9 months ago by horo
Modified:
6 years, 9 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@ExternalClient
Visibility:
Public.

Description

Add SharedWorkerServiceImpl::CheckWorkerDependency(). This method checks the worker dependency of renderer processes and calls IncrementWorkerRefCount and DecrementWorkerRefCount of RenderProcessHostImpl on UI thread if necessary. BUG=327256 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256305

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorporated kinuko's comments. #

Patch Set 3 : rebase #

Patch Set 4 : Add unit test for SharedWorkerServiceImpl #

Total comments: 26

Patch Set 5 : rebase #

Patch Set 6 : incorporated kinuko's comment #

Total comments: 17

Patch Set 7 : fix compile error #

Patch Set 8 : incorporated kinuko's comment in shared_worker_service_impl_unittest.cc #

Total comments: 2

Patch Set 9 : Incorporated jochen's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+729 lines, -9 lines) Patch
M content/browser/message_port_message_filter.h View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M content/browser/shared_worker/shared_worker_host.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/shared_worker/shared_worker_message_filter.h View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M content/browser/shared_worker/shared_worker_service_impl.h View 1 2 3 4 5 3 chunks +23 lines, -0 lines 0 comments Download
M content/browser/shared_worker/shared_worker_service_impl.cc View 1 2 3 4 5 6 7 8 9 chunks +107 lines, -3 lines 0 comments Download
A content/browser/shared_worker/shared_worker_service_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +587 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
horo
kinuko@ Could you please review?
6 years, 9 months ago (2014-03-05 07:13:12 UTC) #1
kinuko
looks good, is there a possibility to have some unittest for the core logic? https://codereview.chromium.org/187533002/diff/1/content/browser/shared_worker/shared_worker_service_impl.h ...
6 years, 9 months ago (2014-03-05 08:03:47 UTC) #2
horo
https://codereview.chromium.org/187533002/diff/1/content/browser/shared_worker/shared_worker_service_impl.h File content/browser/shared_worker/shared_worker_service_impl.h (right): https://codereview.chromium.org/187533002/diff/1/content/browser/shared_worker/shared_worker_service_impl.h#newcode95 content/browser/shared_worker/shared_worker_service_impl.h:95: ScopedWorkerDependencyChecker(SharedWorkerServiceImpl* service_impl) On 2014/03/05 08:03:47, kinuko wrote: > nit: ...
6 years, 9 months ago (2014-03-05 08:16:58 UTC) #3
kinuko
Is there a possibility to have some unittest for the core logic?
6 years, 9 months ago (2014-03-05 08:36:42 UTC) #4
horo
On 2014/03/05 08:36:42, kinuko wrote: > Is there a possibility to have some unittest for ...
6 years, 9 months ago (2014-03-06 13:34:24 UTC) #5
kinuko
Thanks for adding tests. https://codereview.chromium.org/187533002/diff/60001/content/browser/shared_worker/shared_worker_service_impl.cc File content/browser/shared_worker/shared_worker_service_impl.cc (right): https://codereview.chromium.org/187533002/diff/60001/content/browser/shared_worker/shared_worker_service_impl.cc#newcode26 content/browser/shared_worker/shared_worker_service_impl.cc:26: const std::vector<int> removed_ids) { nit: ...
6 years, 9 months ago (2014-03-10 04:25:43 UTC) #6
horo
https://codereview.chromium.org/187533002/diff/60001/content/browser/shared_worker/shared_worker_service_impl.cc File content/browser/shared_worker/shared_worker_service_impl.cc (right): https://codereview.chromium.org/187533002/diff/60001/content/browser/shared_worker/shared_worker_service_impl.cc#newcode26 content/browser/shared_worker/shared_worker_service_impl.cc:26: const std::vector<int> removed_ids) { On 2014/03/10 04:25:43, kinuko wrote: ...
6 years, 9 months ago (2014-03-10 11:48:31 UTC) #7
kinuko
lgtm, + some more nit comments https://codereview.chromium.org/187533002/diff/100001/content/browser/shared_worker/shared_worker_service_impl_unittest.cc File content/browser/shared_worker/shared_worker_service_impl_unittest.cc (right): https://codereview.chromium.org/187533002/diff/100001/content/browser/shared_worker/shared_worker_service_impl_unittest.cc#newcode82 content/browser/shared_worker/shared_worker_service_impl_unittest.cc:82: MockRendererProcessHost(int process_no, nit: ...
6 years, 9 months ago (2014-03-11 05:35:41 UTC) #8
horo
https://codereview.chromium.org/187533002/diff/100001/content/browser/shared_worker/shared_worker_service_impl_unittest.cc File content/browser/shared_worker/shared_worker_service_impl_unittest.cc (right): https://codereview.chromium.org/187533002/diff/100001/content/browser/shared_worker/shared_worker_service_impl_unittest.cc#newcode82 content/browser/shared_worker/shared_worker_service_impl_unittest.cc:82: MockRendererProcessHost(int process_no, On 2014/03/11 05:35:41, kinuko wrote: > nit: ...
6 years, 9 months ago (2014-03-11 06:55:56 UTC) #9
horo
jochen@ Could you please review content/browser/message_port_message_filter.h in this cl? Thank you.
6 years, 9 months ago (2014-03-11 08:07:37 UTC) #10
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/187533002/diff/160001/content/browser/shared_worker/shared_worker_service_impl.cc File content/browser/shared_worker/shared_worker_service_impl.cc (right): https://codereview.chromium.org/187533002/diff/160001/content/browser/shared_worker/shared_worker_service_impl.cc#newcode25 content/browser/shared_worker/shared_worker_service_impl.cc:25: class CONTENT_EXPORT ScopedWorkerDependencyChecker { why do you need ...
6 years, 9 months ago (2014-03-11 14:31:06 UTC) #11
horo
https://codereview.chromium.org/187533002/diff/160001/content/browser/shared_worker/shared_worker_service_impl.cc File content/browser/shared_worker/shared_worker_service_impl.cc (right): https://codereview.chromium.org/187533002/diff/160001/content/browser/shared_worker/shared_worker_service_impl.cc#newcode25 content/browser/shared_worker/shared_worker_service_impl.cc:25: class CONTENT_EXPORT ScopedWorkerDependencyChecker { On 2014/03/11 14:31:06, jochen wrote: ...
6 years, 9 months ago (2014-03-11 16:15:05 UTC) #12
horo
The CQ bit was checked by horo@chromium.org
6 years, 9 months ago (2014-03-11 16:15:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/horo@chromium.org/187533002/180001
6 years, 9 months ago (2014-03-11 16:16:18 UTC) #14
commit-bot: I haz the power
6 years, 9 months ago (2014-03-11 20:45:34 UTC) #15
Message was sent while issue was closed.
Change committed as 256305

Powered by Google App Engine
This is Rietveld 408576698