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

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: Use constants 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..74005a589304dcfb8c5a034e57829cb6c8805004
--- /dev/null
+++ b/content/public/browser/guest_proxy_host.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
lfg 2015/03/04 19:10:20 2015
Fady Samuel 2015/03/05 20:56:23 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This module provides class that serves as a public interface for a
Charlie Reis 2015/03/04 20:08:36 The class level comment should go at line 20, belo
Fady Samuel 2015/03/05 20:56:23 Done.
+// derived object that can size a guest.
lfg 2015/03/04 19:10:20 Old comment?
Fady Samuel 2015/03/05 20:56:23 Deleted.
+
+// This class currently only serves as a base class for BrowserPluginGuest, and
+// its API can only be accessed by a BrowserPluginGuestDelegate. This module
+// will go away once the migration to RenderFrame architecture has completed
+// (http://crbug.com/330264).
+
+#ifndef CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_
+#define CONTENT_PUBLIC_BROWSER_GUEST_PROXY_HOST_H_
+
+#include "ui/gfx/geometry/size.h"
+
+namespace content {
+
+class GuestProxyHost {
Charlie Reis 2015/03/04 20:08:36 I'm hesitant to expose the concept of proxy hosts
Fady Samuel 2015/03/05 20:56:23 This is not really the same as RenderFrameProxyHos
Charlie Reis 2015/03/06 00:05:35 I notice that you've removed the TODO. Are we goi
+ public:
+ // Returns the routing ID for the RenderView proxy for the guest in the
+ // owner's guest process if one has been created. If one has not been created
+ // then MSG_ROUTING_NONE is returned.
+ virtual int GetGuestProxyRoutingID() const = 0;
+
+ // Creates a RenderView proxy for the guest in the owner's process.
Charlie Reis 2015/03/04 20:08:36 Please make it clear that this either creates or r
Fady Samuel 2015/03/05 20:56:23 Done.
+ // This allows for a postMessage connection between processes.
+ virtual int GetOrCreateGuestProxyInOwnerProcess() = 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