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

Issue 2453713002: Expose Resume() in RenderProcessHost. (Closed)

Created:
4 years, 1 month ago by tasak
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mlamouri+watch-content_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose Resume() in RenderProcessHost. - The Resume() is used for purge+suspend. - intent-to-implement-and-ship of background renderer's purge + suspend is https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/DK189tnM8l4 - one of the documents attached in the above intent is https://docs.google.com/document/d/1EgLimgxWK5DGhptnNVbEGSvVn6Q609ZJaBkLjEPRJvI/edit?usp=sharing - The feature is not enabled by default because purge-and-suspend-time is 0. BUG=635419 Committed: https://crrev.com/a079ac4eebb754e20ce651d4e593286c630ab368 Cr-Commit-Position: refs/heads/master@{#428266}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use DCHECK. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -1 line) Patch
M content/browser/renderer_host/render_process_host_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M content/common/child_process_messages.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 chunks +9 lines, -1 line 2 comments Download

Messages

Total messages: 27 (12 generated)
tasak
Would you review this CL? This CL is created from https://codereview.chromium.org/2387603003
4 years, 1 month ago (2016-10-26 06:31:30 UTC) #4
haraken
LGTM
4 years, 1 month ago (2016-10-26 07:13:38 UTC) #5
Avi (use Gerrit)
LGTM You will need an IPC reviewer too.
4 years, 1 month ago (2016-10-26 14:10:55 UTC) #8
haraken
Do we have a test for Suspend and Resume?
4 years, 1 month ago (2016-10-26 15:31:33 UTC) #9
tasak
dcheng, would you review IPC part of this CL? I'm trying to add ChildProcessMsg_Resume for ...
4 years, 1 month ago (2016-10-27 03:24:34 UTC) #11
dcheng
https://codereview.chromium.org/2453713002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2453713002/diff/1/content/renderer/render_thread_impl.cc#newcode1882 content/renderer/render_thread_impl.cc:1882: if (!is_renderer_suspended_) Do we expect this conditional to be ...
4 years, 1 month ago (2016-10-27 03:41:58 UTC) #12
tasak
Thank you for review. https://codereview.chromium.org/2453713002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2453713002/diff/1/content/renderer/render_thread_impl.cc#newcode1882 content/renderer/render_thread_impl.cc:1882: if (!is_renderer_suspended_) On 2016/10/27 03:41:58, ...
4 years, 1 month ago (2016-10-27 04:49:40 UTC) #14
tasak
On 2016/10/26 15:31:33, haraken wrote: > Do we have a test for Suspend and Resume? ...
4 years, 1 month ago (2016-10-27 04:57:43 UTC) #15
dcheng
ipc lgtm https://codereview.chromium.org/2453713002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2453713002/diff/20001/content/renderer/render_thread_impl.cc#newcode1769 content/renderer/render_thread_impl.cc:1769: if (is_renderer_suspended_ || !RendererIsHidden()) (I wonder if ...
4 years, 1 month ago (2016-10-27 05:51:40 UTC) #16
tasak
https://codereview.chromium.org/2453713002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2453713002/diff/20001/content/renderer/render_thread_impl.cc#newcode1769 content/renderer/render_thread_impl.cc:1769: if (is_renderer_suspended_ || !RendererIsHidden()) On 2016/10/27 05:51:40, dcheng wrote: ...
4 years, 1 month ago (2016-10-27 08:52:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2453713002/20001
4 years, 1 month ago (2016-10-27 08:52:33 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/56684)
4 years, 1 month ago (2016-10-27 10:00:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2453713002/20001
4 years, 1 month ago (2016-10-28 01:50:41 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-28 03:11:51 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-10-28 03:15:03 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a079ac4eebb754e20ce651d4e593286c630ab368
Cr-Commit-Position: refs/heads/master@{#428266}

Powered by Google App Engine
This is Rietveld 408576698