blob: 7fd44d492f1b03e91dfc28e3b59f2d130afa929b [file] [log] [blame]
// Copyright (c) 2011 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/render_messages.h"
namespace IPC {
void ParamTraits<ContentSettings>::Write(
Message* m, const ContentSettings& settings) {
for (size_t i = 0; i < arraysize(settings.settings); ++i)
WriteParam(m, settings.settings[i]);
}
bool ParamTraits<ContentSettings>::Read(
const Message* m, void** iter, ContentSettings* r) {
for (size_t i = 0; i < arraysize(r->settings); ++i) {
if (!ReadParam(m, iter, &r->settings[i]))
return false;
}
return true;
}
void ParamTraits<ContentSettings>::Log(
const ContentSettings& p, std::string* l) {
l->append("<ContentSettings>");
}
} // namespace IPC