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

Unified Diff: chromecast/media/base/decrypt_context.h

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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: chromecast/media/base/decrypt_context.h
diff --git a/chromecast/media/base/decrypt_context.h b/chromecast/media/base/decrypt_context.h
deleted file mode 100644
index 5d053c0cafadcb78f48e00c05be28768586b3e72..0000000000000000000000000000000000000000
--- a/chromecast/media/base/decrypt_context.h
+++ /dev/null
@@ -1,46 +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 CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_H_
-#define CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "chromecast/media/base/key_systems_common.h"
-
-namespace crypto {
-class SymmetricKey;
-}
-
-namespace chromecast {
-namespace media {
-
-// Base class of a decryption context: a decryption context gathers all the
-// information needed to decrypt frames with a given key id.
-// Each CDM should implement this and add fields needed to fully describe a
-// decryption context.
-//
-class DecryptContext : public base::RefCountedThreadSafe<DecryptContext> {
- public:
- explicit DecryptContext(CastKeySystem key_system);
-
- CastKeySystem key_system() const { return key_system_; }
-
- // Returns the clear key if available, NULL otherwise.
- virtual crypto::SymmetricKey* GetKey() const;
-
- protected:
- friend class base::RefCountedThreadSafe<DecryptContext>;
- virtual ~DecryptContext();
-
- private:
- CastKeySystem key_system_;
-
- DISALLOW_COPY_AND_ASSIGN(DecryptContext);
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_MEDIA_BASE_DECRYPT_CONTEXT_H_

Powered by Google App Engine
This is Rietveld 408576698