OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "chrome/common/render_messages.h" | |
6 | |
7 #include "chrome/common/content_settings_pattern_serializer.h" | |
8 | |
9 namespace IPC { | |
10 | |
11 void ParamTraits<ContentSettingsPattern>::GetSize( | |
12 base::PickleSizer* s, | |
13 const ContentSettingsPattern& pattern) { | |
14 ContentSettingsPatternSerializer::GetSize(pattern, s); | |
15 } | |
16 | |
17 void ParamTraits<ContentSettingsPattern>::Write( | |
18 base::Pickle* m, | |
19 const ContentSettingsPattern& pattern) { | |
20 ContentSettingsPatternSerializer::WriteToMessage(pattern, m); | |
21 } | |
22 | |
23 bool ParamTraits<ContentSettingsPattern>::Read( | |
24 const base::Pickle* m, | |
25 base::PickleIterator* iter, | |
26 ContentSettingsPattern* pattern) { | |
27 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern); | |
28 } | |
29 | |
30 void ParamTraits<ContentSettingsPattern>::Log( | |
31 const ContentSettingsPattern& p, std::string* l) { | |
32 l->append("<ContentSettingsPattern: "); | |
33 l->append(p.ToString()); | |
34 l->append(">"); | |
35 } | |
36 | |
37 } // namespace IPC | |
OLD | NEW |