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

Unified Diff: components/safe_json_parser/safe_json_parser_message_filter.h

Issue 1140053003: Refactoring: Moving the SafeJsonParser to its own component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moving to namespace Created 5 years, 7 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: components/safe_json_parser/safe_json_parser_message_filter.h
diff --git a/components/safe_json_parser/safe_json_parser_message_filter.h b/components/safe_json_parser/safe_json_parser_message_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..469f9f0b6c05b571e76178bc35a54ed4a41d9ef8
--- /dev/null
+++ b/components/safe_json_parser/safe_json_parser_message_filter.h
@@ -0,0 +1,27 @@
+// Copyright 2015 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 COMPONENTS_SAFE_JSON_PARSER_SAFE_JSON_PARSER_MESSAGE_FILTER_H_
+#define COMPONENTS_SAFE_JSON_PARSER_SAFE_JSON_PARSER_MESSAGE_FILTER_H_
+
+#include <string>
+
+namespace IPC {
+class Message;
+} // namespace IPC
+
+namespace safe_json_parser {
+
+class SafeJsonParserMessageFilter {
Robert Sesek 2015/05/14 20:12:33 Needs a class-level comment.
Eran Messeri 2015/05/15 12:52:40 Done.
+ public:
+ // IPC::MessageFilter implementation
Robert Sesek 2015/05/14 20:12:34 This isn't accurate.
Eran Messeri 2015/05/15 12:52:40 Done.
+ bool OnMessageReceived(const IPC::Message& message);
+
+ private:
+ void OnParseJSON(const std::string& json);
+};
Robert Sesek 2015/05/14 20:12:55 DISALLOW_COPY_AND_ASSIGN
Eran Messeri 2015/05/15 12:52:40 Done.
+
+} // namespace safe_json_parser
+
+#endif // COMPONENTS_SAFE_JSON_PARSER_SAFE_JSON_PARSER_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698