2013-03-14 17:48:17 +00:00
|
|
|
#include "browser/default_web_contents_delegate.h"
|
|
|
|
|
2013-07-31 18:08:45 +00:00
|
|
|
#include "browser/media/media_stream_devices_controller.h"
|
|
|
|
|
2013-03-14 17:48:17 +00:00
|
|
|
namespace brightray {
|
|
|
|
|
|
|
|
DefaultWebContentsDelegate::DefaultWebContentsDelegate() {
|
|
|
|
}
|
|
|
|
|
|
|
|
DefaultWebContentsDelegate::~DefaultWebContentsDelegate() {
|
|
|
|
}
|
|
|
|
|
2013-07-31 18:08:45 +00:00
|
|
|
void DefaultWebContentsDelegate::RequestMediaAccessPermission(
|
|
|
|
content::WebContents*,
|
|
|
|
const content::MediaStreamRequest& request,
|
|
|
|
const content::MediaResponseCallback& callback) {
|
|
|
|
MediaStreamDevicesController controller(request, callback);
|
|
|
|
controller.TakeAction();
|
|
|
|
}
|
|
|
|
|
2013-11-17 22:52:24 +00:00
|
|
|
} // namespace brightray
|