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

Side by Side Diff: components/safe_json_parser/safe_json_parser_messages.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 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 "content/public/common/common_param_traits.h"
12 #include "content/public/common/common_param_traits_macros.h"
13 #include "ipc/ipc_message_macros.h"
14 #include "ipc/ipc_message_utils.h"
15
16 //#ifndef COMPONENTS_SAFE_JSON_PARSER_SAFE_JSON_PARSER_MESSAGES_H_
Robert Sesek 2015/05/14 20:12:34 Remove.
Eran Messeri 2015/05/15 12:52:41 Done.
17 //#define COMPONENTS_SAFE_JSON_PARSER_SAFE_JSON_PARSER_MESSAGES_H_
18
19 #define IPC_MESSAGE_START SafeJsonParserMsgStart
20
21 // Tell the utility process to parse a JSON string into a Value object.
22 IPC_MESSAGE_CONTROL1(SafeJsonParserMsg_ParseJSON,
23 std::string /* JSON to parse */)
24
Robert Sesek 2015/05/14 20:12:34 Put a banner comment here, to separate request fro
Eran Messeri 2015/05/15 12:52:41 Done.
25 // Reply when the utility process successfully parsed a JSON 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*/)
36
37 //#endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698