|
Remove GuestWebContentsCreated
This CL introduces GuestViewInternal.createGuest which replaces GuestViewInternal.allocateInstanceId.
This new internal API does the following:
1. Allocates an instance ID.
2. Creates a new guest delegate of the specified and guest WebContents, without navigating the new WebContents.
3. On attachment, the new WebContents is navigated.
In this CL, the particular GuestView type decides how to create the WebContents. Thus <webview> can create WebContents with SiteInstances of the form chrome-guest:// whereas <appview> can create guests with the SiteInstances matching the app they are hosting.
BrowserPluginGuestDelegate (e.g. WebViewGuest) is now passed in to the constructor of BrowserPluginGuest. Now, we can assume a delegate always exists. I added a DCHECK to the constructor. With this patch, BrowserPluginGuestDelegate outlives BrowserPluginGuest too so we can always assume delegate_ is safe to access.
BUG= 364141
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279140
Total comments: 41
Total comments: 2
Total comments: 4
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+440 lines, -418 lines) |
Patch |
 |
M |
chrome/browser/chrome_content_browser_client.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -66 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/guest_view/guest_view_internal_api.h
|
View
|
|
1 chunk |
+6 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+23 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guest_view/guest_view_base.h
|
View
|
1
2
3
4
|
8 chunks |
+59 lines, -28 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guest_view/guest_view_base.cc
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+57 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guest_view/guest_view_manager.h
|
View
|
1
2
3
|
3 chunks |
+17 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guest_view/guest_view_manager.cc
|
View
|
1
2
3
|
3 chunks |
+32 lines, -72 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guest_view/web_view/web_view_guest.h
|
View
|
1
2
3
4
|
5 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/guest_view/web_view/web_view_guest.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
10 chunks |
+136 lines, -68 lines |
0 comments
|
Download
|
 |
M |
chrome/common/extensions/api/guest_view_internal.json
|
View
|
|
1 chunk |
+16 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/web_view.js
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+9 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_embedder.cc
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.h
|
View
|
1
2
3
4
|
7 chunks |
+10 lines, -14 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.cc
|
View
|
1
2
3
4
|
7 chunks |
+21 lines, -37 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/content_browser.gypi
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_plugin_guest_delegate.h
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
A |
content/public/browser/browser_plugin_guest_delegate.cc
|
View
|
1
2
3
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_plugin_guest_manager.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_plugin_guest_manager.cc
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/content_browser_client.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -18 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/web_contents.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/web_contents.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
extensions/browser/extension_function_histogram_value.h
|
View
|
1
2
3
4
5
6
7
8
9
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 38 (0 generated)
|