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_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 virtual bool hasSingleSecurityOrigin() const; | 150 virtual bool hasSingleSecurityOrigin() const; |
151 virtual bool didPassCORSAccessCheck() const; | 151 virtual bool didPassCORSAccessCheck() const; |
152 | 152 |
153 virtual double mediaTimeForTimeValue(double timeValue) const; | 153 virtual double mediaTimeForTimeValue(double timeValue) const; |
154 | 154 |
155 // Provide statistics. | 155 // Provide statistics. |
156 virtual unsigned decodedFrameCount() const; | 156 virtual unsigned decodedFrameCount() const; |
157 virtual unsigned droppedFrameCount() const; | 157 virtual unsigned droppedFrameCount() const; |
158 virtual unsigned audioDecodedByteCount() const; | 158 virtual unsigned audioDecodedByteCount() const; |
159 virtual unsigned videoDecodedByteCount() const; | 159 virtual unsigned videoDecodedByteCount() const; |
| 160 virtual double totalFrameDelay() const; |
160 | 161 |
161 // cc::VideoFrameProvider implementation. These methods are running on the | 162 // cc::VideoFrameProvider implementation. These methods are running on the |
162 // compositor thread. | 163 // compositor thread. |
163 virtual void SetVideoFrameProviderClient( | 164 virtual void SetVideoFrameProviderClient( |
164 cc::VideoFrameProvider::Client* client) OVERRIDE; | 165 cc::VideoFrameProvider::Client* client) OVERRIDE; |
165 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; | 166 virtual scoped_refptr<media::VideoFrame> GetCurrentFrame() OVERRIDE; |
166 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) | 167 virtual void PutCurrentFrame(const scoped_refptr<media::VideoFrame>& frame) |
167 OVERRIDE; | 168 OVERRIDE; |
168 | 169 |
169 // Media player callback handlers. | 170 // Media player callback handlers. |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 | 479 |
479 // NOTE: Weak pointers must be invalidated before all other member variables. | 480 // NOTE: Weak pointers must be invalidated before all other member variables. |
480 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; | 481 base::WeakPtrFactory<WebMediaPlayerAndroid> weak_factory_; |
481 | 482 |
482 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); | 483 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
483 }; | 484 }; |
484 | 485 |
485 } // namespace content | 486 } // namespace content |
486 | 487 |
487 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ | 488 #endif // CONTENT_RENDERER_MEDIA_ANDROID_WEBMEDIAPLAYER_ANDROID_H_ |
OLD | NEW |