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

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

Issue 2586353002: [Chromecast][Clean-Up] Remove CastCdmProxy. (Closed)
Patch Set: Created 4 years 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 | « chromecast/media/cdm/cast_cdm_factory.cc ('k') | chromecast/media/cdm/cast_cdm_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cdm/cast_cdm_proxy.h
diff --git a/chromecast/media/cdm/cast_cdm_proxy.h b/chromecast/media/cdm/cast_cdm_proxy.h
deleted file mode 100644
index f17c4c199dab495884ce223d12444bcba7b87826..0000000000000000000000000000000000000000
--- a/chromecast/media/cdm/cast_cdm_proxy.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMECAST_MEDIA_CDM_CAST_CDM_PROXY_H_
-#define CHROMECAST_MEDIA_CDM_CAST_CDM_PROXY_H_
-
-#include <stdint.h>
-
-#include "base/threading/thread_checker.h"
-#include "chromecast/media/cdm/cast_cdm.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-}
-
-namespace chromecast {
-namespace media {
-
-// MediaKeys implementation that lives on the UI thread and forwards all calls
-// to a CastCdm instance on the CMA thread. This is used to simplify the
-// UI-CMA threading interaction.
-// TODO(slan): Remove this class when CMA is deprecated.
-class CastCdmProxy : public ::media::MediaKeys {
- public:
- CastCdmProxy(const scoped_refptr<CastCdm>& cast_cdm,
- const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
-
- // Returns the CDM instance which lives on the CMA thread.
- CastCdm* cast_cdm() const;
-
- private:
- ~CastCdmProxy() override;
-
- // ::media::MediaKeys implementation:
- void SetServerCertificate(
- const std::vector<uint8_t>& certificate,
- std::unique_ptr<::media::SimpleCdmPromise> promise) override;
- void CreateSessionAndGenerateRequest(
- ::media::MediaKeys::SessionType session_type,
- ::media::EmeInitDataType init_data_type,
- const std::vector<uint8_t>& init_data,
- std::unique_ptr<::media::NewSessionCdmPromise> promise) override;
- void LoadSession(
- ::media::MediaKeys::SessionType session_type,
- const std::string& session_id,
- std::unique_ptr<::media::NewSessionCdmPromise> promise) override;
- void UpdateSession(
- const std::string& session_id,
- const std::vector<uint8_t>& response,
- std::unique_ptr<::media::SimpleCdmPromise> promise) override;
- void CloseSession(
- const std::string& session_id,
- std::unique_ptr<::media::SimpleCdmPromise> promise) override;
- void RemoveSession(
- const std::string& session_id,
- std::unique_ptr<::media::SimpleCdmPromise> promise) override;
- ::media::CdmContext* GetCdmContext() override;
-
- scoped_refptr<CastCdm> cast_cdm_;
- scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
-
- base::ThreadChecker thread_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(CastCdmProxy);
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_MEDIA_CDM_CAST_CDM_PROXY_H_
« no previous file with comments | « chromecast/media/cdm/cast_cdm_factory.cc ('k') | chromecast/media/cdm/cast_cdm_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698