Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_SAML_MEDIA_ACCESS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_ | 6 #define CHROME_BROWSER_MEDIA_SAML_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 media requests coming from SAML login pages on |
|
Sergey Ulanov
2017/03/15 22:48:31
I have no idea what "SAML" is. Is it "Security Ass
raymes
2017/03/16 02:30:37
Me neither actually :) +achuith to clarify.
achuithb
2017/03/16 03:46:04
Yes, it's a scheme for federated identity provider
| |
| 11 class ExtensionMediaAccessHandler : public MediaAccessHandler { | 11 // ChromeOS. |
| 12 class SamlMediaAccessHandler : public MediaAccessHandler { | |
| 12 public: | 13 public: |
| 13 ExtensionMediaAccessHandler(); | 14 SamlMediaAccessHandler(); |
| 14 ~ExtensionMediaAccessHandler() override; | 15 ~SamlMediaAccessHandler() override; |
| 15 | 16 |
| 16 // MediaAccessHandler implementation. | 17 // MediaAccessHandler implementation. |
| 17 bool SupportsStreamType(const content::MediaStreamType type, | 18 bool SupportsStreamType(content::WebContents* web_contents, |
| 19 const content::MediaStreamType type, | |
| 18 const extensions::Extension* extension) override; | 20 const extensions::Extension* extension) override; |
| 19 bool CheckMediaAccessPermission( | 21 bool CheckMediaAccessPermission( |
| 20 content::WebContents* web_contents, | 22 content::WebContents* web_contents, |
| 21 const GURL& security_origin, | 23 const GURL& security_origin, |
| 22 content::MediaStreamType type, | 24 content::MediaStreamType type, |
| 23 const extensions::Extension* extension) override; | 25 const extensions::Extension* extension) override; |
| 24 void HandleRequest(content::WebContents* web_contents, | 26 void HandleRequest(content::WebContents* web_contents, |
| 25 const content::MediaStreamRequest& request, | 27 const content::MediaStreamRequest& request, |
| 26 const content::MediaResponseCallback& callback, | 28 const content::MediaResponseCallback& callback, |
| 27 const extensions::Extension* extension) override; | 29 const extensions::Extension* extension) override; |
| 28 }; | 30 }; |
| 29 | 31 |
| 30 #endif // CHROME_BROWSER_MEDIA_EXTENSION_MEDIA_ACCESS_HANDLER_H_ | 32 #endif // CHROME_BROWSER_MEDIA_SAML_MEDIA_ACCESS_HANDLER_H_ |
| OLD | NEW |