OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_SERVICE_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_SERVICE_MESSAGES_H_ |
6 #define CHROME_COMMON_SERVICE_MESSAGES_H_ | 6 #define CHROME_COMMON_SERVICE_MESSAGES_H_ |
7 | 7 |
8 #include "chrome/common/service_messages_internal.h" | 8 #include "chrome/common/service_messages_internal.h" |
9 | 9 |
| 10 namespace remoting { |
| 11 struct ChromotingHostInfo; |
| 12 } // namespace remoting |
| 13 |
| 14 namespace IPC { |
| 15 |
| 16 template <> |
| 17 struct ParamTraits<remoting::ChromotingHostInfo> { |
| 18 typedef remoting::ChromotingHostInfo param_type; |
| 19 static void Write(Message* m, const param_type& p); |
| 20 static bool Read(const Message* m, void** iter, param_type* p); |
| 21 static void Log(const param_type& p, std::string* l); |
| 22 }; |
| 23 |
| 24 } // namespace IPC |
| 25 |
10 #endif // CHROME_COMMON_SERVICE_MESSAGES_H_ | 26 #endif // CHROME_COMMON_SERVICE_MESSAGES_H_ |
11 | |
OLD | NEW |