| 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 MOJO_SERVICES_MEDIA_FRAMEWORK_UTIL_CALLBACK_JOINER_H_ | 5 #ifndef SERVICES_MEDIA_FRAMEWORK_UTIL_CALLBACK_JOINER_H_ |
| 6 #define MOJO_SERVICES_MEDIA_FRAMEWORK_UTIL_CALLBACK_JOINER_H_ | 6 #define SERVICES_MEDIA_FRAMEWORK_UTIL_CALLBACK_JOINER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "mojo/public/cpp/bindings/callback.h" | 11 #include "mojo/public/cpp/bindings/callback.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 // CallbackJoiner is used to take action after multiple 'child' operations are | 16 // CallbackJoiner is used to take action after multiple 'child' operations are |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 } | 115 } |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 size_t counter_ = 0; | 118 size_t counter_ = 0; |
| 119 Callback<void()> join_callback_; | 119 Callback<void()> join_callback_; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace media | 122 } // namespace media |
| 123 } // namespace mojo | 123 } // namespace mojo |
| 124 | 124 |
| 125 #endif // MOJO_SERVICES_MEDIA_FRAMEWORK_UTIL_CALLBACK_JOINER_H_ | 125 #endif // SERVICES_MEDIA_FRAMEWORK_UTIL_CALLBACK_JOINER_H_ |
| OLD | NEW |