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

Side by Side Diff: media/base/demuxer.h

Issue 10829470: Support for parsing encrypted WebM streams by src. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/demuxer.cc » ('j') | media/filters/ffmpeg_demuxer.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_DEMUXER_H_ 5 #ifndef MEDIA_BASE_DEMUXER_H_
6 #define MEDIA_BASE_DEMUXER_H_ 6 #define MEDIA_BASE_DEMUXER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "media/base/data_source.h" 10 #include "media/base/data_source.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // 57 //
58 // TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type). 58 // TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type).
59 virtual void OnAudioRendererDisabled(); 59 virtual void OnAudioRendererDisabled();
60 60
61 // Returns the given stream type, or NULL if that type is not present. 61 // Returns the given stream type, or NULL if that type is not present.
62 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type) = 0; 62 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type) = 0;
63 63
64 // Returns the starting time for the media file. 64 // Returns the starting time for the media file.
65 virtual base::TimeDelta GetStartTime() const = 0; 65 virtual base::TimeDelta GetStartTime() const = 0;
66 66
67 virtual void KeyAdded();
ddorwin 2012/08/22 23:20:29 Comment. Also, curious why this is needed now and
fgalligan1 2012/08/23 02:39:11 I'm not sure I understand the question. Do you mea
xhwang 2012/08/23 19:04:53 I removed the "waiting for key" part in the demo,
fgalligan1 2012/08/24 20:01:26 Removed KeyAdded().
68
67 protected: 69 protected:
68 friend class base::RefCountedThreadSafe<Demuxer>; 70 friend class base::RefCountedThreadSafe<Demuxer>;
69 virtual ~Demuxer(); 71 virtual ~Demuxer();
70 72
71 private: 73 private:
72 DISALLOW_COPY_AND_ASSIGN(Demuxer); 74 DISALLOW_COPY_AND_ASSIGN(Demuxer);
73 }; 75 };
74 76
75 } // namespace media 77 } // namespace media
76 78
77 #endif // MEDIA_BASE_DEMUXER_H_ 79 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW
« no previous file with comments | « no previous file | media/base/demuxer.cc » ('j') | media/filters/ffmpeg_demuxer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698