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

Side by Side Diff: ipc/ipc_message_utils.h

Issue 1424703003: Kills TraceTicks, which was functionally the same as TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed win compile error. Created 5 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « gpu/perftests/measurements.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IPC_IPC_MESSAGE_UTILS_H_ 5 #ifndef IPC_IPC_MESSAGE_UTILS_H_
6 #define IPC_IPC_MESSAGE_UTILS_H_ 6 #define IPC_IPC_MESSAGE_UTILS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #endif 52 #endif
53 53
54 namespace base { 54 namespace base {
55 class DictionaryValue; 55 class DictionaryValue;
56 class FilePath; 56 class FilePath;
57 class ListValue; 57 class ListValue;
58 class NullableString16; 58 class NullableString16;
59 class Time; 59 class Time;
60 class TimeDelta; 60 class TimeDelta;
61 class TimeTicks; 61 class TimeTicks;
62 class TraceTicks;
63 struct FileDescriptor; 62 struct FileDescriptor;
64 63
65 #if (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN) 64 #if (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
66 class SharedMemoryHandle; 65 class SharedMemoryHandle;
67 #endif // (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN) 66 #endif // (defined(OS_MACOSX) && !defined(OS_IOS)) || defined(OS_WIN)
68 } 67 }
69 68
70 namespace IPC { 69 namespace IPC {
71 70
72 struct ChannelHandle; 71 struct ChannelHandle;
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 struct IPC_EXPORT ParamTraits<base::TimeTicks> { 577 struct IPC_EXPORT ParamTraits<base::TimeTicks> {
579 typedef base::TimeTicks param_type; 578 typedef base::TimeTicks param_type;
580 static void Write(Message* m, const param_type& p); 579 static void Write(Message* m, const param_type& p);
581 static bool Read(const Message* m, 580 static bool Read(const Message* m,
582 base::PickleIterator* iter, 581 base::PickleIterator* iter,
583 param_type* r); 582 param_type* r);
584 static void Log(const param_type& p, std::string* l); 583 static void Log(const param_type& p, std::string* l);
585 }; 584 };
586 585
587 template <> 586 template <>
588 struct IPC_EXPORT ParamTraits<base::TraceTicks> {
589 typedef base::TraceTicks param_type;
590 static void Write(Message* m, const param_type& p);
591 static bool Read(const Message* m,
592 base::PickleIterator* iter,
593 param_type* r);
594 static void Log(const param_type& p, std::string* l);
595 };
596
597 template <>
598 struct ParamTraits<base::Tuple<>> { 587 struct ParamTraits<base::Tuple<>> {
599 typedef base::Tuple<> param_type; 588 typedef base::Tuple<> param_type;
600 static void Write(Message* m, const param_type& p) { 589 static void Write(Message* m, const param_type& p) {
601 } 590 }
602 static bool Read(const Message* m, 591 static bool Read(const Message* m,
603 base::PickleIterator* iter, 592 base::PickleIterator* iter,
604 param_type* r) { 593 param_type* r) {
605 return true; 594 return true;
606 } 595 }
607 static void Log(const param_type& p, std::string* l) { 596 static void Log(const param_type& p, std::string* l) {
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 template <typename... Ts> 1055 template <typename... Ts>
1067 static void WriteReplyParams(Message* reply, Ts... args) { 1056 static void WriteReplyParams(Message* reply, Ts... args) {
1068 ReplyParam p(args...); 1057 ReplyParam p(args...);
1069 WriteParam(reply, p); 1058 WriteParam(reply, p);
1070 } 1059 }
1071 }; 1060 };
1072 1061
1073 } // namespace IPC 1062 } // namespace IPC
1074 1063
1075 #endif // IPC_IPC_MESSAGE_UTILS_H_ 1064 #endif // IPC_IPC_MESSAGE_UTILS_H_
OLDNEW
« no previous file with comments | « gpu/perftests/measurements.cc ('k') | ipc/ipc_message_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698