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

Unified Diff: extensions/browser/api/guest_view/guest_view_internal_api.h

Issue 618823002: GuestView: Move lifetime management out of content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 6 years, 3 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: extensions/browser/api/guest_view/guest_view_internal_api.h
diff --git a/extensions/browser/api/guest_view/guest_view_internal_api.h b/extensions/browser/api/guest_view/guest_view_internal_api.h
index d6d54ce00c325eb8a4c459d3082c743abc7df02d..13d7a42d06cc733f2491b555b4429c48bf7ed99c 100644
--- a/extensions/browser/api/guest_view/guest_view_internal_api.h
+++ b/extensions/browser/api/guest_view/guest_view_internal_api.h
@@ -24,6 +24,21 @@ class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction {
DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction);
};
+class GuestViewInternalDestroyGuestFunction : public AsyncExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("guestViewInternal.destroyGuest",
+ GUESTVIEWINTERNAL_DESTROYGUEST);
+ GuestViewInternalDestroyGuestFunction();
+
+ protected:
+ virtual ~GuestViewInternalDestroyGuestFunction();
+ virtual bool RunAsync() OVERRIDE FINAL;
+
+ private:
+ void DestroyGuestCallback(content::WebContents* guest_web_contents);
+ DISALLOW_COPY_AND_ASSIGN(GuestViewInternalDestroyGuestFunction);
+};
+
class GuestViewInternalSetAutoSizeFunction : public AsyncExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("guestViewInternal.setAutoSize",

Powered by Google App Engine
This is Rietveld 408576698