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

Unified Diff: content/common/media/media_stream_messages.h

Issue 1918173002: Add support for device-change notifications to MediaStreamDispatcher and MediaStreamDispatcherHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and palmer's comments Created 4 years, 8 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
Index: content/common/media/media_stream_messages.h
diff --git a/content/common/media/media_stream_messages.h b/content/common/media/media_stream_messages.h
index 9a745a14b0369e423f0d16cbb7ac784285010c4d..d4847c214644679e3894dc00a2c978873920220c 100644
--- a/content/common/media/media_stream_messages.h
+++ b/content/common/media/media_stream_messages.h
@@ -95,6 +95,9 @@ IPC_MESSAGE_ROUTED3(MediaStreamMsg_DeviceOpened,
IPC_MESSAGE_ROUTED1(MediaStreamMsg_DeviceOpenFailed,
int /* request id */)
+// The browser has detected a change in the set of media devices.
+IPC_MESSAGE_ROUTED0(MediaStreamMsg_DevicesChanged)
+
// Messages sent from the renderer to the browser.
// Request a new media stream.
@@ -140,3 +143,12 @@ IPC_MESSAGE_CONTROL5(MediaStreamHostMsg_OpenDevice,
IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_CloseDevice,
int /* render frame id */,
std::string /*label*/)
+
+// Subscribe to notifications about changes in the set of media devices.
+IPC_MESSAGE_CONTROL2(MediaStreamHostMsg_SubscribeToDeviceChangeNotifications,
+ int /* render frame id */,
+ url::Origin /* security origin */)
+
+// Cancel notifications about changes in the set of media devices.
+IPC_MESSAGE_CONTROL1(MediaStreamHostMsg_CancelDeviceChangeNotifications,
+ int /* render frame id */)
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | content/renderer/media/media_stream_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698