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

Issue 61063003: Keep NaCl plugins used in app background pages alive when active. (Closed)

Created:
7 years, 1 month ago by scheib
Modified:
7 years ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com, sadrul, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, erikwright+watch_chromium.org, dmichael (off chromium)
Visibility:
Public.

Description

Keep NaCl plugins used in app background pages alive when active. Activity in Native Client plugins results in IPC messages sent to the BrowserPpapiHostImpl and routed to call extensions::ProcessManager::KeepaliveImpulse. Implementation patch, to be followed by tests. See: https://codereview.chromium.org/111563006/ Tests. https://codereview.chromium.org/105873003/ Cumulative patch. Design doc: https://docs.google.com/a/chromium.org/document/d/1mI0lS1rfAf-BAGLmWAEcWy37Xq9dOvgfMx8OqeUMXts/edit# BUG=298339 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241702

Patch Set 1 : working prototype #

Total comments: 36

Patch Set 2 : fix ref counted compile warning #

Total comments: 24

Patch Set 3 : diii #

Total comments: 18

Patch Set 4 : Move callback impl to nacl_browser_delegate_impl.cc. #

Total comments: 42

Patch Set 5 : Address comments in patch 3 & 4. #

Total comments: 31

Patch Set 6 : Update after yzshen comments on impl patch 5 #

Patch Set 7 : rebase #

Total comments: 13

