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

Side by Side Diff: media/filters/chunk_demuxer_client.h

Issue 10905236: Move ChunkDemuxer handling from WMPProxy to WMPI and remove ChunkDemuxerClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/chunk_demuxer_unittest.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 (c) 2012 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_FILTERS_CHUNK_DEMUXER_CLIENT_H_
6 #define MEDIA_FILTERS_CHUNK_DEMUXER_CLIENT_H_
7
8 #include "base/memory/scoped_ptr.h"
9
10 namespace media {
11
12 class ChunkDemuxer;
13
14 // Interface used to notify an external object when a ChunkDemuxer
15 // is opened & closed.
16 class ChunkDemuxerClient {
17 public:
18 // Called when a ChunkDemuxer object is opened.
19 virtual void DemuxerOpened(ChunkDemuxer* demuxer) = 0;
20
21 // The ChunkDemuxer passed via last DemuxerOpened() call is now
22 // closed. Any further calls on the demuxer will result in an error.
23 virtual void DemuxerClosed() = 0;
24
25 // A decryption key associated with |init_data| may be needed to decrypt the
26 // media being demuxed before decoding. Note that the demuxing itself does not
27 // need decryption.
28 virtual void DemuxerNeedKey(scoped_array<uint8> init_data,
29 int init_data_size) = 0;
30
31 protected:
32 virtual ~ChunkDemuxerClient() {}
33 };
34
35 } // namespace media
36
37 #endif // MEDIA_FILTERS_CHUNK_DEMUXER_CLIENT_H_
OLDNEW
« no previous file with comments | « media/filters/chunk_demuxer.cc ('k') | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698