| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_H_ | 5 #ifndef MEDIA_BASE_RENDERER_H_ |
| 6 #define MEDIA_BASE_RENDERER_H_ | 6 #define MEDIA_BASE_RENDERER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Updates the current playback rate. The default playback rate should be 0. | 51 // Updates the current playback rate. The default playback rate should be 0. |
| 52 virtual void SetPlaybackRate(double playback_rate) = 0; | 52 virtual void SetPlaybackRate(double playback_rate) = 0; |
| 53 | 53 |
| 54 // Sets the output volume. The default volume should be 1. | 54 // Sets the output volume. The default volume should be 1. |
| 55 virtual void SetVolume(float volume) = 0; | 55 virtual void SetVolume(float volume) = 0; |
| 56 | 56 |
| 57 // Returns the current media time. | 57 // Returns the current media time. |
| 58 virtual base::TimeDelta GetMediaTime() = 0; | 58 virtual base::TimeDelta GetMediaTime() = 0; |
| 59 | 59 |
| 60 // Returns whether |this| renders audio. | |
| 61 virtual bool HasAudio() = 0; | |
| 62 | |
| 63 // Returns whether |this| renders video. | |
| 64 virtual bool HasVideo() = 0; | |
| 65 | |
| 66 private: | 60 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(Renderer); | 61 DISALLOW_COPY_AND_ASSIGN(Renderer); |
| 68 }; | 62 }; |
| 69 | 63 |
| 70 } // namespace media | 64 } // namespace media |
| 71 | 65 |
| 72 #endif // MEDIA_BASE_RENDERER_H_ | 66 #endif // MEDIA_BASE_RENDERER_H_ |
| OLD | NEW |