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

Side by Side Diff: chrome/common/content_settings_pattern_serializer.h

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no DCHECK Created 6 years, 4 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
(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 #ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
6 #define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
7
8 #include "base/macros.h"
9
10 namespace IPC {
11 class Message;
12 }
13
14 class ContentSettingsPattern;
15 class PickleIterator;
16
17 class ContentSettingsPatternSerializer {
18 public:
19 // Serializes the pattern to an IPC message or deserializes it.
vabr (Chromium) 2014/08/20 09:52:22 nit: Separate the comments and place each of them
vasilii 2014/08/21 14:58:02 Done.
20 static void WriteToMessage(const ContentSettingsPattern& pattern,
21 IPC::Message* m);
22 static bool ReadFromMessage(const IPC::Message* m, PickleIterator* iter,
23 ContentSettingsPattern* pattern);
24
25 private:
26 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingsPatternSerializer);
27 };
28
29 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698