| Index: media/mojo/services/mojo_media_log.cc
|
| diff --git a/media/mojo/services/mojo_media_log.cc b/media/mojo/services/mojo_media_log.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f13f13ea963a236001767c07b1e8fb03e9b61f7e
|
| --- /dev/null
|
| +++ b/media/mojo/services/mojo_media_log.cc
|
| @@ -0,0 +1,28 @@
|
| +// 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.
|
| +
|
| +#include "media/mojo/services/mojo_media_log.h"
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +namespace media {
|
| +
|
| +// TODO(sandersd): Do we need to respond to the channel closing?
|
| +MojoMediaLog::MojoMediaLog(
|
| + mojo::AssociatedInterfacePtr<mojom::MediaLog> remote_media_log)
|
| + : remote_media_log_(std::move(remote_media_log)) {
|
| + DVLOG(1) << __func__;
|
| +}
|
| +
|
| +MojoMediaLog::~MojoMediaLog() {
|
| + DVLOG(1) << __func__;
|
| +}
|
| +
|
| +void MojoMediaLog::AddEvent(std::unique_ptr<MediaLogEvent> event) {
|
| + DVLOG(1) << __func__;
|
| + DCHECK(event);
|
| + remote_media_log_->AddEvent(*event);
|
| +}
|
| +
|
| +} // namespace media
|
|
|