Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: chrome/browser/media/tab_capture_access_handler.h

Issue 1873293002: Report if video capturing meets output protection requirement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_TAB_CAPTURE_ACCESS_HANDLER_H_
6 #define CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ 6 #define CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_
7 7
8 #include "chrome/browser/media/capture_access_handler_base.h"
8 #include "chrome/browser/media/media_access_handler.h" 9 #include "chrome/browser/media/media_access_handler.h"
oshima 2016/05/07 14:41:49 is this still necessary?
xjz 2016/05/10 00:28:25 Removed.
9 10
10 class MediaStreamCaptureIndicator; 11 class MediaStreamCaptureIndicator;
oshima 2016/05/07 14:41:50 and this?
xjz 2016/05/10 00:28:25 Removed.
11 12
12 // MediaAccessHandler for TabCapture API. 13 // MediaAccessHandler for TabCapture API.
13 class TabCaptureAccessHandler : public MediaAccessHandler { 14 class TabCaptureAccessHandler : public CaptureAccessHandlerBase {
14 public: 15 public:
15 TabCaptureAccessHandler(); 16 TabCaptureAccessHandler();
16 ~TabCaptureAccessHandler() override; 17 ~TabCaptureAccessHandler() override;
17 18
18 // MediaAccessHandler implementation. 19 // MediaAccessHandler implementation.
19 bool SupportsStreamType(const content::MediaStreamType type, 20 bool SupportsStreamType(const content::MediaStreamType type,
20 const extensions::Extension* extension) override; 21 const extensions::Extension* extension) override;
21 bool CheckMediaAccessPermission( 22 bool CheckMediaAccessPermission(
22 content::WebContents* web_contents, 23 content::WebContents* web_contents,
23 const GURL& security_origin, 24 const GURL& security_origin,
24 content::MediaStreamType type, 25 content::MediaStreamType type,
25 const extensions::Extension* extension) override; 26 const extensions::Extension* extension) override;
26 void HandleRequest(content::WebContents* web_contents, 27 void HandleRequest(content::WebContents* web_contents,
27 const content::MediaStreamRequest& request, 28 const content::MediaStreamRequest& request,
28 const content::MediaResponseCallback& callback, 29 const content::MediaResponseCallback& callback,
29 const extensions::Extension* extension) override; 30 const extensions::Extension* extension) override;
30 }; 31 };
31 32
32 #endif // CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_ 33 #endif // CHROME_BROWSER_MEDIA_TAB_CAPTURE_ACCESS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698