Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / common / render_messages.cc
blob1573a2cf310af62eb533b4a47e1eb7ecb5567d15
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"
9 namespace IPC {
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,
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());
27 l->append(">");
30 } // namespace IPC