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

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

Issue 8661002: Fire CanPlayThrough immediately for local and streaming media files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix media/event-attributes.html Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "media/base/demuxer_stream.h" 9 #include "media/base/demuxer_stream.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Alert the Demuxer that the video preload value has been changed. 54 // Alert the Demuxer that the video preload value has been changed.
55 virtual void SetPreload(Preload preload) = 0; 55 virtual void SetPreload(Preload preload) = 0;
56 56
57 // Returns the starting time for the media file. 57 // Returns the starting time for the media file.
58 virtual base::TimeDelta GetStartTime() const = 0; 58 virtual base::TimeDelta GetStartTime() const = 0;
59 59
60 // Returns the content bitrate. May be obtained from container or 60 // Returns the content bitrate. May be obtained from container or
61 // approximated. Returns 0 if it is unknown. 61 // approximated. Returns 0 if it is unknown.
62 virtual int GetBitrate() = 0; 62 virtual int GetBitrate() = 0;
63 63
64 // Returns true if the source is from a local file or stream (such as a
65 // webcam stream), false otherwise.
66 virtual bool IsLocalSource() = 0;
67
64 protected: 68 protected:
65 Demuxer(); 69 Demuxer();
66 FilterHost* host() { return host_; } 70 FilterHost* host() { return host_; }
67 71
68 friend class base::RefCountedThreadSafe<Demuxer>; 72 friend class base::RefCountedThreadSafe<Demuxer>;
69 virtual ~Demuxer(); 73 virtual ~Demuxer();
70 74
71 private: 75 private:
72 FilterHost* host_; 76 FilterHost* host_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(Demuxer); 78 DISALLOW_COPY_AND_ASSIGN(Demuxer);
75 }; 79 };
76 80
77 } // namespace media 81 } // namespace media
78 82
79 #endif // MEDIA_BASE_DEMUXER_H_ 83 #endif // MEDIA_BASE_DEMUXER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698