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

Issue 12226022: <webview>: Store <webview> embedder info in ExtensionRendererState (Closed)

Created:
7 years, 10 months ago by Fady Samuel
Modified:
7 years, 10 months ago
Reviewers:
jam, Matt Perry
CC:
chromium-reviews, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

<webview>: Store <webview> embedder info in ExtensionRendererState In order to support WebRequest event listeners that are valid for the lifetime of the <webview>, rather than for the lifetime of a particular guest RenderView, we need to carry information about the <webview> embedder in ExtensionRendererState. Lifetimes of the guest and the container <webview> are not identical for the following reasons: 1. A <webview> does not create a guest RenderView until it performs its first navigation. 2. A guest render process may crash but the <webview> can recover from that by spawning off a new guest render process. Thus, we would like WebRequest API event listeners to outlast guests and survive for the lifetime of the <webview>. BUG=171421 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181231

Patch Set 1 #

Total comments: 2

Patch Set 2 : Cleanup name #

Total comments: 4

Patch Set 3 : Fixed nits #

Patch Set 4 : Updated comment on instance ID #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -50 lines) Patch
M chrome/browser/extensions/api/web_request/web_request_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_renderer_state.h View 1 2 4 chunks +15 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_renderer_state.cc View 1 2 5 chunks +57 lines, -42 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Fady Samuel
mpcomplete@: extension_renderer_state and web_request_api changes jam@: public content API changes
7 years, 10 months ago (2013-02-05 23:43:21 UTC) #1
jam
https://codereview.chromium.org/12226022/diff/1/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/12226022/diff/1/content/public/browser/web_contents.h#newcode155 content/public/browser/web_contents.h:155: virtual int GetInstanceID() const = 0; why does this ...
7 years, 10 months ago (2013-02-06 17:02:09 UTC) #2
Fady Samuel
https://codereview.chromium.org/12226022/diff/1/content/public/browser/web_contents.h File content/public/browser/web_contents.h (right): https://codereview.chromium.org/12226022/diff/1/content/public/browser/web_contents.h#newcode155 content/public/browser/web_contents.h:155: virtual int GetInstanceID() const = 0; On 2013/02/06 17:02:09, ...
7 years, 10 months ago (2013-02-06 17:06:00 UTC) #3
Matt Perry
lgtm https://codereview.chromium.org/12226022/diff/5001/chrome/browser/extensions/extension_renderer_state.h File chrome/browser/extensions/extension_renderer_state.h (right): https://codereview.chromium.org/12226022/diff/5001/chrome/browser/extensions/extension_renderer_state.h#newcode34 chrome/browser/extensions/extension_renderer_state.h:34: bool GetWebViewInfo(int render_process_host_id, int routing_id, Can you rename ...
7 years, 10 months ago (2013-02-06 22:06:54 UTC) #4
jam
On 2013/02/06 17:06:00, Fady Samuel wrote: > https://codereview.chromium.org/12226022/diff/1/content/public/browser/web_contents.h > File content/public/browser/web_contents.h (right): > > https://codereview.chromium.org/12226022/diff/1/content/public/browser/web_contents.h#newcode155 ...
7 years, 10 months ago (2013-02-06 22:13:05 UTC) #5
Fady Samuel
On 2013/02/06 22:13:05, jam wrote: > On 2013/02/06 17:06:00, Fady Samuel wrote: > > > ...
7 years, 10 months ago (2013-02-06 22:14:15 UTC) #6
Fady Samuel
Fixed nits. https://codereview.chromium.org/12226022/diff/5001/chrome/browser/extensions/extension_renderer_state.h File chrome/browser/extensions/extension_renderer_state.h (right): https://codereview.chromium.org/12226022/diff/5001/chrome/browser/extensions/extension_renderer_state.h#newcode34 chrome/browser/extensions/extension_renderer_state.h:34: bool GetWebViewInfo(int render_process_host_id, int routing_id, On 2013/02/06 ...
7 years, 10 months ago (2013-02-06 23:23:33 UTC) #7
jam
> Used by a subsequent CL here: https://chromiumcodereview.appspot.com/12189018/ i see, ok lgtm. document what instance ...
7 years, 10 months ago (2013-02-06 23:37:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/12226022/1007
7 years, 10 months ago (2013-02-07 00:19:17 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-02-07 06:17:04 UTC) #10
Message was sent while issue was closed.
Change committed as 181231

Powered by Google App Engine
This is Rietveld 408576698