// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/cast_messages.h" namespace IPC { void ParamTraits::Write(Message* m, const param_type& p) { ParamTraits::Write(m, p.SerializeForIPC()); } bool ParamTraits::Read( const Message* m, base::PickleIterator* iter, param_type* r) { uint64_t serialized = UINT64_C(0); if (ParamTraits::Read(m, iter, &serialized)) { *r = param_type::DeserializeForIPC(serialized); return true; } return false; } void ParamTraits::Log(const param_type& p, std::string* l) { std::ostringstream oss; oss << p; l->append(oss.str()); } } // namespace IPC