Recent changes have added GUARDED_BY() as an annotation that a protected member is protected by a base::Lock, and enables compile-time analysis to verify this [1]. This should be enabled in all media/ code.
Some code has comments to reflect this, e.g.
KeyIdToSessionKeysMap key_map_; // Protected by |key_map_lock_|.
However, most code in media/ doesn't indicate what field(s) are protected.
[1] https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/chromium-dev/mG5sfyU1GGk/f08tf3LrAgAJ
Comment 1 by bugdroid1@chromium.org
, Oct 11