Revert of Add field trial testing config for Windows and a PRESUBMIT (patchset #4...
[chromium-blink-merge.git] / chrome / common / content_settings_pattern_serializer.h
blob9d1d184d0cd0046a5d7acb0b7e28f95eaca4e7df
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.
5 #ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
6 #define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
8 #include "base/macros.h"
10 namespace IPC {
11 class Message;
14 class ContentSettingsPattern;
15 class PickleIterator;
17 class ContentSettingsPatternSerializer {
18 public:
19 // Serializes the pattern to an IPC message.
20 static void WriteToMessage(const ContentSettingsPattern& pattern,
21 IPC::Message* m);
22 // Deserializes the pattern from the IPC message.
23 static bool ReadFromMessage(const IPC::Message* m, PickleIterator* iter,
24 ContentSettingsPattern* pattern);
26 private:
27 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingsPatternSerializer);
30 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_