Commit c60d6c12 authored by Chris Pearce's avatar Chris Pearce
Browse files

Bug 1315850 - Add CDMProxy::AsChromiumCDMProxy(). r=gerald

This means the EME PDM implementation can safely tell when a CDMProxy is a
ChromiumCDMProxy, so we can create an appropriate MediaDataDecoder for it (in
the next patch).

MozReview-Commit-ID: CpL6QRa7SwJ

--HG--
extra : rebase_source : 3821c378c73067066f3cc67499680bdf546fb4f0
parent dd99f726
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@

namespace mozilla {
class MediaRawData;
class ChromiumCDMProxy;

enum DecryptStatus {
  Ok = 0,
@@ -223,6 +224,8 @@ public:

  virtual uint32_t GetDecryptorId() { return 0; }

  virtual ChromiumCDMProxy* AsChromiumCDMProxy() { return nullptr; }

protected:
  virtual ~CDMProxy() {}

+2 −0
Original line number Diff line number Diff line
@@ -107,6 +107,8 @@ public:
  bool IsOnOwnerThread() override;
#endif

  ChromiumCDMProxy* AsChromiumCDMProxy() override { return this; }

private:
  void OnCDMCreated(uint32_t aPromiseId);