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

Unified Diff: content/public/browser/guest_proxy_host.h

Issue 910073003: <webview>: Make contentWindow available prior to attachment (on display:none). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 5 years, 10 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: content/public/browser/guest_proxy_host.h
diff --git a/content/public/browser/guest_proxy_host.h b/content/public/browser/guest_proxy_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..0eb3e28b20372117b13e3257fc8aaaa43487feb3
--- /dev/null
+++ b/content/public/browser/guest_proxy_host.h
@@ -0,0 +1,30 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_
+#define CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_
+
+#include "ui/gfx/geometry/size.h"
+
+namespace content {
+
+// This class currently only serves as a base class for BrowserPluginGuest, and
+// its API can only be accessed by a BrowserPluginGuestDelegate.
+class GuestProxyHost {
Charlie Reis 2015/03/06 00:05:36 Please explain more of the reasoning for the name
Fady Samuel 2015/03/07 00:20:28 Done.
+ public:
+ // Returns the routing ID for the RenderView proxy for the guest in the
+ // owner's guest process. This creates a new proxy if one does not already
Charlie Reis 2015/03/06 00:05:36 What is "owner's guest process?" Do you mean "own
Fady Samuel 2015/03/07 00:20:28 Yes, I've removed this API.
+ // exist.
+ virtual int GetGuestProxyRoutingID() = 0;
+
+ // Sets the size of the guest WebContents.
+ virtual void SizeContents(const gfx::Size& new_size) = 0;
+
+ // Called when the GuestProxyHost is about to be destroyed.
+ virtual void WillDestroy() = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698