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

Issue 72203003: Introduce RenderProcessHostObserver, use it in its first client. (Closed)

Created:
7 years, 1 month ago by Avi (use Gerrit)
Modified:
7 years, 1 month ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

Introduce RenderProcessHostObserver, use it in its first client. BUG=170921 TEST=everything still works Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235877

Patch Set 1 #

Total comments: 1

Patch Set 2 : fixed #

Total comments: 1

Patch Set 3 : make mocks observable #

Patch Set 4 : fixes #

Total comments: 1

Patch Set 5 : move destruction callback to dtor #

Patch Set 6 : better #

Patch Set 7 : fix #

Patch Set 8 : release mode #

Total comments: 4

Patch Set 9 : fixin' #

Patch Set 10 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -38 lines) Patch
M content/browser/browser_main_loop.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 6 chunks +51 lines, -1 line 0 comments Download
M content/browser/site_instance_impl.h View 4 chunks +5 lines, -10 lines 0 comments Download
M content/browser/site_instance_impl.cc View 1 4 chunks +8 lines, -12 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 6 7 8 3 chunks +9 lines, -0 lines 0 comments Download
A content/public/browser/render_process_host_observer.h View 1 chunk +27 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 5 3 chunks +5 lines, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 5 4 chunks +30 lines, -11 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Avi (use Gerrit)
WDYT? Do we want to do the auto deregister magic that WCO does?
7 years, 1 month ago (2013-11-14 02:48:27 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/72203003/diff/1/content/browser/site_instance_impl.cc File content/browser/site_instance_impl.cc (right): https://codereview.chromium.org/72203003/diff/1/content/browser/site_instance_impl.cc#newcode131 content/browser/site_instance_impl.cc:131: process_->AddObserver(this); Yeah, that's bogus. I'll fix that tomorrow.
7 years, 1 month ago (2013-11-14 03:32:26 UTC) #2
jam
a few comments: -do we know for sure if the interface will have multiple methods? ...
7 years, 1 month ago (2013-11-14 18:46:59 UTC) #3
Avi (use Gerrit)
On 2013/11/14 18:46:59, jam wrote: > -do we know for sure if the interface will ...
7 years, 1 month ago (2013-11-14 19:04:07 UTC) #4
Avi (use Gerrit)
This alternate approach is at http://crrev.com/73103002 . Notice that the user of RenderProcessHostObserver is simpler, ...
7 years, 1 month ago (2013-11-14 20:27:56 UTC) #5
jam
lgtm On 2013/11/14 19:04:07, Avi wrote: > On 2013/11/14 18:46:59, jam wrote: > > -do ...
7 years, 1 month ago (2013-11-15 02:42:33 UTC) #6
Avi (use Gerrit)
On 2013/11/15 02:42:33, jam wrote: > > - render process created (≅NOTIFICATION_RENDERER_PROCESS_CREATED) > to be ...
7 years, 1 month ago (2013-11-15 04:22:06 UTC) #7
Avi (use Gerrit)
On 2013/11/15 04:22:06, Avi wrote: > On 2013/11/15 02:42:33, jam wrote: > > > - ...
7 years, 1 month ago (2013-11-15 05:40:08 UTC) #8
jam
On 2013/11/15 05:40:08, Avi wrote: > On 2013/11/15 04:22:06, Avi wrote: > > On 2013/11/15 ...
7 years, 1 month ago (2013-11-15 08:21:44 UTC) #9
Avi (use Gerrit)
On 2013/11/15 08:21:44, jam wrote: > ah, got it. the existing notification's name was confusing. ...
7 years, 1 month ago (2013-11-15 15:13:37 UTC) #10
jam
On 2013/11/15 15:13:37, Avi wrote: > On 2013/11/15 08:21:44, jam wrote: > > ah, got ...
7 years, 1 month ago (2013-11-15 16:32:59 UTC) #11
Avi (use Gerrit)
On 2013/11/15 16:32:59, jam wrote: > to launching. For comparison, see BrowserChildProcessHost::OnProcessLaunched() Once it's needed, ...
7 years, 1 month ago (2013-11-15 16:36:39 UTC) #12
Avi (use Gerrit)
New version up. This looks like it's pretty green across the tests. One change that's ...
7 years, 1 month ago (2013-11-15 20:45:41 UTC) #13
jam
https://codereview.chromium.org/72203003/diff/290001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/72203003/diff/290001/content/browser/renderer_host/render_process_host_impl.cc#newcode1384 content/browser/renderer_host/render_process_host_impl.cc:1384: RenderProcessHostDestroyed(this)); why isn't this enough, i.e. why do we ...
7 years, 1 month ago (2013-11-15 22:42:23 UTC) #14
Avi (use Gerrit)
OK, this should be good.
7 years, 1 month ago (2013-11-18 18:44:38 UTC) #15
jam
lgtm https://codereview.chromium.org/72203003/diff/600001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/72203003/diff/600001/content/browser/renderer_host/render_process_host_impl.cc#newcode1545 content/browser/renderer_host/render_process_host_impl.cc:1545: switch (g_all_hosts.Pointer()->size()) { nit: isn't size() always == ...
7 years, 1 month ago (2013-11-18 19:16:19 UTC) #16
Avi (use Gerrit)
https://codereview.chromium.org/72203003/diff/600001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/72203003/diff/600001/content/browser/renderer_host/render_process_host_impl.cc#newcode1545 content/browser/renderer_host/render_process_host_impl.cc:1545: switch (g_all_hosts.Pointer()->size()) { On 2013/11/18 19:16:20, jam wrote: > ...
7 years, 1 month ago (2013-11-18 19:22:20 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/avi@chromium.org/72203003/350002
7 years, 1 month ago (2013-11-18 21:02:47 UTC) #18
Avi (use Gerrit)
7 years, 1 month ago (2013-11-18 21:08:17 UTC) #19
commit-bot: I haz the power
7 years, 1 month ago (2013-11-19 01:35:58 UTC) #20
Message was sent while issue was closed.
Change committed as 235877

Powered by Google App Engine
This is Rietveld 408576698