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 <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 private: | 77 private: |
78 class RendererClientInternal; | 78 class RendererClientInternal; |
79 | 79 |
80 enum State { | 80 enum State { |
81 STATE_UNINITIALIZED, | 81 STATE_UNINITIALIZED, |
82 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. | 82 STATE_INIT_PENDING_CDM, // Initialization is waiting for the CDM to be set. |
83 STATE_INITIALIZING, // Initializing audio/video renderers. | 83 STATE_INITIALIZING, // Initializing audio/video renderers. |
84 STATE_FLUSHING, | 84 STATE_FLUSHING, |
85 STATE_PLAYING, | 85 STATE_PLAYING, |
| 86 STATE_SHUTDOWN, |
86 STATE_ERROR | 87 STATE_ERROR |
87 }; | 88 }; |
88 | 89 |
89 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, | 90 bool GetWallClockTimes(const std::vector<base::TimeDelta>& media_timestamps, |
90 std::vector<base::TimeTicks>* wall_clock_times); | 91 std::vector<base::TimeTicks>* wall_clock_times); |
91 | 92 |
92 bool HasEncryptedStream(); | 93 bool HasEncryptedStream(); |
93 | 94 |
94 void FinishInitialization(PipelineStatus status); | 95 void FinishInitialization(PipelineStatus status); |
95 | 96 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 201 |
201 base::WeakPtr<RendererImpl> weak_this_; | 202 base::WeakPtr<RendererImpl> weak_this_; |
202 base::WeakPtrFactory<RendererImpl> weak_factory_; | 203 base::WeakPtrFactory<RendererImpl> weak_factory_; |
203 | 204 |
204 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 205 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
205 }; | 206 }; |
206 | 207 |
207 } // namespace media | 208 } // namespace media |
208 | 209 |
209 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 210 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
OLD | NEW |