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

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

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 years, 3 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
(Empty)
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.
4
5 #ifndef CHROME_BROWSER_MEDIA_DESKTOP_CAPTURE_ACCESS_HANDLER_H_
6 #define CHROME_BROWSER_MEDIA_DESKTOP_CAPTURE_ACCESS_HANDLER_H_
7
8 #include <list>
9
10 #include "chrome/browser/media/capture_access_handler_base.h"
11 #include "chrome/browser/media/media_access_handler.h"
12
13 // MediaAccessHandler for DesktopCapture API.
14 class DesktopCaptureAccessHandler : public CaptureAccessHandlerBase {
15 public:
16 DesktopCaptureAccessHandler();
17 ~DesktopCaptureAccessHandler() override;
18
19 // MediaAccessHandler implementation.
20 bool SupportsStreamType(const content::MediaStreamType type,
21 const extensions::Extension* extension) override;
22 bool CheckMediaAccessPermission(
23 content::WebContents* web_contents,
24 const GURL& security_origin,
25 content::MediaStreamType type,
26 const extensions::Extension* extension) override;
27 void HandleRequest(content::WebContents* web_contents,
28 const content::MediaStreamRequest& request,
29 const content::MediaResponseCallback& callback,
30 const extensions::Extension* extension) override;
31
32 private:
33 void ProcessScreenCaptureAccessRequest(
34 content::WebContents* web_contents,
35 const content::MediaStreamRequest& request,
36 const content::MediaResponseCallback& callback,
37 const extensions::Extension* extension);
38
39 };
40
41 #endif // CHROME_BROWSER_MEDIA_DESKTOP_CAPTURE_ACCESS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/combined_desktop_media_list_unittest.cc ('k') | chrome/browser/media/desktop_capture_access_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698