| 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_RENDERERS_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 private: | 74 private: |
| 75 enum State { | 75 enum State { |
| 76 STATE_UNINITIALIZED, | 76 STATE_UNINITIALIZED, |
| 77 STATE_INITIALIZING, | 77 STATE_INITIALIZING, |
| 78 STATE_FLUSHING, | 78 STATE_FLUSHING, |
| 79 STATE_PLAYING, | 79 STATE_PLAYING, |
| 80 STATE_ERROR | 80 STATE_ERROR |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 base::TimeTicks GetWallClockTime(base::TimeDelta time); | 83 base::TimeTicks GetWallClockTime(base::TimeDelta time, int request_flags); |
| 84 | 84 |
| 85 // Requests that this object notifies when a decryptor is ready through the | 85 // Requests that this object notifies when a decryptor is ready through the |
| 86 // |decryptor_ready_cb| provided. | 86 // |decryptor_ready_cb| provided. |
| 87 // If |decryptor_ready_cb| is null, the existing callback will be fired with | 87 // If |decryptor_ready_cb| is null, the existing callback will be fired with |
| 88 // nullptr immediately and reset. | 88 // nullptr immediately and reset. |
| 89 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb); | 89 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb); |
| 90 | 90 |
| 91 // Helper functions and callbacks for Initialize(). | 91 // Helper functions and callbacks for Initialize(). |
| 92 void InitializeAudioRenderer(); | 92 void InitializeAudioRenderer(); |
| 93 void OnAudioRendererInitializeDone(PipelineStatus status); | 93 void OnAudioRendererInitializeDone(PipelineStatus status); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 base::WeakPtr<RendererImpl> weak_this_; | 187 base::WeakPtr<RendererImpl> weak_this_; |
| 188 base::WeakPtrFactory<RendererImpl> weak_factory_; | 188 base::WeakPtrFactory<RendererImpl> weak_factory_; |
| 189 | 189 |
| 190 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 190 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 } // namespace media | 193 } // namespace media |
| 194 | 194 |
| 195 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 195 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| OLD | NEW |