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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/content_settings_pattern_serializer.h
diff --git a/chrome/common/content_settings_pattern_serializer.h b/chrome/common/content_settings_pattern_serializer.h
new file mode 100644
index 0000000000000000000000000000000000000000..f81053f70fb6c660414258e5d1bfcdadf5843031
--- /dev/null
+++ b/chrome/common/content_settings_pattern_serializer.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
+#define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_
+
+#include "base/macros.h"
+
+namespace IPC {
+class Message;
+}
+
+class ContentSettingsPattern;
+class PickleIterator;
+
+class ContentSettingsPatternSerializer {
+ public:
+ // 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.
+ static void WriteToMessage(const ContentSettingsPattern& pattern,
+ IPC::Message* m);
+ static bool ReadFromMessage(const IPC::Message* m, PickleIterator* iter,
+ ContentSettingsPattern* pattern);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingsPatternSerializer);
+};
+
+#endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_SERIALIZER_H_

Powered by Google App Engine
This is Rietveld 408576698