| OLD | NEW |
| 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 #include "ppapi/proxy/ppapi_param_traits.h" | 5 #include "ppapi/proxy/ppapi_param_traits.h" |
| 6 | 6 |
| 7 #include <string.h> // For memcpy | 7 #include <string.h> // For memcpy |
| 8 | 8 |
| 9 #include "ppapi/c/pp_file_info.h" | 9 #include "ppapi/c/pp_file_info.h" |
| 10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
| 11 #include "ppapi/c/private/ppb_flash_tcp_socket.h" | 11 #include "ppapi/c/private/ppb_flash_tcp_socket.h" |
| 12 #include "ppapi/proxy/ppapi_messages.h" | 12 #include "ppapi/proxy/ppapi_messages.h" |
| 13 #include "ppapi/proxy/serialized_var.h" | 13 #include "ppapi/proxy/serialized_var.h" |
| 14 #include "ppapi/proxy/serialized_flash_menu.h" | 14 #include "ppapi/proxy/serialized_flash_menu.h" |
| 15 #include "ppapi/shared_impl/host_resource.h" | 15 #include "ppapi/shared_impl/host_resource.h" |
| 16 #include "ppapi/shared_impl/private/ppb_flash_x509_certificate_shared.h" |
| 16 | 17 |
| 17 namespace IPC { | 18 namespace IPC { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| 21 // Deserializes a vector from IPC. This special version must be used instead | 22 // Deserializes a vector from IPC. This special version must be used instead |
| 22 // of the default IPC version when the vector contains a SerializedVar, either | 23 // of the default IPC version when the vector contains a SerializedVar, either |
| 23 // directly or indirectly (i.e. a vector of objects that have a SerializedVar | 24 // directly or indirectly (i.e. a vector of objects that have a SerializedVar |
| 24 // inside them). | 25 // inside them). |
| 25 // | 26 // |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 PickleIterator* iter, | 481 PickleIterator* iter, |
| 481 param_type* r) { | 482 param_type* r) { |
| 482 return r->ReadFromMessage(m, iter); | 483 return r->ReadFromMessage(m, iter); |
| 483 } | 484 } |
| 484 | 485 |
| 485 // static | 486 // static |
| 486 void ParamTraits<ppapi::proxy::SerializedFlashMenu>::Log(const param_type& p, | 487 void ParamTraits<ppapi::proxy::SerializedFlashMenu>::Log(const param_type& p, |
| 487 std::string* l) { | 488 std::string* l) { |
| 488 } | 489 } |
| 489 | 490 |
| 491 // PPB_X509Certificate_Fields -------------------------------------------------- |
| 492 |
| 493 // static |
| 494 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Write( |
| 495 Message* m, |
| 496 const param_type& p) { |
| 497 p.WriteToMessage(m); |
| 498 } |
| 499 |
| 500 // static |
| 501 bool ParamTraits<ppapi::PPB_X509Certificate_Fields>::Read(const Message* m, |
| 502 void** iter, |
| 503 param_type* r) { |
| 504 return r->ReadFromMessage(m, iter); |
| 505 } |
| 506 |
| 507 // static |
| 508 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p, |
| 509 std::string* l) { |
| 510 } |
| 511 |
| 490 } // namespace IPC | 512 } // namespace IPC |
| OLD | NEW |