Patch Set 8 : comment for 'active' instance. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -15 lines) Patch
M chrome/browser/nacl_host/nacl_browser_delegate_impl.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/nacl_host/nacl_browser_delegate_impl.cc View 1 2 3 4 5 6 7 3 chunks +82 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_browser_delegate.h View 1 2 3 4 5 3 chunks +5 lines, -4 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M components/nacl/browser/test_nacl_browser_delegate.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/browser/test_nacl_browser_delegate.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 1 2 3 4 5 4 chunks +17 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 1 2 3 4 5 4 chunks +52 lines, -6 lines 0 comments Download
M content/public/browser/browser_ppapi_host.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_globals.h View 1 2 3 4 5 6 3 chunks +21 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_globals.cc View 1 2 3 4 5 6 7 5 chunks +45 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppapi_globals.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppapi_globals.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/enter.cc View 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
dmichael (off chromium)
https://codereview.chromium.org/61063003/diff/100001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/61063003/diff/100001/chrome/browser/nacl_host/nacl_process_host.cc#newcode778 chrome/browser/nacl_host/nacl_process_host.cc:778: virtual void OnIdleState(bool idle, OnIdleStateChange? OnIdleStateTransition? https://codereview.chromium.org/61063003/diff/100001/chrome/browser/nacl_host/nacl_process_host.cc#newcode823 chrome/browser/nacl_host/nacl_process_host.cc:823: }; ...
7 years, 1 month ago (2013-11-06 22:39:20 UTC) #1
yzshen1
https://codereview.chromium.org/61063003/diff/140001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/61063003/diff/140001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode190 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:190: base::Bind(&BrowserPpapiHostImpl::OnIdleState, Important: BrowserPpapiHostImpl should be accessed on the IO ...
7 years, 1 month ago (2013-11-06 22:43:14 UTC) #2
scheib
Thanks both for feedback -- looks like overall architecture is mostly on the right track ...
7 years, 1 month ago (2013-11-07 01:06:41 UTC) #3
dmichael (off chromium)
Yes, I think the overall approach is good. I think it makes sense to not ...
7 years, 1 month ago (2013-11-07 17:11:54 UTC) #4
scheib
FYI I think this patch is in fairly good shape BUT WITHOUT TESTS. dmichael, I'm ...
7 years, 1 month ago (2013-11-15 01:22:16 UTC) #5
Mark Seaborn
https://codereview.chromium.org/61063003/diff/610001/chrome/browser/nacl_host/nacl_process_host.cc File chrome/browser/nacl_host/nacl_process_host.cc (right): https://codereview.chromium.org/61063003/diff/610001/chrome/browser/nacl_host/nacl_process_host.cc#newcode28 chrome/browser/nacl_host/nacl_process_host.cc:28: #include "chrome/browser/extensions/extension_service.h" I don't know if you want a ...
7 years, 1 month ago (2013-11-15 01:32:55 UTC) #6
dmichael (off chromium)
This is looking really good to me, aside from Mark's comment about factoring and some ...
7 years, 1 month ago (2013-11-15 18:26:21 UTC) #7
Mark Seaborn
https://codereview.chromium.org/61063003/diff/610001/ppapi/proxy/plugin_main_nacl.cc File ppapi/proxy/plugin_main_nacl.cc (right): https://codereview.chromium.org/61063003/diff/610001/ppapi/proxy/plugin_main_nacl.cc#newcode268 ppapi/proxy/plugin_main_nacl.cc:268: void CheckActivity(bool last_was_active) { It looks like this will ...
7 years, 1 month ago (2013-11-15 23:51:23 UTC) #8
yzshen1
https://codereview.chromium.org/61063003/diff/800001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/800001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode40 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:40: // process BrowserPpapiHost upon transitioning in our out of ...
7 years, 1 month ago (2013-11-21 18:01:49 UTC) #9
scheib
Implementation patch, to be followed by tests. See: https://codereview.chromium.org/111563006/ Tests. https://codereview.chromium.org/105873003/ Cumulative patch. https://codereview.chromium.org/61063003/diff/610001/chrome/browser/nacl_host/nacl_process_host.cc File ...
7 years ago (2013-12-11 21:35:39 UTC) #10
yzshen1
only nits. Mostly looks good. https://codereview.chromium.org/61063003/diff/800001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/800001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode51 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:51: content::BrowserPpapiHost::OnIdleChangeInstanceData intance_data, > Done. ...
7 years ago (2013-12-13 21:23:14 UTC) #11
yzshen1
https://codereview.chromium.org/61063003/diff/1180001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/1180001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode40 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:40: // process BrowserPpapiHost upon transitioning in or out of ...
7 years ago (2013-12-13 21:30:06 UTC) #12
scheib
Thanks. https://codereview.chromium.org/61063003/diff/1180001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/1180001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode40 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:40: // process BrowserPpapiHost upon transitioning in or out ...
7 years ago (2013-12-14 00:07:40 UTC) #13
yzshen1
LGTM https://codereview.chromium.org/61063003/diff/1180001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc File content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc (right): https://codereview.chromium.org/61063003/diff/1180001/content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc#newcode150 content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc:150: void BrowserPpapiHostImpl::OnKeepalive() { Sounds good. Thanks! On 2013/12/14 ...
7 years ago (2013-12-14 00:36:33 UTC) #14
scheib
Owners: mseaborn: chrome/browser/nacl_host/nacl_browser_delegate_impl.cc chrome/browser/nacl_host/nacl_browser_delegate_impl.h components/nacl/browser/nacl_browser_delegate.h components/nacl/browser/nacl_process_host.cc components/nacl/browser/test_nacl_browser_delegate.cc components/nacl/browser/test_nacl_browser_delegate.h joi: content/public/browser/browser_ppapi_host.h tsepez: ppapi/proxy/ppapi_messages.h
7 years ago (2013-12-14 01:18:44 UTC) #15
Jói
//content/public LGTM.
7 years ago (2013-12-16 12:26:20 UTC) #16
Tom Sepez
ppapi_messages.h LGTM
7 years ago (2013-12-16 17:58:39 UTC) #17
dmichael (off chromium)
https://codereview.chromium.org/61063003/diff/1220001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/1220001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode44 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:44: // There is 1:many relationship for extension:nacl-embeds, but only ...
7 years ago (2013-12-16 22:17:53 UTC) #18
Mark Seaborn
LGTM https://codereview.chromium.org/61063003/diff/1220001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/1220001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode40 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:40: // BrowserPpapiHost at a trottled rate. The content::BrowserPpapiHost ...
7 years ago (2013-12-16 22:40:45 UTC) #19
scheib
Thanks, mseaborn: Take a look at the IPC frequency note and see if you agree. ...
7 years ago (2013-12-16 23:13:43 UTC) #20
dmichael (off chromium)
lgtm
7 years ago (2013-12-16 23:21:45 UTC) #21
Mark Seaborn
https://codereview.chromium.org/61063003/diff/1220001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc File chrome/browser/nacl_host/nacl_browser_delegate_impl.cc (right): https://codereview.chromium.org/61063003/diff/1220001/chrome/browser/nacl_host/nacl_browser_delegate_impl.cc#newcode40 chrome/browser/nacl_host/nacl_browser_delegate_impl.cc:40: // BrowserPpapiHost at a trottled rate. The content::BrowserPpapiHost passes ...
7 years ago (2013-12-18 09:11:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/61063003/1260001
7 years ago (2013-12-18 19:47:04 UTC) #23
commit-bot: I haz the power
7 years ago (2013-12-18 23:37:13 UTC) #24
Message was sent while issue was closed.
Change committed as 241702

Powered by Google App Engine
This is Rietveld 408576698