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

Side by Side Diff: components/safe_json/BUILD.gn

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
« no previous file with comments | « components/safe_json.gypi ('k') | components/safe_json/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 } 7 }
8 8
9 # GYP version: components/safe_json.gypi:safe_json 9 # GYP version: components/safe_json.gypi:safe_json
10 source_set("safe_json") { 10 source_set("safe_json") {
11 sources = [ 11 sources = [
12 "android/component_jni_registrar.cc", 12 "android/component_jni_registrar.cc",
13 "android/component_jni_registrar.h", 13 "android/component_jni_registrar.h",
14 "json_sanitizer.cc", 14 "json_sanitizer.cc",
15 "json_sanitizer.h", 15 "json_sanitizer.h",
16 "json_sanitizer_android.cc", 16 "json_sanitizer_android.cc",
17 "safe_json_parser.cc", 17 "safe_json_parser.cc",
18 "safe_json_parser.h", 18 "safe_json_parser.h",
19 "safe_json_parser_android.cc", 19 "safe_json_parser_android.cc",
20 "safe_json_parser_android.h", 20 "safe_json_parser_android.h",
21 "safe_json_parser_impl.cc", 21 "safe_json_parser_impl.cc",
22 "safe_json_parser_impl.h", 22 "safe_json_parser_impl.h",
23 ] 23 ]
24 24
25 deps = [ 25 deps = [
26 ":messages",
27 "//base", 26 "//base",
27 "//components/safe_json/public/interfaces",
28 "//components/strings", 28 "//components/strings",
29 "//content/public/browser", 29 "//content/public/browser",
30 "//ipc", 30 "//content/public/common",
31 "//mojo/edk/system",
31 "//ui/base", 32 "//ui/base",
32 ] 33 ]
33 34
34 if (is_android) { 35 if (is_android) {
35 sources -= [ 36 sources -= [
36 "json_sanitizer.cc", 37 "json_sanitizer.cc",
37 "safe_json_parser_impl.cc", 38 "safe_json_parser_impl.cc",
38 "safe_json_parser_impl.h", 39 "safe_json_parser_impl.h",
39 ] 40 ]
40 deps += [ "android:safe_json_jni_headers" ] 41 deps += [ "android:safe_json_jni_headers" ]
41 deps -= [ 42 deps -= [
42 ":messages", 43 "//components/safe_json/public/interfaces",
43 "//content/public/browser", 44 "//content/public/browser",
44 "//ipc", 45 "//mojo/edk/system",
45 ] 46 ]
46 } 47 }
47 } 48 }
48 49
49 # GYP version: components/safe_json.gypi:safe_json_unittest_sources 50 # GYP version: components/safe_json.gypi:safe_json_unittest_sources
50 source_set("unit_tests") { 51 source_set("unit_tests") {
51 testonly = true 52 testonly = true
52 sources = [ 53 sources = [
53 "json_sanitizer_unittest.cc", 54 "json_sanitizer_unittest.cc",
54 "testing_json_parser_unittest.cc", 55 "testing_json_parser_unittest.cc",
(...skipping 13 matching lines...) Expand all
68 sources = [ 69 sources = [
69 "testing_json_parser.cc", 70 "testing_json_parser.cc",
70 "testing_json_parser.h", 71 "testing_json_parser.h",
71 ] 72 ]
72 73
73 deps = [ 74 deps = [
74 ":safe_json", 75 ":safe_json",
75 "//base", 76 "//base",
76 ] 77 ]
77 } 78 }
78
79 # This is a separate source set so that it can be shared between safe_json
80 # (which can be used from any process) and the message filter (which depends on
81 # the utility process and hence indirectly Blink.
82 source_set("messages") {
83 sources = [
84 "safe_json_parser_messages.cc",
85 "safe_json_parser_messages.h",
86 ]
87
88 deps = [
89 "//content/public/common",
90 "//ipc",
91 ]
92 }
93
94 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter
95 source_set("safe_json_parser_message_filter") {
96 sources = [
97 "safe_json_parser_message_filter.cc",
98 "safe_json_parser_message_filter.h",
99 ]
100
101 deps = [
102 ":messages",
103 "//base",
104 "//content/public/common",
105 "//content/public/utility",
106 "//ipc",
107 ]
108 }
OLDNEW
« no previous file with comments | « components/safe_json.gypi ('k') | components/safe_json/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698