electron/brightray/browser/default_web_contents_delegate.cc
Adam Roben 2595335045 Enable navigator.webkitGetUserMedia()
The code came from chrome/browser/media, but was simplified to remove
dependencies on other parts of chrome/ and to always allow the media stream
request.
2013-07-31 11:08:45 -07:00

21 lines
546 B
C++

#include "browser/default_web_contents_delegate.h"
#include "browser/media/media_stream_devices_controller.h"
namespace brightray {
DefaultWebContentsDelegate::DefaultWebContentsDelegate() {
}
DefaultWebContentsDelegate::~DefaultWebContentsDelegate() {
}
void DefaultWebContentsDelegate::RequestMediaAccessPermission(
content::WebContents*,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback) {
MediaStreamDevicesController controller(request, callback);
controller.TakeAction();
}
}