Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2660)

Unified Diff: Source/web/UserMediaClientImpl.cpp

Issue 135363004: MediaStream API: Patch #1 of implementing navigator.getMediaDevices (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed year Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/UserMediaClientImpl.h ('k') | Source/web/WebMediaDevicesRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/UserMediaClientImpl.cpp
diff --git a/Source/web/UserMediaClientImpl.cpp b/Source/web/UserMediaClientImpl.cpp
index 31e2756d24734d1adcff022837b886f214e53a1e..6c9d678cce85080929555b6160ab1967b95f65b5 100644
--- a/Source/web/UserMediaClientImpl.cpp
+++ b/Source/web/UserMediaClientImpl.cpp
@@ -31,11 +31,11 @@
#include "config.h"
#include "UserMediaClientImpl.h"
+#include "WebMediaDevicesRequest.h"
#include "WebUserMediaClient.h"
#include "WebUserMediaRequest.h"
#include "WebViewClient.h"
#include "WebViewImpl.h"
-#include "public/platform/WebMediaStreamSource.h"
#include "wtf/RefPtr.h"
using namespace WebCore;
@@ -59,4 +59,16 @@ void UserMediaClientImpl::cancelUserMediaRequest(UserMediaRequest* request)
m_client->cancelUserMediaRequest(WebUserMediaRequest(request));
}
+void UserMediaClientImpl::requestMediaDevices(PassRefPtr<WebCore::MediaDevicesRequest> request)
+{
+ if (m_client)
+ m_client->requestMediaDevices(request);
+}
+
+void UserMediaClientImpl::cancelMediaDevicesRequest(WebCore::MediaDevicesRequest* request)
+{
+ if (m_client)
+ m_client->cancelMediaDevicesRequest(WebMediaDevicesRequest(request));
+}
+
} // namespace blink
« no previous file with comments | « Source/web/UserMediaClientImpl.h ('k') | Source/web/WebMediaDevicesRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698