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

Unified Diff: extensions/renderer/resources/guest_view/guest_view.js

Issue 972313002: Make <webview> use out-of-process iframe architecture. (Closed) Base URL: ssh://saopaulo.wat/mnt/dev/shared/src@testoopif2z-better-chrome
Patch Set: Make <webview> work without --site-per-process as well Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/renderer/resources/guest_view/guest_view.js
diff --git a/extensions/renderer/resources/guest_view/guest_view.js b/extensions/renderer/resources/guest_view/guest_view.js
index 27368a488f792040d6cfcfd90d270f48dc8ffd46..b6c61963977fc5763226b73eff7f22be0baa135b 100644
--- a/extensions/renderer/resources/guest_view/guest_view.js
+++ b/extensions/renderer/resources/guest_view/guest_view.js
@@ -130,6 +130,10 @@ GuestViewImpl.prototype.checkState = function(action) {
return true;
};
+GuestViewImpl.prototype.setContentWindow = function(contentWindow) {
+ this.contentWindow = contentWindow;
+};
+
// Internal implementation of attach().
GuestViewImpl.prototype.attachImpl = function(
internalInstanceId, viewInstanceId, attachParams, callback) {
@@ -324,6 +328,11 @@ GuestView.prototype.getContentWindow = function() {
return internal.contentWindow;
};
+GuestView.prototype.setContentWindow = function(contentWindow) {
+ var internal = privates(this).internal;
+ return internal.setContentWindow(contentWindow);
+};
+
// Returns the ID for this guestview.
GuestView.prototype.getId = function() {
var internal = privates(this).internal;

Powered by Google App Engine
This is Rietveld 408576698