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