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

Unified Diff: components/safe_json/safe_json_parser_message_filter.h

Issue 1948303002: Re-land: Convert the utility process JSON parser into a Mojo service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/safe_json_parser_message_filter.h
diff --git a/components/safe_json/safe_json_parser_message_filter.h b/components/safe_json/safe_json_parser_message_filter.h
deleted file mode 100644
index 8fdecc4ee188a63478828cacc4d159b5894602df..0000000000000000000000000000000000000000
--- a/components/safe_json/safe_json_parser_message_filter.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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_SAFE_JSON_PARSER_MESSAGE_FILTER_H_
-#define COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MESSAGE_FILTER_H_
-
-#include <string>
-
-#include "base/macros.h"
-
-namespace IPC {
-class Message;
-} // namespace IPC
-
-namespace safe_json {
-
-// A Handler for the ParseJSON IPC message that does the actual JSON parsing
-// in the sandboxed process. Modelled after IPC::MessageFilter but does not
-// directly implement it as it will be used by an adapter class under
-// //chrome/utility.
-class SafeJsonParserMessageFilter {
- public:
- SafeJsonParserMessageFilter();
- ~SafeJsonParserMessageFilter();
- // Returns true if it receives a message it could handle (currently
- // only SafeJsonParserMsg_ParseJSON), false otherwise.
- bool OnMessageReceived(const IPC::Message& message);
-
- private:
- void OnParseJSON(const std::string& json);
-
- DISALLOW_COPY_AND_ASSIGN(SafeJsonParserMessageFilter);
-};
-
-} // namespace safe_json
-
-#endif // COMPONENTS_SAFE_JSON_SAFE_JSON_PARSER_MESSAGE_FILTER_H_
« no previous file with comments | « components/safe_json/safe_json_parser_impl.cc ('k') | components/safe_json/safe_json_parser_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698