Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / extensions / api / tab_capture / tab_capture_api.h
blob95a2e4265c5823ae820ecbbd4b74632996eec4eb
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 // Defines the Chrome Extensions Tab Capture API functions for accessing
6 // tab media streams.
8 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_
9 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_
11 #include "chrome/browser/extensions/api/tab_capture/tab_capture_registry.h"
12 #include "chrome/browser/extensions/chrome_extension_function.h"
13 #include "chrome/common/extensions/api/tab_capture.h"
15 namespace extensions {
17 // Extension ids for the chromecast.
18 extern const char* const kChromecastExtensionIds[7];
20 class TabCaptureCaptureFunction : public ChromeSyncExtensionFunction {
21 public:
22 DECLARE_EXTENSION_FUNCTION("tabCapture.capture", TABCAPTURE_CAPTURE)
24 protected:
25 ~TabCaptureCaptureFunction() override {}
27 // ExtensionFunction:
28 bool RunSync() override;
31 class TabCaptureGetCapturedTabsFunction : public ChromeSyncExtensionFunction {
32 public:
33 DECLARE_EXTENSION_FUNCTION("tabCapture.getCapturedTabs",
34 TABCAPTURE_GETCAPTUREDTABS)
36 protected:
37 ~TabCaptureGetCapturedTabsFunction() override {}
39 // ExtensionFunction:
40 bool RunSync() override;
43 } // namespace extensions
45 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_TAB_CAPTURE_API_H_