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

Unified Diff: media/base/audio_decoder.h

Issue 547913002: MediaLog: Log selected audio/video decoder name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | media/base/mock_filters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_decoder.h
diff --git a/media/base/audio_decoder.h b/media/base/audio_decoder.h
index 779e5ef502654644d6252d3ca0f3f6c5237689fc..44e79a4d5b31c0fd976484c2281cce60e1eeca17 100644
--- a/media/base/audio_decoder.h
+++ b/media/base/audio_decoder.h
@@ -5,6 +5,8 @@
#ifndef MEDIA_BASE_AUDIO_DECODER_H_
#define MEDIA_BASE_AUDIO_DECODER_H_
+#include <string>
+
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "media/base/audio_decoder_config.h"
@@ -47,6 +49,9 @@ class MEDIA_EXPORT AudioDecoder {
// depends on |this|.
virtual ~AudioDecoder();
+ // Returns the name of the decoder for logging purpose.
+ virtual std::string GetDisplayName() const = 0;
+
// Initializes an AudioDecoder with the given DemuxerStream, executing the
// callback upon completion.
// |statistics_cb| is used to update global pipeline statistics.
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698