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

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: hta 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 46acb9b55a8e2083148cdf61c1ea81b16756ae3a..9755ececda83d19d1750110a84ba03b8d2b7ff5a 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 */,
+ GURL /* security origin */)
palmer 2016/04/26 23:25:02 Use url::Origin, not GURL, for this purpose.
Guido Urdaneta 2016/05/01 11:08:40 Done. Changed the rest of the file in a separate C
+
+// Cancel notifications about changes in the set of media devices.
+IPC_MESSAGE_CONTROL1(MediaStreamHostMsg_CancelDeviceChangeNotifications,
+ int /* render frame id */)

Powered by Google App Engine
This is Rietveld 408576698