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

Issue 6006006: Show OOM notification bar in all tabs sharing same render process (Closed)

Created:
10 years ago by yurys
Modified:
7 years, 5 months ago
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, jam, pam+watch_chromium.org
Visibility:
Public.

Description

Show OOM notification bar in all tabs sharing same render process. This is the Chromium's part of the change. When out-of-memory occurs in one of the pages sharing same render process synchronous IPC message will be sent to the browser to give it a chance to show notification bar for all tabs sharing that render process. The renderer will crash immediately after sending the message (see corresponding WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=52447). BUG=40521 TEST=None

Patch Set 1 #

Patch Set 2 : style fix #

Patch Set 3 : code cleanup #

Total comments: 2

Patch Set 4 : address comments #

Total comments: 1

Patch Set 5 : Send reply to the sync message on the IO thread #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -1 line) Patch
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/out_of_memory_message_filter.h View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/renderer_host/out_of_memory_message_filter.cc View 1 2 3 4 1 chunk +54 lines, -0 lines 1 comment Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 4 chunks +9 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_glue.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/glue/webkitclient_impl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webkitclient_impl.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/support/webkit_support_glue.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
yurys
10 years ago (2010-12-23 09:47:50 UTC) #1
yurys
WebKit changes can be found at http://codereview.appspot.com/3797043/
10 years ago (2010-12-23 09:49:37 UTC) #2
antonm
I cannot properly review this patch even though it lgtm. http://codereview.chromium.org/6006006/diff/6001/chrome/browser/tab_contents/tab_contents.h File chrome/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/6006006/diff/6001/chrome/browser/tab_contents/tab_contents.h#newcode1353 ...
10 years ago (2010-12-23 17:17:45 UTC) #3
yurys
Darin, Dimitri are you fine with this approach? http://codereview.chromium.org/6006006/diff/6001/chrome/browser/tab_contents/tab_contents.h File chrome/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/6006006/diff/6001/chrome/browser/tab_contents/tab_contents.h#newcode1353 chrome/browser/tab_contents/tab_contents.h:1353: bool ...
9 years, 11 months ago (2011-01-18 13:14:16 UTC) #4
darin (slow to review)
http://codereview.chromium.org/6006006/diff/15001/chrome/common/render_messages_internal.h File chrome/common/render_messages_internal.h (right): http://codereview.chromium.org/6006006/diff/15001/chrome/common/render_messages_internal.h#newcode1852 chrome/common/render_messages_internal.h:1852: IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_RenderProcessOutOfJSMemory) Sync messages sent from renderer to browser should ...
9 years, 11 months ago (2011-01-19 16:53:50 UTC) #5
yurys
On 2011/01/19 16:53:50, darin wrote: > http://codereview.chromium.org/6006006/diff/15001/chrome/common/render_messages_internal.h > File chrome/common/render_messages_internal.h (right): > > http://codereview.chromium.org/6006006/diff/15001/chrome/common/render_messages_internal.h#newcode1852 > ...
9 years, 10 months ago (2011-02-01 14:00:31 UTC) #6
yurys
9 years, 10 months ago (2011-02-01 14:00:37 UTC) #7
http://codereview.chromium.org/6006006/diff/21001/chrome/browser/renderer_hos...
File chrome/browser/renderer_host/out_of_memory_message_filter.cc (right):

http://codereview.chromium.org/6006006/diff/21001/chrome/browser/renderer_hos...
chrome/browser/renderer_host/out_of_memory_message_filter.cc:49:
const_cast<IPC::Channel::Listener*>(listener)->OnMessageReceived(
I'd love to avoid const_cast here but I don't see another way to enumerate all
render views sharing the same render process here. Alternatively, we could use
NotificationService to notify corresponding tabs. I'm open to suggestions.

Powered by Google App Engine
This is Rietveld 408576698