| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // Returns the current media time. | 71 // Returns the current media time. |
| 72 virtual base::TimeDelta GetMediaTime() = 0; | 72 virtual base::TimeDelta GetMediaTime() = 0; |
| 73 | 73 |
| 74 // Returns whether |this| renders audio. | 74 // Returns whether |this| renders audio. |
| 75 virtual bool HasAudio() = 0; | 75 virtual bool HasAudio() = 0; |
| 76 | 76 |
| 77 // Returns whether |this| renders video. | 77 // Returns whether |this| renders video. |
| 78 virtual bool HasVideo() = 0; | 78 virtual bool HasVideo() = 0; |
| 79 | 79 |
| 80 // Returns whether |this| supports pipeline suspend. |
| 81 virtual bool AllowSuspend() = 0; |
| 82 |
| 80 private: | 83 private: |
| 81 DISALLOW_COPY_AND_ASSIGN(Renderer); | 84 DISALLOW_COPY_AND_ASSIGN(Renderer); |
| 82 }; | 85 }; |
| 83 | 86 |
| 84 } // namespace media | 87 } // namespace media |
| 85 | 88 |
| 86 #endif // MEDIA_BASE_RENDERER_H_ | 89 #endif // MEDIA_BASE_RENDERER_H_ |
| OLD | NEW |