| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/common/common_param_traits.h" | |
| 6 | |
| 7 #define IPC_MESSAGE_IMPL | 5 #define IPC_MESSAGE_IMPL |
| 8 #include "chrome/common/pepper_file_messages.h" | 6 #include "content/common/pepper_file_messages.h" |
| 9 | 7 |
| 10 namespace IPC { | 8 namespace IPC { |
| 11 | 9 |
| 12 void ParamTraits<webkit::ppapi::DirEntry>::Write(Message* m, | 10 void ParamTraits<webkit::ppapi::DirEntry>::Write(Message* m, |
| 13 const param_type& p) { | 11 const param_type& p) { |
| 14 WriteParam(m, p.name); | 12 WriteParam(m, p.name); |
| 15 WriteParam(m, p.is_dir); | 13 WriteParam(m, p.is_dir); |
| 16 } | 14 } |
| 17 | 15 |
| 18 bool ParamTraits<webkit::ppapi::DirEntry>::Read(const Message* m, | 16 bool ParamTraits<webkit::ppapi::DirEntry>::Read(const Message* m, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void ParamTraits<webkit::ppapi::PepperFilePath>::Log(const param_type& p, | 53 void ParamTraits<webkit::ppapi::PepperFilePath>::Log(const param_type& p, |
| 56 std::string* l) { | 54 std::string* l) { |
| 57 l->append("("); | 55 l->append("("); |
| 58 LogParam(static_cast<unsigned>(p.domain()), l); | 56 LogParam(static_cast<unsigned>(p.domain()), l); |
| 59 l->append(", "); | 57 l->append(", "); |
| 60 LogParam(p.path(), l); | 58 LogParam(p.path(), l); |
| 61 l->append(")"); | 59 l->append(")"); |
| 62 } | 60 } |
| 63 | 61 |
| 64 } // namespace IPC | 62 } // namespace IPC |
| OLD | NEW |