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

Unified Diff: ipc/ipc_message_templates_impl.h

Issue 1665363002: Clang plugin to check that unstable types are not used in IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blacklist types instead Created 4 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
Index: ipc/ipc_message_templates_impl.h
diff --git a/ipc/ipc_message_templates_impl.h b/ipc/ipc_message_templates_impl.h
index bfcdad016fabaff7e751ce03025aba2551631e20..0446fefd574703f791d3580b9ef4b2515ce549a3 100644
--- a/ipc/ipc_message_templates_impl.h
+++ b/ipc/ipc_message_templates_impl.h
@@ -24,7 +24,7 @@ template <typename Meta, typename... Ins>
MessageT<Meta, base::Tuple<Ins...>, void>::MessageT(Routing routing,
const Ins&... ins)
: Message(routing.id, ID, PRIORITY_NORMAL) {
- WriteParam(this, base::MakeRefTuple(ins...));
+ WriteParamUnchecked(this, base::MakeRefTuple(ins...));
}
template <typename Meta, typename... Ins>
@@ -57,7 +57,7 @@ MessageT<Meta, base::Tuple<Ins...>, base::Tuple<Outs...>>::MessageT(
ID,
PRIORITY_NORMAL,
new ParamDeserializer<Outs...>(base::MakeRefTuple(*outs...))) {
- WriteParam(this, base::MakeRefTuple(ins...));
+ WriteParamUnchecked(this, base::MakeRefTuple(ins...));
}
template <typename Meta, typename... Ins, typename... Outs>
@@ -81,7 +81,7 @@ void MessageT<Meta,
base::Tuple<Ins...>,
base::Tuple<Outs...>>::WriteReplyParams(Message* reply,
const Outs&... outs) {
- WriteParam(reply, base::MakeRefTuple(outs...));
+ WriteParamUnchecked(reply, base::MakeRefTuple(outs...));
}
template <typename Meta, typename... Ins, typename... Outs>
« no previous file with comments | « ipc/ipc_message_templates.h ('k') | ipc/ipc_message_utils.h » ('j') | ipc/ipc_message_utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698