No dual_mode on Win10+ shortcuts.
[chromium-blink-merge.git] / chrome / browser / media / extension_media_access_handler.h
blob3f6a1461f407aae914e6fd44eacc8f8000b3c202
1 // Copyright 2015 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_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_
6 #define CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_
8 #include "chrome/browser/media/media_access_handler.h"
10 class MediaStreamCaptureIndicator;
12 // MediaAccessHandler for extension capturing requests.
13 class ExtensionMediaAccessHandler : public MediaAccessHandler {
14 public:
15 ExtensionMediaAccessHandler();
16 ~ExtensionMediaAccessHandler() override;
18 // MediaAccessHandler implementation.
19 bool SupportsStreamType(const content::MediaStreamType type,
20 const extensions::Extension* extension) override;
21 bool CheckMediaAccessPermission(
22 content::WebContents* web_contents,
23 const GURL& security_origin,
24 content::MediaStreamType type,
25 const extensions::Extension* extension) override;
26 void HandleRequest(content::WebContents* web_contents,
27 const content::MediaStreamRequest& request,
28 const content::MediaResponseCallback& callback,
29 const extensions::Extension* extension) override;
32 #endif // CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_