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

Side by Side Diff: components/safe_json/safe_json_parser_messages.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Message definition file, included multiple times, hence no include guard.
6
7 #include <string>
8 #include <vector>
9
10 #include "base/strings/string16.h"
11 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_message_utils.h"
13
14 #define IPC_MESSAGE_START SafeJsonParserMsgStart
15
16 //------------------------------------------------------------------------------
17 // Process messages:
18 // This is a message from the browser to the utility process telling it to parse
19 // a JSON string into a Value object.
20 IPC_MESSAGE_CONTROL1(SafeJsonParserMsg_ParseJSON,
21 std::string /* JSON to parse */)
22
23 //------------------------------------------------------------------------------
24 // Host messages: Reply when the utility process successfully parsed a JSON
25 // string.
26 //
27 // WARNING: The result can be of any Value subclass type, but we can't easily
28 // pass indeterminate value types by const object reference with our IPC macros,
29 // so we put the result Value into a ListValue. Handlers should examine the
30 // first (and only) element of the ListValue for the actual result.
31 IPC_MESSAGE_CONTROL1(SafeJsonParserHostMsg_ParseJSON_Succeeded, base::ListValue)
32
33 // Reply when the utility process failed in parsing a JSON string.
34 IPC_MESSAGE_CONTROL1(SafeJsonParserHostMsg_ParseJSON_Failed,
35 std::string /* error message, if any*/)
OLDNEW
« no previous file with comments | « components/safe_json/safe_json_parser_message_filter.cc ('k') | components/safe_json/safe_json_parser_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698