blob: 4ee668f180eb89bd3a7df1cd5bf4c89a53e6db83 [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_
#define EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_
#include "extensions/browser/extension_function.h"
namespace extensions {
class GuestViewInternalCreateGuestFunction : public ExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest",
GUESTVIEWINTERNAL_CREATEGUEST)
GuestViewInternalCreateGuestFunction();
GuestViewInternalCreateGuestFunction(
const GuestViewInternalCreateGuestFunction&) = delete;
GuestViewInternalCreateGuestFunction& operator=(
const GuestViewInternalCreateGuestFunction&) = delete;
protected:
~GuestViewInternalCreateGuestFunction() override;
// ExtensionFunction:
ResponseAction Run() final;
private:
void CreateGuestCallback(content::WebContents* guest_web_contents);
};
class GuestViewInternalSetSizeFunction : public ExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("guestViewInternal.setSize",
GUESTVIEWINTERNAL_SETAUTOSIZE)
GuestViewInternalSetSizeFunction();
GuestViewInternalSetSizeFunction(const GuestViewInternalSetSizeFunction&) =
delete;
GuestViewInternalSetSizeFunction& operator=(
const GuestViewInternalSetSizeFunction&) = delete;
protected:
~GuestViewInternalSetSizeFunction() override;
// ExtensionFunction:
ResponseAction Run() final;
};
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_