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

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

Issue 1951863002: Revert of 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",
26 "//base", 27 "//base",
27 "//components/safe_json/public/interfaces",
28 "//components/strings", 28 "//components/strings",
29 "//content/public/browser", 29 "//content/public/browser",
30 "//content/public/common", 30 "//ipc",
31 "//mojo/edk/system",
32 "//ui/base", 31 "//ui/base",
33 ] 32 ]
34 33
35 if (is_android) { 34 if (is_android) {
36 sources -= [ 35 sources -= [
37 "json_sanitizer.cc", 36 "json_sanitizer.cc",
38 "safe_json_parser_impl.cc", 37 "safe_json_parser_impl.cc",
39 "safe_json_parser_impl.h", 38 "safe_json_parser_impl.h",
40 ] 39 ]
41 deps += [ "android:safe_json_jni_headers" ] 40 deps += [ "android:safe_json_jni_headers" ]
42 deps -= [ 41 deps -= [
43 "//components/safe_json/public/interfaces", 42 ":messages",
44 "//content/public/browser", 43 "//content/public/browser",
45 "//mojo/edk/system", 44 "//ipc",
46 ] 45 ]
47 } 46 }
48 } 47 }
49 48
50 # GYP version: components/safe_json.gypi:safe_json_unittest_sources 49 # GYP version: components/safe_json.gypi:safe_json_unittest_sources
51 source_set("unit_tests") { 50 source_set("unit_tests") {
52 testonly = true 51 testonly = true
53 sources = [ 52 sources = [
54 "json_sanitizer_unittest.cc", 53 "json_sanitizer_unittest.cc",
55 ] 54 ]
(...skipping 12 matching lines...) Expand all
68 sources = [ 67 sources = [
69 "testing_json_parser.cc", 68 "testing_json_parser.cc",
70 "testing_json_parser.h", 69 "testing_json_parser.h",
71 ] 70 ]
72 71
73 deps = [ 72 deps = [
74 ":safe_json", 73 ":safe_json",
75 "//base", 74 "//base",
76 ] 75 ]
77 } 76 }
77
78 # This is a separate source set so that it can be shared between safe_json
79 # (which can be used from any process) and the message filter (which depends on
80 # the utility process and hence indirectly Blink.
81 source_set("messages") {
82 sources = [
83 "safe_json_parser_messages.cc",
84 "safe_json_parser_messages.h",
85 ]
86
87 deps = [
88 "//content/public/common",
89 "//ipc",
90 ]
91 }
92
93 # GYP version: components/safe_json.gypi:safe_json_parser_message_filter
94 source_set("safe_json_parser_message_filter") {
95 sources = [
96 "safe_json_parser_message_filter.cc",
97 "safe_json_parser_message_filter.h",
98 ]
99
100 deps = [
101 ":messages",
102 "//base",
103 "//content/public/common",
104 "//content/public/utility",
105 "//ipc",
106 ]
107 }
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