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

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

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 10 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
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" 7 #include "chrome/common/content_settings_pattern_serializer.h"
8 8
9 namespace IPC { 9 namespace IPC {
10 10
11 void ParamTraits<ContentSettingsPattern>::Write( 11 void ParamTraits<ContentSettingsPattern>::Write(
12 Message* m, const ContentSettingsPattern& pattern) { 12 base::Pickle* m,
13 const ContentSettingsPattern& pattern) {
13 ContentSettingsPatternSerializer::WriteToMessage(pattern, m); 14 ContentSettingsPatternSerializer::WriteToMessage(pattern, m);
14 } 15 }
15 16
16 bool ParamTraits<ContentSettingsPattern>::Read( 17 bool ParamTraits<ContentSettingsPattern>::Read(
17 const Message* m, 18 const base::Pickle* m,
18 base::PickleIterator* iter, 19 base::PickleIterator* iter,
19 ContentSettingsPattern* pattern) { 20 ContentSettingsPattern* pattern) {
20 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern); 21 return ContentSettingsPatternSerializer::ReadFromMessage(m, iter, pattern);
21 } 22 }
22 23
23 void ParamTraits<ContentSettingsPattern>::Log( 24 void ParamTraits<ContentSettingsPattern>::Log(
24 const ContentSettingsPattern& p, std::string* l) { 25 const ContentSettingsPattern& p, std::string* l) {
25 l->append("<ContentSettingsPattern: "); 26 l->append("<ContentSettingsPattern: ");
26 l->append(p.ToString()); 27 l->append(p.ToString());
27 l->append(">"); 28 l->append(">");
28 } 29 }
29 30
30 } // namespace IPC 31 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/safe_browsing/ipc_protobuf_message_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698