| Index: media/mojo/clients/mojo_media_log_service.h
|
| diff --git a/media/mojo/clients/mojo_media_log_service.h b/media/mojo/clients/mojo_media_log_service.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..80d2a3ab165ee38726a7909f3f4737268deb9c19
|
| --- /dev/null
|
| +++ b/media/mojo/clients/mojo_media_log_service.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MEDIA_MOJO_CLIENTS_MOJO_MEDIA_LOG_SERVICE_H_
|
| +#define MEDIA_MOJO_CLIENTS_MOJO_MEDIA_LOG_SERVICE_H_
|
| +
|
| +#include <stdint.h>
|
| +
|
| +#include "base/macros.h"
|
| +#include "media/base/media_log.h"
|
| +#include "media/mojo/interfaces/media_log.mojom.h"
|
| +
|
| +namespace media {
|
| +
|
| +// Implementation of a mojom::MediaLog service which wraps a media::MediaLog.
|
| +class MojoMediaLogService : public mojom::MediaLog {
|
| + public:
|
| + explicit MojoMediaLogService(media::MediaLog* media_log);
|
| + ~MojoMediaLogService() final;
|
| +
|
| + // mojom::MediaLog implementation
|
| + void AddEvent(const media::MediaLogEvent& event) final;
|
| +
|
| + private:
|
| + media::MediaLog* media_log_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(MojoMediaLogService);
|
| +};
|
| +
|
| +} // namespace media
|
| +
|
| +#endif // MEDIA_MOJO_CLIENTS_MOJO_MEDIA_LOG_SERVICE_H_
|
|
|