Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Side by Side Diff: chrome/common/render_messages.cc

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm content_settings_initializer Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
8
7 namespace IPC { 9 namespace IPC {
8 10
9 void ParamTraits<ContentSettingsPattern>::Write( 11 void ParamTraits<ContentSettingsPattern>::Write(
10 Message* m, const ContentSettingsPattern& pattern) { 12 Message* m, const ContentSettingsPattern& pattern) {
11 pattern.WriteToMessage(m); 13 ContentSettingsPatternSerializer::WriteToMessage(pattern, m);
12 } 14 }
13 15
14 bool ParamTraits<ContentSettingsPattern>::Read( 16 bool ParamTraits<ContentSettingsPattern>::Read(
15 const Message* m, PickleIterator* iter, ContentSettingsPattern* pattern) { 17 const Message* m, PickleIterator* iter, ContentSettingsPattern* pattern) {
16 return pattern->ReadFromMessage(m, iter); 18 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern);
17 } 19 }
18 20
19 void ParamTraits<ContentSettingsPattern>::Log( 21 void ParamTraits<ContentSettingsPattern>::Log(
20 const ContentSettingsPattern& p, std::string* l) { 22 const ContentSettingsPattern& p, std::string* l) {
21 l->append("<ContentSettingsPattern: "); 23 l->append("<ContentSettingsPattern: ");
22 l->append(p.ToString()); 24 l->append(p.ToString());
23 l->append(">"); 25 l->append(">");
24 } 26 }
25 27
26 } // namespace IPC 28 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/content_settings_pattern_serializer.cc ('k') | chrome/test/base/chrome_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698