Extensions cleanup: Merge IsSyncableApp+Extension, ShouldSyncApp+Extension
[chromium-blink-merge.git] / chrome / browser / extensions / api / desktop_capture / desktop_capture_api.h
blob4a507e443448bffb2553db0f3f1e2beb745873d3
1 // Copyright 2013 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_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_
8 #include "chrome/browser/extensions/api/desktop_capture/desktop_capture_base.h"
10 namespace extensions {
12 class DesktopCaptureChooseDesktopMediaFunction
13 : public DesktopCaptureChooseDesktopMediaFunctionBase {
14 public:
15 DECLARE_EXTENSION_FUNCTION("desktopCapture.chooseDesktopMedia",
16 DESKTOPCAPTURE_CHOOSEDESKTOPMEDIA)
18 DesktopCaptureChooseDesktopMediaFunction();
20 private:
21 ~DesktopCaptureChooseDesktopMediaFunction() override;
23 // ExtensionFunction overrides.
24 bool RunAsync() override;
27 class DesktopCaptureCancelChooseDesktopMediaFunction
28 : public DesktopCaptureCancelChooseDesktopMediaFunctionBase {
29 public:
30 DECLARE_EXTENSION_FUNCTION("desktopCapture.cancelChooseDesktopMedia",
31 DESKTOPCAPTURE_CANCELCHOOSEDESKTOPMEDIA)
33 DesktopCaptureCancelChooseDesktopMediaFunction();
35 private:
36 ~DesktopCaptureCancelChooseDesktopMediaFunction() override;
39 } // namespace extensions
41 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_