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", |