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

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

Issue 14217008: Remove reference counting from media::DemuxerStream and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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/base/audio_renderer.h ('k') | media/base/demuxer_stream.h » ('j') | no next file with comments »
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/time.h" 8 #include "base/time.h"
9 #include "media/base/data_source.h" 9 #include "media/base/data_source.h"
10 #include "media/base/demuxer_stream.h" 10 #include "media/base/demuxer_stream.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // The pipeline is being stopped either as a result of an error or because 50 // The pipeline is being stopped either as a result of an error or because
51 // the client called Stop(). 51 // the client called Stop().
52 virtual void Stop(const base::Closure& callback); 52 virtual void Stop(const base::Closure& callback);
53 53
54 // This method is called from the pipeline when the audio renderer 54 // This method is called from the pipeline when the audio renderer
55 // is disabled. Demuxers can ignore the notification if they do not 55 // is disabled. Demuxers can ignore the notification if they do not
56 // need to react to this event. 56 // need to react to this event.
57 // 57 //
58 // TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type). 58 // TODO(acolwell): Change to generic DisableStream(DemuxerStream::Type).
59 // TODO(scherkus): this might not be needed http://crbug.com/234708
59 virtual void OnAudioRendererDisabled(); 60 virtual void OnAudioRendererDisabled();
60 61
61 // Returns the given stream type, or NULL if that type is not present. 62 // Returns the given stream type, or NULL if that type is not present.
62 virtual scoped_refptr<DemuxerStream> GetStream(DemuxerStream::Type type) = 0; 63 virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
63 64
64 // Returns the starting time for the media file. 65 // Returns the starting time for the media file.
65 virtual base::TimeDelta GetStartTime() const = 0; 66 virtual base::TimeDelta GetStartTime() const = 0;
66 67
67 private: 68 private:
68 DISALLOW_COPY_AND_ASSIGN(Demuxer); 69 DISALLOW_COPY_AND_ASSIGN(Demuxer);
69 }; 70 };
70 71
71 } // namespace media 72 } // namespace media
72 73
73 #endif // MEDIA_BASE_DEMUXER_H_ 74 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/demuxer_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698