Implement CheckMediaAccessPermission

Part of the fixes for #1017.
This commit is contained in:
Cheng Zhao 2015-01-23 15:12:24 -08:00
parent 4bbe026d48
commit 98bf5bf3ed
2 changed files with 12 additions and 2 deletions

View file

@ -10,6 +10,13 @@ DefaultWebContentsDelegate::DefaultWebContentsDelegate() {
DefaultWebContentsDelegate::~DefaultWebContentsDelegate() {
}
bool DefaultWebContentsDelegate::CheckMediaAccessPermission(
content::WebContents* web_contents,
const GURL& security_origin,
content::MediaStreamType type) {
return true;
}
void DefaultWebContentsDelegate::RequestMediaAccessPermission(
content::WebContents*,
const content::MediaStreamRequest& request,

View file

@ -13,12 +13,15 @@ class DefaultWebContentsDelegate : public content::WebContentsDelegate {
~DefaultWebContentsDelegate();
protected:
virtual void RequestMediaAccessPermission(
bool CheckMediaAccessPermission(content::WebContents* web_contents,
const GURL& security_origin,
content::MediaStreamType type) override;
void RequestMediaAccessPermission(
content::WebContents*,
const content::MediaStreamRequest&,
const content::MediaResponseCallback&) override;
#if defined(OS_MACOSX)
virtual void HandleKeyboardEvent(
void HandleKeyboardEvent(
content::WebContents*, const content::NativeWebKeyboardEvent&) override;
#endif
};