From https://chromium-review.googlesource.com/c/chromium/src/+/656597/6/content/public/browser/desktop_media_id.cc#176
I'm suggesting to replace "audio_share" boolean field in DesktopMediaID with an enum field that will indicated what type of media is being requested. It would have have 3 allowed values: AUDIO, VIDEO and AUDIO_VIDEO (probably better to make it a bitmask with two bits for audio and video). Type enum will stay the same.
Currently 'type' indicates the source type, while 'audio_share' flag indicates type of the media that's being received from that source (video or video+audio). So |type| is not the best name for that field. It may be better if we rename it to source_type.
Comment 1 by bugdroid1@chromium.org
, Sep 27 2017