Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / browser / extensions / api / context_menus / context_menus_api.h
blob8c05e683a3cdb53316e6b2a1c51cae363a4859c1
1 // Copyright (c) 2012 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_CONTEXT_MENUS_CONTEXT_MENUS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_
8 #include "chrome/browser/extensions/chrome_extension_function.h"
10 namespace extensions {
12 class ContextMenusCreateFunction : public ChromeSyncExtensionFunction {
13 public:
14 DECLARE_EXTENSION_FUNCTION("contextMenus.create", CONTEXTMENUS_CREATE)
16 protected:
17 ~ContextMenusCreateFunction() override {}
19 // ExtensionFunction:
20 bool RunSync() override;
23 class ContextMenusUpdateFunction : public ChromeSyncExtensionFunction {
24 public:
25 DECLARE_EXTENSION_FUNCTION("contextMenus.update", CONTEXTMENUS_UPDATE)
27 protected:
28 ~ContextMenusUpdateFunction() override {}
30 // ExtensionFunction:
31 bool RunSync() override;
34 class ContextMenusRemoveFunction : public ChromeSyncExtensionFunction {
35 public:
36 DECLARE_EXTENSION_FUNCTION("contextMenus.remove", CONTEXTMENUS_REMOVE)
38 protected:
39 ~ContextMenusRemoveFunction() override {}
41 // ExtensionFunction:
42 bool RunSync() override;
45 class ContextMenusRemoveAllFunction : public ChromeSyncExtensionFunction {
46 public:
47 DECLARE_EXTENSION_FUNCTION("contextMenus.removeAll", CONTEXTMENUS_REMOVEALL)
49 protected:
50 ~ContextMenusRemoveAllFunction() override {}
52 // ExtensionFunction:
53 bool RunSync() override;
56 } // namespace extensions
58 #endif // CHROME_BROWSER_EXTENSIONS_API_CONTEXT_MENUS_CONTEXT_MENUS_API_H_