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 base::Pickle* m, |
| 13 const ContentSettingsPattern& pattern) { |
13 ContentSettingsPatternSerializer::WriteToMessage(pattern, m); | 14 ContentSettingsPatternSerializer::WriteToMessage(pattern, m); |
14 } | 15 } |
15 | 16 |
16 bool ParamTraits<ContentSettingsPattern>::Read( | 17 bool ParamTraits<ContentSettingsPattern>::Read( |
17 const Message* m, | 18 const base::Pickle* m, |
18 base::PickleIterator* iter, | 19 base::PickleIterator* iter, |
19 ContentSettingsPattern* pattern) { | 20 ContentSettingsPattern* pattern) { |
20 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern); | 21 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern); |
21 } | 22 } |
22 | 23 |
23 void ParamTraits<ContentSettingsPattern>::Log( | 24 void ParamTraits<ContentSettingsPattern>::Log( |
24 const ContentSettingsPattern& p, std::string* l) { | 25 const ContentSettingsPattern& p, std::string* l) { |
25 l->append("<ContentSettingsPattern: "); | 26 l->append("<ContentSettingsPattern: "); |
26 l->append(p.ToString()); | 27 l->append(p.ToString()); |
27 l->append(">"); | 28 l->append(">"); |
28 } | 29 } |
29 | 30 |
30 } // namespace IPC | 31 } // namespace IPC |
OLD | NEW |