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 #include "media/mojo/services/mojo_media_log.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 |
| 9 namespace media { |
| 10 |
| 11 // TODO(sandersd): Do we need to respond to the channel closing? |
| 12 MojoMediaLog::MojoMediaLog( |
| 13 mojo::AssociatedInterfacePtr<mojom::MediaLog> remote_media_log) |
| 14 : remote_media_log_(std::move(remote_media_log)) { |
| 15 DVLOG(1) << __func__; |
| 16 } |
| 17 |
| 18 MojoMediaLog::~MojoMediaLog() { |
| 19 DVLOG(1) << __func__; |
| 20 } |
| 21 |
| 22 void MojoMediaLog::AddEvent(std::unique_ptr<MediaLogEvent> event) { |
| 23 DVLOG(1) << __func__; |
| 24 DCHECK(event); |
| 25 remote_media_log_->AddEvent(*event); |
| 26 } |
| 27 |
| 28 } // namespace media |
OLD | NEW |