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

Unified Diff: content/common/media/media_param_traits.h

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
Index: content/common/media/media_param_traits.h
diff --git a/content/common/media/media_param_traits.h b/content/common/media/media_param_traits.h
index 90d7258604574760a75fde913a5eb963f46c3a5f..b1b4912c8662cc9209640919fc2c9f37effe090d 100644
--- a/content/common/media/media_param_traits.h
+++ b/content/common/media/media_param_traits.h
@@ -8,6 +8,7 @@
#include "content/common/content_export.h"
#include "ipc/ipc_message.h"
#include "ipc/ipc_param_traits.h"
+#include "media/midi/midi_port_info.h"
namespace media {
class AudioParameters;
@@ -32,6 +33,13 @@ struct CONTENT_EXPORT ParamTraits<media::VideoCaptureParams> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct CONTENT_EXPORT ParamTraits<media::MIDIPortInfoList> {
+ typedef media::MIDIPortInfoList param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698