OLD | NEW |
---|---|
(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_MEDIA_ACCESS_HANDLER_H_ | |
6 #define CHROME_BROWSER_MEDIA_MEDIA_ACCESS_HANDLER_H_ | |
7 | |
8 #include <deque> | |
9 #include <map> | |
Sergey Ulanov
2015/05/07 01:05:48
remove these two includes. They are not used in th
changbin
2015/05/22 05:10:58
Done.
| |
10 | |
11 #include "base/callback.h" | |
12 #include "base/memory/scoped_ptr.h" | |
Sergey Ulanov
2015/05/07 01:05:48
Remove these two includes.
changbin
2015/05/22 05:10:58
content::MediaResponseCallback is actually base::C
| |
13 #include "content/public/common/media_stream_request.h" | |
14 | |
15 namespace content { | |
16 class WebContents; | |
17 } | |
18 | |
19 namespace extensions { | |
20 class Extension; | |
21 } | |
22 | |
23 // Interface for handling media access requests that are propagated from | |
24 // MediaCaptureDevicesDispatcher. | |
25 class MediaAccessHandler { | |
26 public: | |
27 MediaAccessHandler() {} | |
28 virtual ~MediaAccessHandler() {} | |
29 | |
30 virtual bool SupportsRequest(const content::MediaStreamRequest& request, | |
31 const extensions::Extension* extension) = 0; | |
32 virtual void HandleRequest(content::WebContents* web_contents, | |
33 const content::MediaStreamRequest& request, | |
34 const content::MediaResponseCallback& callback, | |
35 const extensions::Extension* extension) = 0; | |
36 }; | |
37 | |
38 #endif // CHROME_BROWSER_MEDIA_MEDIA_ACCESS_HANDLER_H_ | |
OLD | NEW |