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

Unified Diff: content/public/browser/browser_plugin_guest_delegate.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 nit Created 5 years, 9 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/guest_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fdc303798d43b4b89551ade1dacc45d00ca22865 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 {
@@ -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
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/browser/guest_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698