Remove obsolete DEPS override in c/b/history.
[chromium-blink-merge.git] / chrome / common / content_settings_pattern_serializer.h
blobbe724a7d3fc33cd87dc32cda31a4383f02983fd7
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 base {
11 class PickleIterator;
14 namespace IPC {
15 class Message;
18 class ContentSettingsPattern;
20 class ContentSettingsPatternSerializer {
21 public:
22 // Serializes the pattern to an IPC message.
23 static void WriteToMessage(const ContentSettingsPattern& pattern,
24 IPC::Message* m);
25 // Deserializes the pattern from the IPC message.
26 static bool ReadFromMessage(const IPC::Message* m,
27 base::PickleIterator* iter,
28 ContentSettingsPattern* pattern);
30 private:
31 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingsPatternSerializer);
34 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_