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

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

Issue 2746873004: Move ChromeOS login media access logic into a MediaAccessHandler (Closed)
Patch Set: Move ChromeOS login media access logic into a MediaAccessHandler Created 3 years, 8 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_EXTENSION_MEDIA_ACCESS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_
6 #define CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_ 6 #define CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_
7 7
8 #include "chrome/browser/media/media_access_handler.h" 8 #include "chrome/browser/media/media_access_handler.h"
9 9
10 // MediaAccessHandler for extension capturing requests. 10 // MediaAccessHandler for extension capturing requests.
11 class ExtensionMediaAccessHandler : public MediaAccessHandler { 11 class ExtensionMediaAccessHandler : public MediaAccessHandler {
12 public: 12 public:
13 ExtensionMediaAccessHandler(); 13 ExtensionMediaAccessHandler();
14 ~ExtensionMediaAccessHandler() override; 14 ~ExtensionMediaAccessHandler() override;
15 15
16 // MediaAccessHandler implementation. 16 // MediaAccessHandler implementation.
17 bool SupportsStreamType(const content::MediaStreamType type, 17 bool SupportsStreamType(content::WebContents* web_contents,
18 const content::MediaStreamType type,
18 const extensions::Extension* extension) override; 19 const extensions::Extension* extension) override;
19 bool CheckMediaAccessPermission( 20 bool CheckMediaAccessPermission(
20 content::WebContents* web_contents, 21 content::WebContents* web_contents,
21 const GURL& security_origin, 22 const GURL& security_origin,
22 content::MediaStreamType type, 23 content::MediaStreamType type,
23 const extensions::Extension* extension) override; 24 const extensions::Extension* extension) override;
24 void HandleRequest(content::WebContents* web_contents, 25 void HandleRequest(content::WebContents* web_contents,
25 const content::MediaStreamRequest& request, 26 const content::MediaStreamRequest& request,
26 const content::MediaResponseCallback& callback, 27 const content::MediaResponseCallback& callback,
27 const extensions::Extension* extension) override; 28 const extensions::Extension* extension) override;
28 }; 29 };
29 30
30 #endif // CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_ 31 #endif // CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/chromeos_login_media_access_handler.cc ('k') | chrome/browser/media/extension_media_access_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698