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

Issue 618823002: GuestView: Move lifetime management out of content (Closed)

Created:
6 years, 2 months ago by Fady Samuel
Modified:
6 years, 2 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, jam, mkwst+moarreviews-ipc_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

GuestView: Move lifetime management out of content This CL introduces an internal destroyGuest API, and enables preservation of guests when display:none is set. This patch is also a big step towards guest teleportation. BUG=419020, 330264 TBR=kenrb@chromium.org for browser_plugin_messages.h IPC removal, asvitkine@chromium.org for histograms.xml Committed: https://crrev.com/a8484dd476ef402fc235a3e9c19b1d52ac0d0f6e Cr-Commit-Position: refs/heads/master@{#297751}

Patch Set 1 #

Patch Set 2 : Tweaks #

Patch Set 3 : Cleanup extensionoptions #

Patch Set 4 : Fix extensionoptions cleanup #

Total comments: 9

Patch Set 5 : Fixed browser_pluign_browsertest + fixed lifetime issue (brittle) #

Total comments: 2

Patch Set 6 : Fixed typo + ebased #

Patch Set 7 : Fixed appview tests #

Total comments: 2

Patch Set 8 : Fixed extensionoptions tests #

Patch Set 9 : Updated histograms.xml #

Patch Set 10 : Added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -282 lines) Patch
M chrome/browser/apps/web_view_browsertest.cc View 1 2 3 4 5 1 chunk +0 lines, -27 lines 0 comments Download
M chrome/renderer/resources/extensions/app_view.js View 1 2 3 4 5 chunks +71 lines, -3 lines 0 comments Download
M chrome/renderer/resources/extensions/extension_options.js View 1 2 3 4 5 6 7 8 chunks +40 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/app_view/shim/main.js View 1 2 3 4 5 6 2 chunks +10 lines, -3 lines 0 comments Download
D chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/main.html View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/main.js View 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/manifest.json View 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/test.js View 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -5 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 9 chunks +24 lines, -24 lines 0 comments Download
M content/browser/web_contents/web_contents_view_guest.h View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_guest.cc View 3 chunks +11 lines, -7 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 4 chunks +2 lines, -9 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 2 3 4 2 chunks +0 lines, -32 lines 0 comments Download
M extensions/browser/api/guest_view/guest_view_internal_api.h View 1 chunk +15 lines, -0 lines 0 comments Download
M extensions/browser/api/guest_view/guest_view_internal_api.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M extensions/browser/api/web_view/web_view_internal_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/guest_view/app_view/app_view_guest.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/extension_options/extension_options_guest.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/guest_view/extension_options/extension_options_guest.cc View 2 chunks +8 lines, -1 line 0 comments Download
M extensions/browser/guest_view/guest_view_base.h View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 2 3 4 4 chunks +34 lines, -21 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_constants.h View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_constants.cc View 1 chunk +0 lines, -1 line 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.h View 2 chunks +5 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 5 6 chunks +11 lines, -7 lines 0 comments Download
M extensions/common/api/guest_view_internal.json View 1 chunk +10 lines, -0 lines 0 comments Download
M extensions/renderer/resources/web_view.js View 1 2 3 4 5 8 chunks +31 lines, -33 lines 0 comments Download
M extensions/renderer/resources/web_view_events.js View 5 2 chunks +0 lines, -7 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Fady Samuel
6 years, 2 months ago (2014-09-30 18:05:58 UTC) #2
lfg
Just a few comments and/or questions. https://codereview.chromium.org/618823002/diff/60001/extensions/browser/api/guest_view/guest_view_internal_api.cc File extensions/browser/api/guest_view/guest_view_internal_api.cc (right): https://codereview.chromium.org/618823002/diff/60001/extensions/browser/api/guest_view/guest_view_internal_api.cc#newcode83 extensions/browser/api/guest_view/guest_view_internal_api.cc:83: return false; Maybe ...
6 years, 2 months ago (2014-09-30 18:59:27 UTC) #3
Fady Samuel
PTAL https://codereview.chromium.org/618823002/diff/60001/extensions/browser/api/guest_view/guest_view_internal_api.cc File extensions/browser/api/guest_view/guest_view_internal_api.cc (right): https://codereview.chromium.org/618823002/diff/60001/extensions/browser/api/guest_view/guest_view_internal_api.cc#newcode83 extensions/browser/api/guest_view/guest_view_internal_api.cc:83: return false; On 2014/09/30 18:59:27, lfg wrote: > ...
6 years, 2 months ago (2014-09-30 22:50:04 UTC) #4
lfg
Just one typo in extension_options.js:371, otherwise LGTM. https://codereview.chromium.org/618823002/diff/60001/extensions/browser/api/guest_view/guest_view_internal_api.cc File extensions/browser/api/guest_view/guest_view_internal_api.cc (right): https://codereview.chromium.org/618823002/diff/60001/extensions/browser/api/guest_view/guest_view_internal_api.cc#newcode83 extensions/browser/api/guest_view/guest_view_internal_api.cc:83: return false; ...
6 years, 2 months ago (2014-09-30 23:29:42 UTC) #5
Fady Samuel
Hi all, this CL fixes a process leak (scary!) in <webview> and other elements and ...
6 years, 2 months ago (2014-10-01 15:40:16 UTC) #7
Ken Rockot(use gerrit already)
On 2014/10/01 15:40:16, Fady Samuel wrote: > +rockot@ please review: > > extensions/common/api/guest_view_internal.json > extensions/browser/api/web_view/web_view_internal_api.cc ...
6 years, 2 months ago (2014-10-01 16:51:52 UTC) #8
Charlie Reis
content/ LGTM. https://codereview.chromium.org/618823002/diff/120001/content/browser/browser_plugin/browser_plugin_guest.h File content/browser/browser_plugin/browser_plugin_guest.h (right): https://codereview.chromium.org/618823002/diff/120001/content/browser/browser_plugin/browser_plugin_guest.h#newcode363 content/browser/browser_plugin/browser_plugin_guest.h:363: int guest_proxy_routing_id_; nit: Please document what this ...
6 years, 2 months ago (2014-10-01 17:11:00 UTC) #9
Fady Samuel
+asvitkine@ for tools/metrics/histograms/histograms.xml Thanks! https://codereview.chromium.org/618823002/diff/120001/content/browser/browser_plugin/browser_plugin_guest.h File content/browser/browser_plugin/browser_plugin_guest.h (right): https://codereview.chromium.org/618823002/diff/120001/content/browser/browser_plugin/browser_plugin_guest.h#newcode363 content/browser/browser_plugin/browser_plugin_guest.h:363: int guest_proxy_routing_id_; On 2014/10/01 17:11:00, ...
6 years, 2 months ago (2014-10-01 21:40:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/618823002/170001
6 years, 2 months ago (2014-10-01 22:27:05 UTC) #13
Alexei Svitkine (slow)
lgtm
6 years, 2 months ago (2014-10-01 23:47:27 UTC) #14
commit-bot: I haz the power
Committed patchset #10 (id:170001) as 9352f18b3d458c020b5a7af8f7835da2746974f7
6 years, 2 months ago (2014-10-02 00:51:43 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-02 00:52:19 UTC) #16
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/a8484dd476ef402fc235a3e9c19b1d52ac0d0f6e
Cr-Commit-Position: refs/heads/master@{#297751}

Powered by Google App Engine
This is Rietveld 408576698