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" |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 const param_type& p) { | 568 const param_type& p) { |
569 WriteParam(m, static_cast<unsigned>(p.domain())); | 569 WriteParam(m, static_cast<unsigned>(p.domain())); |
570 WriteParam(m, p.path()); | 570 WriteParam(m, p.path()); |
571 } | 571 } |
572 | 572 |
573 // static | 573 // static |
574 bool ParamTraits<ppapi::PepperFilePath>::Read(const Message* m, | 574 bool ParamTraits<ppapi::PepperFilePath>::Read(const Message* m, |
575 PickleIterator* iter, | 575 PickleIterator* iter, |
576 param_type* p) { | 576 param_type* p) { |
577 unsigned domain; | 577 unsigned domain; |
578 FilePath path; | 578 base::FilePath path; |
579 if (!ReadParam(m, iter, &domain) || !ReadParam(m, iter, &path)) | 579 if (!ReadParam(m, iter, &domain) || !ReadParam(m, iter, &path)) |
580 return false; | 580 return false; |
581 if (domain > ppapi::PepperFilePath::DOMAIN_MAX_VALID) | 581 if (domain > ppapi::PepperFilePath::DOMAIN_MAX_VALID) |
582 return false; | 582 return false; |
583 | 583 |
584 *p = ppapi::PepperFilePath( | 584 *p = ppapi::PepperFilePath( |
585 static_cast<ppapi::PepperFilePath::Domain>(domain), path); | 585 static_cast<ppapi::PepperFilePath::Domain>(domain), path); |
586 return true; | 586 return true; |
587 } | 587 } |
588 | 588 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 param_type* r) { | 633 param_type* r) { |
634 return ParamTraits<ListValue>::Read(m, iter, &(r->values_)); | 634 return ParamTraits<ListValue>::Read(m, iter, &(r->values_)); |
635 } | 635 } |
636 | 636 |
637 // static | 637 // static |
638 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p, | 638 void ParamTraits<ppapi::PPB_X509Certificate_Fields>::Log(const param_type& p, |
639 std::string* l) { | 639 std::string* l) { |
640 } | 640 } |
641 | 641 |
642 } // namespace IPC | 642 } // namespace IPC |
OLD | NEW |