| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class Rect; | 49 class Rect; |
| 50 class Size; | 50 class Size; |
| 51 } // namespace gfx | 51 } // namespace gfx |
| 52 | 52 |
| 53 namespace net { | 53 namespace net { |
| 54 class UploadData; | 54 class UploadData; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace printing { | 57 namespace printing { |
| 58 struct PageRange; | 58 struct PageRange; |
| 59 struct PrinterCapsAndDefaults; |
| 59 } // namespace printing | 60 } // namespace printing |
| 60 | 61 |
| 61 namespace webkit_glue { | 62 namespace webkit_glue { |
| 62 struct PasswordForm; | 63 struct PasswordForm; |
| 63 } // namespace webkit_glue | 64 } // namespace webkit_glue |
| 64 | 65 |
| 65 namespace IPC { | 66 namespace IPC { |
| 66 | 67 |
| 67 template <> | 68 template <> |
| 68 struct ParamTraits<SkBitmap> { | 69 struct ParamTraits<SkBitmap> { |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 static bool Read(const Message* m, void** iter, param_type* r); | 328 static bool Read(const Message* m, void** iter, param_type* r); |
| 328 static void Log(const param_type& p, std::string* l); | 329 static void Log(const param_type& p, std::string* l); |
| 329 }; | 330 }; |
| 330 | 331 |
| 331 // Traits for base::PlatformFileError | 332 // Traits for base::PlatformFileError |
| 332 template <> | 333 template <> |
| 333 struct SimilarTypeTraits<base::PlatformFileError> { | 334 struct SimilarTypeTraits<base::PlatformFileError> { |
| 334 typedef int Type; | 335 typedef int Type; |
| 335 }; | 336 }; |
| 336 | 337 |
| 338 template <> |
| 339 struct ParamTraits<printing::PrinterCapsAndDefaults> { |
| 340 typedef printing::PrinterCapsAndDefaults param_type; |
| 341 static void Write(Message* m, const param_type& p); |
| 342 static bool Read(const Message* m, void** iter, param_type* r); |
| 343 static void Log(const param_type& p, std::string* l); |
| 344 }; |
| 345 |
| 337 } // namespace IPC | 346 } // namespace IPC |
| 338 | 347 |
| 339 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ | 348 #endif // CHROME_COMMON_COMMON_PARAM_TRAITS_H_ |
| OLD | NEW |