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 |