| 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 // This file is used to define IPC::ParamTraits<> specializations for a number | 5 // This file is used to define IPC::ParamTraits<> specializations for a number |
| 6 // of types so that they can be serialized over IPC. IPC::ParamTraits<> | 6 // of types so that they can be serialized over IPC. IPC::ParamTraits<> |
| 7 // specializations for basic types (like int and std::string) and types in the | 7 // specializations for basic types (like int and std::string) and types in the |
| 8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains | 8 // 'base' project can be found in ipc/ipc_message_utils.h. This file contains |
| 9 // specializations for types that are shared by more than one child process. | 9 // specializations for types that are shared by more than one child process. |
| 10 | 10 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 template <> | 321 template <> |
| 322 struct ParamTraits<printing::NativeMetafile> { | 322 struct ParamTraits<printing::NativeMetafile> { |
| 323 typedef printing::NativeMetafile param_type; | 323 typedef printing::NativeMetafile param_type; |
| 324 static void Write(Message* m, const param_type& p); | 324 static void Write(Message* m, const param_type& p); |
| 325 static bool Read(const Message* m, void** iter, param_type* r); | 325 static bool Read(const Message* m, void** iter, param_type* r); |
| 326 static void Log(const param_type& p, std::string* l); | 326 static void Log(const param_type& p, std::string* l); |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 template <> | 329 template <> |
| 330 struct ParamTraits<file_util::FileInfo> { | 330 struct ParamTraits<base::PlatformFileInfo> { |
| 331 typedef file_util::FileInfo param_type; | 331 typedef base::PlatformFileInfo param_type; |
| 332 static void Write(Message* m, const param_type& p); | 332 static void Write(Message* m, const param_type& p); |
| 333 static bool Read(const Message* m, void** iter, param_type* r); | 333 static bool Read(const Message* m, void** iter, param_type* r); |
| 334 static void Log(const param_type& p, std::string* l); | 334 static void Log(const param_type& p, std::string* l); |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 } // namespace IPC | 337 } // namespace IPC |
| 338 | 338 |
| 339 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ | 339 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ |
| OLD | NEW |