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

Unified Diff: media/cdm/player_tracker_impl.h

Issue 1341883003: Prepare MediaDrmBridge to work with MediaCodecPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug526755
Patch Set: Cleanup of MediaDrmBridge Created 5 years, 3 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: media/cdm/player_tracker_impl.h
diff --git a/media/cdm/player_tracker_impl.h b/media/cdm/player_tracker_impl.h
index 6d4cee3b879eec66ecaf868ae6f83096be20b18a..569dd04dbf317f0cd9316133cdc2cff691e82129 100644
--- a/media/cdm/player_tracker_impl.h
+++ b/media/cdm/player_tracker_impl.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/callback.h"
+#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "media/base/media_export.h"
#include "media/base/player_tracker.h"
@@ -46,6 +47,10 @@ class MEDIA_EXPORT PlayerTrackerImpl : public PlayerTracker {
base::ThreadChecker thread_checker_;
+ // Unable to post RegisterPlayer() to another thread since it returns the new
+ // id.
+ base::Lock lock_;
Tima Vaisburd 2015/09/14 20:42:33 The lock is here because RegisterPlayer() has the
+
DISALLOW_COPY_AND_ASSIGN(PlayerTrackerImpl);
};

Powered by Google App Engine
This is Rietveld 408576698