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.
This commit is contained in:
Adam Roben 2013-07-31 11:08:45 -07:00
parent bd648ce58f
commit 2595335045
9 changed files with 402 additions and 4 deletions

View file

@ -2,11 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser_client.h"
#include "browser/browser_client.h"
#include "browser_context.h"
#include "browser_main_parts.h"
#include "notification_presenter.h"
#include "browser/browser_context.h"
#include "browser/browser_main_parts.h"
#include "browser/media/media_capture_devices_dispatcher.h"
#include "browser/notification_presenter.h"
namespace brightray {
@ -76,4 +77,8 @@ void BrowserClient::CancelDesktopNotification(
presenter->CancelNotification(render_process_id, render_view_id, notification_id);
}
content::MediaObserver* BrowserClient::GetMediaObserver() {
return MediaCaptureDevicesDispatcher::GetInstance();
}
}