Don't use mContentViewCore after WebView has been destroyed.
[chromium-blink-merge.git] / chrome / common / render_messages.cc
blobdd81496359b35f1791d051e8601cf6d741f91ecd
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, PickleIterator* iter, ContentSettingsPattern* pattern) {
18 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern);
21 void ParamTraits<ContentSettingsPattern>::Log(
22 const ContentSettingsPattern& p, std::string* l) {
23 l->append("<ContentSettingsPattern: ");
24 l->append(p.ToString());
25 l->append(">");
28 } // namespace IPC