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

Unified Diff: media/base/browser_cdm_factory.h

Issue 1408793009: media: Remove BrowserCdmFactory inferface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment for DEPS change. Created 5 years, 1 month 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 | « media/base/android/browser_cdm_factory_android.cc ('k') | media/base/browser_cdm_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/browser_cdm_factory.h
diff --git a/media/base/browser_cdm_factory.h b/media/base/browser_cdm_factory.h
deleted file mode 100644
index 8a05a67bda97e4a824b158650dbcdb9bd9361ff9..0000000000000000000000000000000000000000
--- a/media/base/browser_cdm_factory.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 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 MEDIA_BASE_BROWSER_CDM_FACTORY_H_
-#define MEDIA_BASE_BROWSER_CDM_FACTORY_H_
-
-#include <string>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "media/base/media_export.h"
-#include "media/base/media_keys.h"
-
-namespace media {
-
-// TODO(xhwang): Merge this with media::CdmFactory.
-class MEDIA_EXPORT BrowserCdmFactory {
- public:
- BrowserCdmFactory() {}
- virtual ~BrowserCdmFactory() {}
-
- virtual scoped_refptr<MediaKeys> CreateBrowserCdm(
- const std::string& key_system,
- bool use_hw_secure_codecs,
- const SessionMessageCB& session_message_cb,
- const SessionClosedCB& session_closed_cb,
- const LegacySessionErrorCB& legacy_session_error_cb,
- const SessionKeysChangeCB& session_keys_change_cb,
- const SessionExpirationUpdateCB& session_expiration_update_cb) = 0;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(BrowserCdmFactory);
-};
-
-// Provides a factory for creating BrowserCdm instances. There is only one
-// BrowserCdmFactory per process.
-void SetBrowserCdmFactory(BrowserCdmFactory* factory);
-
-// Creates a MediaKeys for |key_system|. Returns NULL if the CDM cannot be
-// created.
-// |use_hw_secure_codecs| indicates that the CDM should be configured to use
-// hardware-secure codecs (for platforms that support it).
-// TODO(xhwang): Add ifdef for IPC based CDM.
-scoped_refptr<MediaKeys> MEDIA_EXPORT
-CreateBrowserCdm(const std::string& key_system,
- bool use_hw_secure_codecs,
- const SessionMessageCB& session_message_cb,
- const SessionClosedCB& session_closed_cb,
- const LegacySessionErrorCB& legacy_session_error_cb,
- const SessionKeysChangeCB& session_keys_change_cb,
- const SessionExpirationUpdateCB& session_expiration_update_cb);
-
-} // namespace media
-
-#endif // MEDIA_BASE_BROWSER_CDM_FACTORY_H_
« no previous file with comments | « media/base/android/browser_cdm_factory_android.cc ('k') | media/base/browser_cdm_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698