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(
18 base::PickleIterator
* iter
,
19 ContentSettingsPattern
* pattern
) {
20 return ContentSettingsPatternSerializer::ReadFromMessage(m
, iter
, pattern
);
23 void ParamTraits
<ContentSettingsPattern
>::Log(
24 const ContentSettingsPattern
& p
, std::string
* l
) {
25 l
->append("<ContentSettingsPattern: ");
26 l
->append(p
.ToString());