| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 bool didLoadingProgress() override; | 125 bool didLoadingProgress() override; |
| 126 | 126 |
| 127 bool hasSingleSecurityOrigin() const override; | 127 bool hasSingleSecurityOrigin() const override; |
| 128 bool didPassCORSAccessCheck() const override; | 128 bool didPassCORSAccessCheck() const override; |
| 129 | 129 |
| 130 double mediaTimeForTimeValue(double timeValue) const override; | 130 double mediaTimeForTimeValue(double timeValue) const override; |
| 131 | 131 |
| 132 unsigned decodedFrameCount() const override; | 132 unsigned decodedFrameCount() const override; |
| 133 unsigned droppedFrameCount() const override; | 133 unsigned droppedFrameCount() const override; |
| 134 unsigned audioDecodedByteCount() const override; | 134 size_t audioDecodedByteCount() const override; |
| 135 unsigned videoDecodedByteCount() const override; | 135 size_t videoDecodedByteCount() const override; |
| 136 | 136 |
| 137 // WebMediaPlayerDelegate::Observer implementation. | 137 // WebMediaPlayerDelegate::Observer implementation. |
| 138 void OnHidden(bool must_suspend) override; | 138 void OnHidden(bool must_suspend) override; |
| 139 void OnShown() override; | 139 void OnShown() override; |
| 140 void OnPlay() override; | 140 void OnPlay() override; |
| 141 void OnPause() override; | 141 void OnPause() override; |
| 142 void OnVolumeMultiplierUpdate(double multiplier) override; | 142 void OnVolumeMultiplierUpdate(double multiplier) override; |
| 143 | 143 |
| 144 bool copyVideoTextureToPlatformTexture( | 144 bool copyVideoTextureToPlatformTexture( |
| 145 blink::WebGraphicsContext3D* web_graphics_context, | 145 blink::WebGraphicsContext3D* web_graphics_context, |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 225 |
| 226 // True if the delegate forced a pause during the last OnHidden() call. | 226 // True if the delegate forced a pause during the last OnHidden() call. |
| 227 bool paused_on_hidden_; | 227 bool paused_on_hidden_; |
| 228 | 228 |
| 229 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); | 229 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerMS); |
| 230 }; | 230 }; |
| 231 | 231 |
| 232 } // namespace content | 232 } // namespace content |
| 233 | 233 |
| 234 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ | 234 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_MS_H_ |
| OLD | NEW |