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

Unified Diff: chrome/common/cast_messages.h

Issue 1515433002: Replace uses of raw uint32's with a type-checked RtpTimeTicks data type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Speculative workaround fix for win8_chromium_ng compile error. Created 5 years 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 | « chrome/chrome_common.gypi ('k') | chrome/common/cast_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/cast_messages.h
diff --git a/chrome/common/cast_messages.h b/chrome/common/cast_messages.h
index 81d4fa58873c3c64ef223514847d5d00a67a2a9e..4d6b8f402cf929681c95590f139e10364c5f5829 100644
--- a/chrome/common/cast_messages.h
+++ b/chrome/common/cast_messages.h
@@ -3,17 +3,35 @@
// found in the LICENSE file.
// IPC messages for the Cast transport API.
-// Multiply-included message file, hence no include guard.
#include <stdint.h>
#include "ipc/ipc_message_macros.h"
-#include "media/cast/cast_sender.h"
+#include "media/cast/common/rtp_time.h"
#include "media/cast/logging/logging_defines.h"
#include "media/cast/net/cast_transport_sender.h"
#include "media/cast/net/rtcp/rtcp_defines.h"
#include "net/base/ip_endpoint.h"
+#ifndef CHROME_COMMON_CAST_MESSAGES_H_
+#define CHROME_COMMON_CAST_MESSAGES_H_
+
+namespace IPC {
+
+template<>
+struct ParamTraits<media::cast::RtpTimeTicks> {
+ using param_type = media::cast::RtpTimeTicks;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
+} // namespace IPC
+
+#endif // CHROME_COMMON_CAST_MESSAGES_H_
+
+// Multiply-included message file, hence no include guard from here.
+
#undef IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_EXPORT
#define IPC_MESSAGE_START CastMsgStart
@@ -158,7 +176,7 @@ IPC_MESSAGE_CONTROL4(CastHostMsg_SendSenderReport,
int32_t /* channel_id */,
uint32_t /* ssrc */,
base::TimeTicks /* current_time */,
- uint32_t /* current_time_as_rtp_timestamp */)
+ media::cast::RtpTimeTicks /* cur_time_as_rtp_timestamp */)
IPC_MESSAGE_CONTROL3(CastHostMsg_CancelSendingFrames,
int32_t /* channel_id */,
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/cast_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698