OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_TAB_CAPTURE_ACCESS_HANDLER_H_ |
6 #define CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_TAB_CAPTURE_ACCESS_HANDLER_H_ |
7 | 7 |
8 #include "chrome/browser/media/capture_access_handler_base.h" | 8 #include "chrome/browser/media/capture_access_handler_base.h" |
9 | 9 |
10 // MediaAccessHandler for TabCapture API. | 10 // MediaAccessHandler for TabCapture API. |
11 class TabCaptureAccessHandler : public CaptureAccessHandlerBase { | 11 class TabCaptureAccessHandler : public CaptureAccessHandlerBase { |
12 public: | 12 public: |
13 TabCaptureAccessHandler(); | 13 TabCaptureAccessHandler(); |
14 ~TabCaptureAccessHandler() override; | 14 ~TabCaptureAccessHandler() override; |
15 | 15 |
16 // MediaAccessHandler implementation. | 16 // MediaAccessHandler implementation. |
17 bool SupportsStreamType(const content::MediaStreamType type, | 17 bool SupportsStreamType(const content::MediaStreamType type, |
18 const extensions::Extension* extension) override; | 18 const extensions::Extension* extension) override; |
19 bool CheckMediaAccessPermission( | 19 bool CheckMediaAccessPermission( |
20 content::WebContents* web_contents, | 20 content::WebContents* web_contents, |
21 const GURL& security_origin, | 21 const GURL& security_origin, |
22 content::MediaStreamType type, | 22 content::MediaStreamType type, |
23 const extensions::Extension* extension) override; | 23 const extensions::Extension* extension) override; |
24 void HandleRequest(content::WebContents* web_contents, | 24 void HandleRequest(content::WebContents* web_contents, |
25 const content::MediaStreamRequest& request, | 25 const content::MediaStreamRequest& request, |
26 const content::MediaResponseCallback& callback, | 26 const content::MediaResponseCallback& callback, |
27 const extensions::Extension* extension) override; | 27 const extensions::Extension* extension) override; |
28 }; | 28 }; |
29 | 29 |
30 #endif // CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ | 30 #endif // CHROME_BROWSER_MEDIA_WEBRTC_TAB_CAPTURE_ACCESS_HANDLER_H_ |
OLD | NEW |