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

Unified Diff: ipc/ipc_message_utils.h

Issue 2333443002: Add base::UnguessableToken (Closed)
Patch Set: Addressing comments. Created 4 years, 3 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_utils.h
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h
index 6712d3ca69363e8a1e48a416304a1e54bb0c55d9..037ee336b8d9c59c482bce6dbef510f6a8fefa01 100644
--- a/ipc/ipc_message_utils.h
+++ b/ipc/ipc_message_utils.h
@@ -36,6 +36,7 @@ namespace base {
class DictionaryValue;
class FilePath;
class ListValue;
+class Nonce;
class NullableString16;
class Time;
class TimeDelta;
@@ -667,6 +668,17 @@ struct IPC_EXPORT ParamTraits<base::TimeTicks> {
};
template <>
+struct IPC_EXPORT ParamTraits<base::Nonce> {
+ typedef base::Nonce param_type;
+ static void GetSize(base::PickleSizer* sizer, 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);
+};
+
+template <>
struct ParamTraits<std::tuple<>> {
typedef std::tuple<> param_type;
static void GetSize(base::PickleSizer* sizer, const param_type& p) {}

Powered by Google App Engine
This is Rietveld 408576698