Index: content/public/browser/browser_plugin_guest_delegate.h |
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h |
index 3cb9270fac9c598e45088a502eb925cbdb60997c..f2565a0c6ff61e16622c724041a0657bce144156 100644 |
--- a/content/public/browser/browser_plugin_guest_delegate.h |
+++ b/content/public/browser/browser_plugin_guest_delegate.h |
@@ -8,7 +8,6 @@ |
#include "base/callback_forward.h" |
#include "base/process/kill.h" |
#include "content/common/content_export.h" |
-#include "content/public/browser/guest_sizer.h" |
#include "content/public/browser/web_contents.h" |
namespace base { |
@@ -21,6 +20,8 @@ class Size; |
namespace content { |
+class GuestHost; |
+ |
// Objects implement this interface to get notified about changes in the guest |
// WebContents and to provide necessary functionality. |
class CONTENT_EXPORT BrowserPluginGuestDelegate { |
@@ -44,7 +45,7 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
virtual bool CanRunInDetachedState() const; |
// Notification that the embedder has completed attachment. The |
- // |guest_proxy_routing_id| is the routing ID for the RenderView in the |
+ // |guest_proxy_routing_id| is the routingID for the RenderView in the |
Charlie Reis
2015/03/09 23:39:24
nit: routing ID
|
// embedder that will serve as a contentWindow proxy for the guest. |
virtual void DidAttach(int guest_proxy_routing_id) {} |
@@ -72,12 +73,6 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
bool last_unlocked_by_target, |
const base::Callback<void(bool)>& callback) {} |
- // Registers a |callback| with the delegate that the delegate would call when |
- // it is about to be destroyed. |
- typedef base::Callback<void()> DestructionCallback; |
- virtual void RegisterDestructionCallback( |
- const DestructionCallback& callback) {} |
- |
// Find the given |search_text| in the page. Returns true if the find request |
// is handled by this browser plugin guest delegate. |
virtual bool Find(int request_id, |
@@ -85,8 +80,9 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
const blink::WebFindOptions& options); |
virtual bool StopFinding(StopFindAction action); |
- // Provides the delegate with an interface with which to size the guest. |
- virtual void SetGuestSizer(GuestSizer* guest_sizer) {} |
+ // Provides the delegate with an interface with which to communicate with the |
+ // content module. |
+ virtual void SetGuestHost(GuestHost* guest_host) {} |
}; |
} // namespace content |