summaryrefslogtreecommitdiffstats
path: root/chrome/utility/safe_json_parser_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/utility/safe_json_parser_handler.cc')
-rw-r--r--chrome/utility/safe_json_parser_handler.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/utility/safe_json_parser_handler.cc b/chrome/utility/safe_json_parser_handler.cc
new file mode 100644
index 0000000..e60cba3
--- /dev/null
+++ b/chrome/utility/safe_json_parser_handler.cc
@@ -0,0 +1,18 @@
+// 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.
+
+#include "chrome/utility/safe_json_parser_handler.h"
+
+#include "components/safe_json_parser/safe_json_parser_message_filter.h"
+
+SafeJsonParserHandler::SafeJsonParserHandler()
+ : handler_(new safe_json_parser::SafeJsonParserMessageFilter) {
+}
+
+SafeJsonParserHandler::~SafeJsonParserHandler() {
+}
+
+bool SafeJsonParserHandler::OnMessageReceived(const IPC::Message& message) {
+ return handler_->OnMessageReceived(message);
+}