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

Unified Diff: media/base/ipc/media_param_traits.h

Issue 2640003002: Implement MojoAudioRendererSink and use it in UtilityMojoMediaClient (Closed)
Patch Set: Rebase Created 3 years, 10 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/base/audio_bus.cc ('k') | media/base/ipc/media_param_traits.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/ipc/media_param_traits.h
diff --git a/media/base/ipc/media_param_traits.h b/media/base/ipc/media_param_traits.h
index dcc5833af72dc2c897501824d7a206d41705a7d3..b4deb359e4d16b808194617a52a28928778a5b27 100644
--- a/media/base/ipc/media_param_traits.h
+++ b/media/base/ipc/media_param_traits.h
@@ -12,6 +12,7 @@
namespace media {
class AudioParameters;
class EncryptionScheme;
+class OutputDeviceInfo;
}
namespace IPC {
@@ -38,6 +39,17 @@ struct ParamTraits<media::EncryptionScheme> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<media::OutputDeviceInfo> {
+ typedef media::OutputDeviceInfo param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
} // namespace IPC
#endif // MEDIA_BASE_IPC_MEDIA_PARAM_TRAITS_H_
« no previous file with comments | « media/base/audio_bus.cc ('k') | media/base/ipc/media_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698