| 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/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 enum State { | 69 enum State { |
| 70 STATE_UNINITIALIZED, | 70 STATE_UNINITIALIZED, |
| 71 STATE_INITIALIZING, | 71 STATE_INITIALIZING, |
| 72 STATE_FLUSHING, | 72 STATE_FLUSHING, |
| 73 STATE_PLAYING, | 73 STATE_PLAYING, |
| 74 STATE_ERROR | 74 STATE_ERROR |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 base::TimeDelta GetMediaTimeForSyncingVideo(); | 77 base::TimeTicks GetWallclockTimeForMediaTime(base::TimeDelta time); |
| 78 | 78 |
| 79 // Requests that this object notifies when a decryptor is ready through the | 79 // Requests that this object notifies when a decryptor is ready through the |
| 80 // |decryptor_ready_cb| provided. | 80 // |decryptor_ready_cb| provided. |
| 81 // If |decryptor_ready_cb| is null, the existing callback will be fired with | 81 // If |decryptor_ready_cb| is null, the existing callback will be fired with |
| 82 // nullptr immediately and reset. | 82 // nullptr immediately and reset. |
| 83 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb); | 83 void SetDecryptorReadyCallback(const DecryptorReadyCB& decryptor_ready_cb); |
| 84 | 84 |
| 85 // Helper functions and callbacks for Initialize(). | 85 // Helper functions and callbacks for Initialize(). |
| 86 void InitializeAudioRenderer(); | 86 void InitializeAudioRenderer(); |
| 87 void OnAudioRendererInitializeDone(PipelineStatus status); | 87 void OnAudioRendererInitializeDone(PipelineStatus status); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 base::WeakPtr<RendererImpl> weak_this_; | 174 base::WeakPtr<RendererImpl> weak_this_; |
| 175 base::WeakPtrFactory<RendererImpl> weak_factory_; | 175 base::WeakPtrFactory<RendererImpl> weak_factory_; |
| 176 | 176 |
| 177 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 177 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
| 178 }; | 178 }; |
| 179 | 179 |
| 180 } // namespace media | 180 } // namespace media |
| 181 | 181 |
| 182 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 182 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| OLD | NEW |