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

Unified Diff: chrome/utility/safe_json_parser_handler.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: chrome/utility/safe_json_parser_handler.h
diff --git a/chrome/utility/safe_json_parser_handler.h b/chrome/utility/safe_json_parser_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..e0edbc7291905de100f2944bf20b3592e1e733cb
--- /dev/null
+++ b/chrome/utility/safe_json_parser_handler.h
@@ -0,0 +1,28 @@
+// 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 CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
+#define CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "chrome/utility/utility_message_handler.h"
+
+namespace safe_json_parser {
+class SafeJsonParserMessageFilter;
+} // namespace safe_json_parser
+
+// Dispatches IPCs for out of process JSON parsing.
Robert Sesek 2015/05/14 20:12:33 May want to mention that this is an adapter and wh
Eran Messeri 2015/05/15 12:52:40 Done.
+class SafeJsonParserHandler : public UtilityMessageHandler {
+ public:
+ SafeJsonParserHandler();
+ ~SafeJsonParserHandler() override;
+
+ // UtilityMessageHandler
+ bool OnMessageReceived(const IPC::Message& message) override;
+
+ private:
+ scoped_ptr<safe_json_parser::SafeJsonParserMessageFilter> handler_;
Robert Sesek 2015/05/14 20:12:33 DISALLOW_COPY_AND_ASSIGN
Eran Messeri 2015/05/15 12:52:40 Done.
+};
+
+#endif // CHROME_UTILITY_SAFE_JSON_PARSER_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698