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

Unified Diff: Source/modules/mediastream/UserMediaController.h

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/modules/mediastream/UserMediaClient.h ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/UserMediaController.h
diff --git a/Source/modules/mediastream/UserMediaController.h b/Source/modules/mediastream/UserMediaController.h
index 87d4a506a2c63861c288640baf18948f3ed945a1..eef9bb8934093e880f2b51b48a55b16d76a3d7d0 100644
--- a/Source/modules/mediastream/UserMediaController.h
+++ b/Source/modules/mediastream/UserMediaController.h
@@ -31,6 +31,7 @@
namespace WebCore {
+class MediaDevicesRequest;
class UserMediaRequest;
class UserMediaController FINAL : public Supplement<Page> {
@@ -38,9 +39,13 @@ public:
virtual ~UserMediaController();
UserMediaClient* client() const { return m_client; }
+
void requestUserMedia(PassRefPtr<UserMediaRequest>);
void cancelUserMediaRequest(UserMediaRequest*);
+ void requestMediaDevices(PassRefPtr<MediaDevicesRequest>);
+ void cancelMediaDevicesRequest(MediaDevicesRequest*);
+
static PassOwnPtr<UserMediaController> create(UserMediaClient*);
static const char* supplementName();
static UserMediaController* from(Page* page) { return static_cast<UserMediaController*>(Supplement<Page>::from(page, supplementName())); }
@@ -62,6 +67,16 @@ inline void UserMediaController::cancelUserMediaRequest(UserMediaRequest* reques
m_client->cancelUserMediaRequest(request);
}
+inline void UserMediaController::requestMediaDevices(PassRefPtr<MediaDevicesRequest> request)
+{
+ m_client->requestMediaDevices(request);
+}
+
+inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest* request)
+{
+ m_client->cancelMediaDevicesRequest(request);
+}
+
} // namespace WebCore
#endif // UserMediaController_h
« no previous file with comments | « Source/modules/mediastream/UserMediaClient.h ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698