OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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/render_messages.h" | 5 #include "chrome/common/render_messages.h" |
6 | 6 |
7 #include "chrome/common/content_settings_pattern_serializer.h" | 7 #include "chrome/common/content_settings_pattern_serializer.h" |
8 | 8 |
9 namespace IPC { | 9 namespace IPC { |
10 | 10 |
11 void ParamTraits<ContentSettingsPattern>::Write( | 11 void ParamTraits<ContentSettingsPattern>::Write( |
12 Message* m, const ContentSettingsPattern& pattern) { | 12 Message* m, const ContentSettingsPattern& pattern) { |
13 ContentSettingsPatternSerializer::WriteToMessage(pattern, m); | 13 ContentSettingsPatternSerializer::WriteToMessage(pattern, m); |
14 } | 14 } |
15 | 15 |
16 bool ParamTraits<ContentSettingsPattern>::Read( | 16 bool ParamTraits<ContentSettingsPattern>::Read( |
17 const Message* m, PickleIterator* iter, ContentSettingsPattern* pattern) { | 17 const Message* m, |
| 18 base::PickleIterator* iter, |
| 19 ContentSettingsPattern* pattern) { |
18 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern); | 20 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern); |
19 } | 21 } |
20 | 22 |
21 void ParamTraits<ContentSettingsPattern>::Log( | 23 void ParamTraits<ContentSettingsPattern>::Log( |
22 const ContentSettingsPattern& p, std::string* l) { | 24 const ContentSettingsPattern& p, std::string* l) { |
23 l->append("<ContentSettingsPattern: "); | 25 l->append("<ContentSettingsPattern: "); |
24 l->append(p.ToString()); | 26 l->append(p.ToString()); |
25 l->append(">"); | 27 l->append(">"); |
26 } | 28 } |
27 | 29 |
28 } // namespace IPC | 30 } // namespace IPC |
OLD | NEW |