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

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: use int64 in ParamTraits 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..dabcc3b29cd4d4828bf948430fc9bb73c569e555 100644
--- a/content/common/media/media_param_traits.h
+++ b/content/common/media/media_param_traits.h
@@ -11,6 +11,7 @@
namespace media {
class AudioParameters;
+class MIDIPortInfoList;
struct VideoCaptureParams;
}
@@ -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> {
scherkus (not reviewing) 2013/06/12 01:28:47 hrm... if MIDIPortInfoList was a typedef would you
Chris Rogers 2013/06/12 20:34:35 I took a look at IPC_STRUCT_TRAITS_BEGIN, IPC_STRU
scherkus (not reviewing) 2013/06/13 02:05:41 AFAIK the IPC system knows how to deal with std::v
+ 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