Upstream version 11.40.271.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / api / app_view / app_view_guest_internal_api.h
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.
4
5 #ifndef EXTENSIONS_BROWSER_API_APP_VIEW_APP_VIEW_GUEST_INTERNAL_API_H_
6 #define EXTENSIONS_BROWSER_API_APP_VIEW_APP_VIEW_GUEST_INTERNAL_API_H_
7
8 #include "extensions/browser/extension_function.h"
9
10 namespace extensions {
11
12 class AppViewGuestInternalAttachFrameFunction : public AsyncExtensionFunction {
13  public:
14   DECLARE_EXTENSION_FUNCTION("appViewGuestInternal.attachFrame",
15                              APPVIEWINTERNAL_ATTACHFRAME);
16   AppViewGuestInternalAttachFrameFunction();
17
18  protected:
19   ~AppViewGuestInternalAttachFrameFunction() override {}
20   bool RunAsync() final;
21
22  private:
23   DISALLOW_COPY_AND_ASSIGN(AppViewGuestInternalAttachFrameFunction);
24 };
25
26 class AppViewGuestInternalDenyRequestFunction : public AsyncExtensionFunction {
27  public:
28   DECLARE_EXTENSION_FUNCTION("appViewGuestInternal.denyRequest",
29                              APPVIEWINTERNAL_DENYREQUEST);
30   AppViewGuestInternalDenyRequestFunction();
31
32  protected:
33   ~AppViewGuestInternalDenyRequestFunction() override {}
34   bool RunAsync() final;
35
36  private:
37   DISALLOW_COPY_AND_ASSIGN(AppViewGuestInternalDenyRequestFunction);
38 };
39
40 }  // namespace extensions
41
42 #endif  // EXTENSIONS_BROWSER_API_APP_VIEW_APP_VIEW_GUEST_INTERNAL_API_H_