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

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

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/cast_messages.cc ('k') | chrome/common/content_settings_pattern_serializer.cc » ('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 #ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_ 5 #ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
6 #define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_ 6 #define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace base { 10 namespace base {
11 class Pickle;
11 class PickleIterator; 12 class PickleIterator;
12 } 13 }
13 14
14 namespace IPC {
15 class Message;
16 }
17
18 class ContentSettingsPattern; 15 class ContentSettingsPattern;
19 16
20 class ContentSettingsPatternSerializer { 17 class ContentSettingsPatternSerializer {
21 public: 18 public:
22 // Serializes the pattern to an IPC message. 19 // Serializes the pattern to an IPC message.
23 static void WriteToMessage(const ContentSettingsPattern& pattern, 20 static void WriteToMessage(const ContentSettingsPattern& pattern,
24 IPC::Message* m); 21 base::Pickle* m);
25 // Deserializes the pattern from the IPC message. 22 // Deserializes the pattern from the IPC message.
26 static bool ReadFromMessage(const IPC::Message* m, 23 static bool ReadFromMessage(const base::Pickle* m,
27 base::PickleIterator* iter, 24 base::PickleIterator* iter,
28 ContentSettingsPattern* pattern); 25 ContentSettingsPattern* pattern);
29 26
30 private: 27 private:
31 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingsPatternSerializer); 28 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingsPatternSerializer);
32 }; 29 };
33 30
34 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_ 31 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
OLDNEW
« no previous file with comments | « chrome/common/cast_messages.cc ('k') | chrome/common/content_settings_pattern_serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698