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

Side by Side Diff: chromecast/public/media/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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_PUBLIC_MEDIA_DECRYPT_CONTEXT_H_
6 #define CHROMECAST_PUBLIC_MEDIA_DECRYPT_CONTEXT_H_
7
8 #include <stdint.h>
9 #include <vector>
10
11 #include "cast_key_system.h"
12
13 namespace chromecast {
14 namespace media {
15 class CastDecoderBuffer;
16
17 // Provides the information needed to decrypt frames.
18 class DecryptContext {
19 public:
20 virtual ~DecryptContext() {}
21
22 // Get the key system to use for decryption.
23 virtual CastKeySystem GetKeySystem() = 0;
24
25 // Decrypts the given buffer. Returns true/false for success/failure,
26 // and places the decrypted data in output if successful.
27 virtual bool Decrypt(CastDecoderBuffer* buffer,
28 std::vector<uint8_t>* output) = 0;
29 };
30
31 } // namespace media
32 } // namespace chromecast
33
34 #endif // CHROMECAST_PUBLIC_MEDIA_DECRYPT_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698