| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ |
| 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ |
| 7 | 7 |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/synchronization/lock.h" | 9 #include "base/synchronization/lock.h" |
| 10 #include "base/task_runner.h" | |
| 11 #include "mojo/common/binding_set.h" | 10 #include "mojo/common/binding_set.h" |
| 12 #include "mojo/services/media/common/interfaces/media_state.mojom.h" | 11 #include "mojo/services/media/common/interfaces/media_state.mojom.h" |
| 13 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" | 12 #include "mojo/services/media/common/interfaces/media_transport.mojom.h" |
| 14 #include "services/media/framework/models/active_sink.h" | 13 #include "services/media/framework/models/active_sink.h" |
| 15 #include "services/media/framework_mojo/mojo_allocator.h" | 14 #include "services/media/framework_mojo/mojo_allocator.h" |
| 16 | 15 |
| 17 namespace mojo { | 16 namespace mojo { |
| 18 namespace media { | 17 namespace media { |
| 19 | 18 |
| 20 // Implements MediaProducer to forward a stream across mojo. | 19 // Implements MediaProducer to forward a stream across mojo. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // TODO(dalesat): Base this logic on presentation time or duration. | 89 // TODO(dalesat): Base this logic on presentation time or duration. |
| 91 uint32_t max_pushes_outstanding_ = 0; | 90 uint32_t max_pushes_outstanding_ = 0; |
| 92 uint32_t current_pushes_outstanding_ = 0; | 91 uint32_t current_pushes_outstanding_ = 0; |
| 93 // THE FIELDS ABOVE SHOULD ONLY BE ACCESSED WITH lock_ TAKEN. | 92 // THE FIELDS ABOVE SHOULD ONLY BE ACCESSED WITH lock_ TAKEN. |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace media | 95 } // namespace media |
| 97 } // namespace mojo | 96 } // namespace mojo |
| 98 | 97 |
| 99 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ | 98 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_PUSH_PRODUCER_BASE_H_ |
| OLD | NEW |