1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
# 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.
if (is_android) {
import("//build/config/android/rules.gni")
}
# GYP version: components/safe_json.gypi:safe_json
source_set("safe_json") {
sources = [
"android/component_jni_registrar.cc",
"android/component_jni_registrar.h",
"json_sanitizer.cc",
"json_sanitizer.h",
"json_sanitizer_android.cc",
"safe_json_parser.cc",
"safe_json_parser.h",
"safe_json_parser_android.cc",
"safe_json_parser_android.h",
"safe_json_parser_impl.cc",
"safe_json_parser_impl.h",
]
deps = [
":messages",
"//base",
"//components/strings",
"//content/public/browser",
"//ipc",
"//ui/base",
]
if (is_android) {
sources -= [
"json_sanitizer.cc",
"safe_json_parser_impl.cc",
"safe_json_parser_impl.h",
]
deps += [ "android:safe_json_jni_headers" ]
deps -= [
":messages",
"//content/public/browser",
"//ipc",
]
}
}
# GYP version: components/safe_json.gypi:safe_json_unittest_sources
source_set("unit_tests") {
testonly = true
sources = [
"json_sanitizer_unittest.cc",
]
deps = [
":safe_json",
":test_support",
"//base",
"//testing/gtest",
]
}
# GYP version: components/safe_json.gypi:safe_json_test_support
source_set("test_support") {
testonly = true
sources = [
"testing_json_parser.cc",
"testing_json_parser.h",
]
deps = [
":safe_json",
"//base",
]
}
# This is a separate source set so that it can be shared between safe_json
# (which can be used from any process) and the message filter (which depends on
# the utility process and hence indirectly Blink.
source_set("messages") {
sources = [
"safe_json_parser_messages.cc",
"safe_json_parser_messages.h",
]
deps = [
"//content/public/common",
"//ipc",
]
}
# GYP version: components/safe_json.gypi:safe_json_parser_message_filter
source_set("safe_json_parser_message_filter") {
sources = [
"safe_json_parser_message_filter.cc",
"safe_json_parser_message_filter.h",
]
deps = [
":messages",
"//base",
"//content/public/common",
"//content/public/utility",
"//ipc",
]
}
|