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

Side by Side Diff: media/cdm/simple_cdm_allocator.h

Issue 1673383002: Add allocator interface for use by cdm_adapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add MEDIA_CDM_EXPORT for Windows Created 4 years, 10 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
« no previous file with comments | « media/cdm/cdm_helpers.h ('k') | media/cdm/simple_cdm_allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 MEDIA_CDM_SIMPLE_CDM_ALLOCATOR_H_
6 #define MEDIA_CDM_SIMPLE_CDM_ALLOCATOR_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "media/cdm/cdm_allocator.h"
12
13 namespace media {
14
15 // This is a simple CdmAllocator for testing.
16 class SimpleCdmAllocator : public CdmAllocator {
17 public:
18 SimpleCdmAllocator();
19 ~SimpleCdmAllocator() final;
20
21 // CdmAllocator implementation.
22 cdm::Buffer* CreateCdmBuffer(uint32_t capacity) final;
23 scoped_ptr<VideoFrameImpl> CreateCdmVideoFrame() final;
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(SimpleCdmAllocator);
27 };
28
29 } // namespace media
30
31 #endif // MEDIA_CDM_SIMPLE_CDM_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « media/cdm/cdm_helpers.h ('k') | media/cdm/simple_cdm_allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698