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

Side by Side Diff: chrome/common/content_settings_pattern_serializer.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
« no previous file with comments | « chrome/common/content_settings_pattern_serializer.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/content_settings_pattern_serializer.h" 5 #include "chrome/common/content_settings_pattern_serializer.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "components/content_settings/core/common/content_settings_pattern.h" 8 #include "components/content_settings/core/common/content_settings_pattern.h"
9 9
10 // static 10 // static
11 void ContentSettingsPatternSerializer::WriteToMessage( 11 void ContentSettingsPatternSerializer::WriteToMessage(
12 const ContentSettingsPattern& pattern, 12 const ContentSettingsPattern& pattern,
13 IPC::Message* m) { 13 base::Pickle* m) {
14 IPC::WriteParam(m, pattern.is_valid_); 14 IPC::WriteParam(m, pattern.is_valid_);
15 IPC::WriteParam(m, pattern.parts_); 15 IPC::WriteParam(m, pattern.parts_);
16 } 16 }
17 17
18 // static 18 // static
19 bool ContentSettingsPatternSerializer::ReadFromMessage( 19 bool ContentSettingsPatternSerializer::ReadFromMessage(
20 const IPC::Message* m, 20 const base::Pickle* m,
21 base::PickleIterator* iter, 21 base::PickleIterator* iter,
22 ContentSettingsPattern* pattern) { 22 ContentSettingsPattern* pattern) {
23 DCHECK(pattern); 23 DCHECK(pattern);
24 return IPC::ReadParam(m, iter, &pattern->is_valid_) && 24 return IPC::ReadParam(m, iter, &pattern->is_valid_) &&
25 IPC::ReadParam(m, iter, &pattern->parts_); 25 IPC::ReadParam(m, iter, &pattern->parts_);
26 } 26 }
OLDNEW
« no previous file with comments | « chrome/common/content_settings_pattern_serializer.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698