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_ |