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

Unified Diff: chromecast/media/cdm/browser_cdm_cast.h

Issue 835963005: Chromecast: use PlayerTrackerImpl in BrowserCdmCast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removes unnecessary includes Created 5 years, 11 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
« no previous file with comments | « no previous file | chromecast/media/cdm/browser_cdm_cast.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cdm/browser_cdm_cast.h
diff --git a/chromecast/media/cdm/browser_cdm_cast.h b/chromecast/media/cdm/browser_cdm_cast.h
index f81c0d8e093874a8ca9e61f550a60bd6b0833ada..6a51ddc39806d6e1031379be9098409a3c1ec4ee 100644
--- a/chromecast/media/cdm/browser_cdm_cast.h
+++ b/chromecast/media/cdm/browser_cdm_cast.h
@@ -14,6 +14,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "media/base/browser_cdm.h"
+#include "media/cdm/player_tracker_impl.h"
namespace chromecast {
namespace media {
@@ -43,13 +44,11 @@ class BrowserCdmCast : public ::media::BrowserCdm {
const std::string& key_id) const = 0;
protected:
- // Notifies all listeners a new key was added on the next message loop cycle.
- void NotifyKeyAdded() const;
+ // Notifies all listeners a new key was added.
+ void NotifyKeyAdded();
private:
- uint32_t next_registration_id_;
- std::map<uint32_t, base::Closure> new_key_callbacks_;
- std::map<uint32_t, base::Closure> cdm_unset_callbacks_;
+ ::media::PlayerTrackerImpl player_tracker_;
DISALLOW_COPY_AND_ASSIGN(BrowserCdmCast);
};
« no previous file with comments | « no previous file | chromecast/media/cdm/browser_cdm_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698