Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Unified Diff: media/mojo/services/mojo_media_log.cc

Issue 2966643002: media: Plumb MediaLog to MojoVideoDecoderService. (Closed)
Patch Set: Swap client/service directory. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_media_log.h ('k') | media/mojo/services/mojo_video_decoder_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « media/mojo/services/mojo_media_log.h ('k') | media/mojo/services/mojo_video_decoder_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698