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
3 // found in the LICENSE file.
5 #include "chrome/common/render_messages.h"
7 #include "chrome/common/content_settings_pattern_serializer.h"
11 void ParamTraits
<ContentSettingsPattern
>::Write(
12 Message
* m
, const ContentSettingsPattern
& pattern
) {
13 ContentSettingsPatternSerializer::WriteToMessage(pattern
, m
);
16 bool ParamTraits
<ContentSettingsPattern
>::Read(
17 const Message
* m
, PickleIterator
* iter
, ContentSettingsPattern
* pattern
) {
18 return ContentSettingsPatternSerializer::ReadFromMessage(m
, iter
, pattern
);
21 void ParamTraits
<ContentSettingsPattern
>::Log(
22 const ContentSettingsPattern
& p
, std::string
* l
) {
23 l
->append("<ContentSettingsPattern: ");
24 l
->append(p
.ToString());