OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 virtual bool hasSingleSecurityOrigin() const; | 105 virtual bool hasSingleSecurityOrigin() const; |
106 virtual bool didPassCORSAccessCheck() const; | 106 virtual bool didPassCORSAccessCheck() const; |
107 | 107 |
108 virtual double mediaTimeForTimeValue(double timeValue) const; | 108 virtual double mediaTimeForTimeValue(double timeValue) const; |
109 | 109 |
110 virtual unsigned decodedFrameCount() const; | 110 virtual unsigned decodedFrameCount() const; |
111 virtual unsigned droppedFrameCount() const; | 111 virtual unsigned droppedFrameCount() const; |
112 virtual unsigned audioDecodedByteCount() const; | 112 virtual unsigned audioDecodedByteCount() const; |
113 virtual unsigned videoDecodedByteCount() const; | 113 virtual unsigned videoDecodedByteCount() const; |
| 114 virtual double totalFrameDelay() const; |
114 | 115 |
115 // VideoFrameProvider implementation. | 116 // VideoFrameProvider implementation. |
116 virtual void SetVideoFrameProviderClient( | 117 virtual void SetVideoFrameProviderClient( |
117 cc::VideoFrameProvider::Client* client) OVERRIDE; | 118 cc::VideoFrameProvider::Client* client) OVERRIDE; |
118 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; | 119 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; |
119 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) | 120 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) |
120 OVERRIDE; | 121 OVERRIDE; |
121 | 122 |
122 private: | 123 private: |
123 // The callback for VideoFrameProvider to signal a new frame is available. | 124 // The callback for VideoFrameProvider to signal a new frame is available. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 scoped_refptr<media::MediaLog> media_log_; | 188 scoped_refptr<media::MediaLog> media_log_; |
188 | 189 |
189 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; | 190 scoped_ptr<MediaStreamRendererFactory> renderer_factory_; |
190 | 191 |
191 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 192 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
192 }; | 193 }; |
193 | 194 |
194 } // namespace content | 195 } // namespace content |
195 | 196 |
196 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 197 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
OLD | NEW |