1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_
8 #include "extensions/browser/extension_function.h"
10 namespace extensions {
12 class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction {
14 DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest",
15 GUESTVIEWINTERNAL_CREATEGUEST);
16 GuestViewInternalCreateGuestFunction();
19 virtual ~GuestViewInternalCreateGuestFunction() {}
20 virtual bool RunAsync() OVERRIDE FINAL;
23 void CreateGuestCallback(content::WebContents* guest_web_contents);
24 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction);
27 class GuestViewInternalSetAutoSizeFunction : public AsyncExtensionFunction {
29 DECLARE_EXTENSION_FUNCTION("guestViewInternal.setAutoSize",
30 GUESTVIEWINTERNAL_SETAUTOSIZE);
32 GuestViewInternalSetAutoSizeFunction();
35 virtual ~GuestViewInternalSetAutoSizeFunction();
36 virtual bool RunAsync() OVERRIDE FINAL;
39 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalSetAutoSizeFunction);
42 } // namespace extensions
44 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_