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

Unified Diff: media/mojo/clients/mojo_media_log_service.h

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/clients/mojo_decoder_factory.cc ('k') | media/mojo/clients/mojo_media_log_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « media/mojo/clients/mojo_decoder_factory.cc ('k') | media/mojo/clients/mojo_media_log_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698