| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_LOG_SERVICE_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_LOG_SERVICE_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "media/base/media_log.h" |
| 12 #include "media/mojo/interfaces/media_log.mojom.h" |
| 13 |
| 14 namespace media { |
| 15 |
| 16 // Implementation of a mojom::MediaLog service which wraps a media::MediaLog. |
| 17 class MojoMediaLogService : public mojom::MediaLog { |
| 18 public: |
| 19 explicit MojoMediaLogService(media::MediaLog* media_log); |
| 20 ~MojoMediaLogService() final; |
| 21 |
| 22 // mojom::MediaLog implementation |
| 23 void AddEvent(const media::MediaLogEvent& event) final; |
| 24 |
| 25 private: |
| 26 media::MediaLog* media_log_; |
| 27 int32_t id_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(MojoMediaLogService); |
| 30 }; |
| 31 |
| 32 } // namespace media |
| 33 |
| 34 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_LOG_SERVICE_H_ |
| OLD | NEW |