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_PUBLISHER_H_ | 5 #ifndef SERVICES_MEDIA_COMMON_MOJO_PUBLISHER_H_ |
6 #define SERVICES_MEDIA_FRAMEWORK_MOJO_PUBLISHER_H_ | 6 #define SERVICES_MEDIA_COMMON_MOJO_PUBLISHER_H_ |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace media { | 12 namespace media { |
13 | 13 |
14 // Implements pull mode publishing (e.g. MediaPlayer::GetStatus). | 14 // Implements pull mode publishing (e.g. MediaPlayer::GetStatus). |
15 template <typename TCallback> | 15 template <typename TCallback> |
16 class MojoPublisher { | 16 class MojoPublisher { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 private: | 56 private: |
57 uint64_t version_ = 1u; | 57 uint64_t version_ = 1u; |
58 std::vector<TCallback> pending_callbacks_; | 58 std::vector<TCallback> pending_callbacks_; |
59 CallbackRunner callback_runner_; | 59 CallbackRunner callback_runner_; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace media | 62 } // namespace media |
63 } // namespace mojo | 63 } // namespace mojo |
64 | 64 |
65 #endif // SERVICES_MEDIA_FRAMEWORK_MOJO_MOJO_ALLOCATOR_H_ | 65 #endif // SERVICES_MEDIA_COMMON_MOJO_PUBLISHER_H_ |
OLD | NEW |