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

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

Powered by Google App Engine
This is Rietveld 408576698