OLD | NEW |
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 import("//third_party/protobuf/proto_library.gni") | 5 import("//third_party/protobuf/proto_library.gni") |
6 | 6 |
7 proto_library("safebrowsing_proto") { | 7 proto_library("safebrowsing_proto") { |
8 sources = [ | 8 sources = [ |
9 "safebrowsing.proto", | 9 "safebrowsing.proto", |
10 ] | 10 ] |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 static_library("database_manager") { | 59 static_library("database_manager") { |
60 sources = [ | 60 sources = [ |
61 "database_manager.cc", | 61 "database_manager.cc", |
62 "database_manager.h", | 62 "database_manager.h", |
63 ] | 63 ] |
64 deps = [ | 64 deps = [ |
65 ":hit_report", | 65 ":hit_report", |
66 ":util", | 66 ":util", |
67 ":v4_get_hash_protocol_manager", | 67 ":v4_get_hash_protocol_manager", |
68 "//base:base", | 68 "//base", |
69 "//content/public/browser", | 69 "//content/public/browser", |
70 "//content/public/common", | 70 "//content/public/common", |
71 "//net", | 71 "//net", |
72 "//url:url", | 72 "//url", |
73 ] | 73 ] |
74 } | 74 } |
75 | 75 |
76 static_library("hit_report") { | 76 static_library("hit_report") { |
77 sources = [ | 77 sources = [ |
78 "hit_report.cc", | 78 "hit_report.cc", |
79 "hit_report.h", | 79 "hit_report.h", |
80 ] | 80 ] |
81 deps = [ | 81 deps = [ |
82 ":util", | 82 ":util", |
83 "//components/metrics:metrics", | 83 "//components/metrics", |
84 "//url:url", | 84 "//url", |
85 ] | 85 ] |
86 } | 86 } |
87 | 87 |
88 static_library("prefix_set") { | 88 static_library("prefix_set") { |
89 sources = [ | 89 sources = [ |
90 "prefix_set.cc", | 90 "prefix_set.cc", |
91 "prefix_set.h", | 91 "prefix_set.h", |
92 ] | 92 ] |
93 deps = [ | 93 deps = [ |
94 ":util", | 94 ":util", |
95 "//base", | 95 "//base", |
96 ] | 96 ] |
97 } | 97 } |
98 | 98 |
99 static_library("remote_database_manager") { | 99 static_library("remote_database_manager") { |
100 sources = [ | 100 sources = [ |
101 "remote_database_manager.cc", | 101 "remote_database_manager.cc", |
102 "remote_database_manager.h", | 102 "remote_database_manager.h", |
103 ] | 103 ] |
104 deps = [ | 104 deps = [ |
105 ":database_manager", | 105 ":database_manager", |
106 ":safe_browsing_api_handler", | 106 ":safe_browsing_api_handler", |
107 ":v4_get_hash_protocol_manager", | 107 ":v4_get_hash_protocol_manager", |
108 "//base:base", | 108 "//base:base", |
109 "//components/variations", | 109 "//components/variations", |
110 "//content/public/browser", | 110 "//content/public/browser", |
111 "//net", | 111 "//net", |
112 "//url:url", | 112 "//url", |
113 ] | 113 ] |
114 } | 114 } |
115 | 115 |
116 source_set("safe_browsing_api_handler") { | 116 source_set("safe_browsing_api_handler") { |
117 sources = [ | 117 sources = [ |
118 "safe_browsing_api_handler.cc", | 118 "safe_browsing_api_handler.cc", |
119 "safe_browsing_api_handler.h", | 119 "safe_browsing_api_handler.h", |
120 ] | 120 ] |
121 deps = [ | 121 deps = [ |
122 ":util", | 122 ":util", |
123 "//base:base", | 123 "//base", |
124 "//url:url", | 124 "//url", |
125 ] | 125 ] |
126 } | 126 } |
127 | 127 |
128 static_library("safe_browsing_api_handler_util") { | 128 static_library("safe_browsing_api_handler_util") { |
129 sources = [ | 129 sources = [ |
130 "safe_browsing_api_handler_util.cc", | 130 "safe_browsing_api_handler_util.cc", |
131 "safe_browsing_api_handler_util.h", | 131 "safe_browsing_api_handler_util.h", |
132 ] | 132 ] |
133 deps = [ | 133 deps = [ |
134 ":metadata_proto", | 134 ":metadata_proto", |
135 ":util", | 135 ":util", |
136 "//base:base", | 136 "//base", |
137 ] | 137 ] |
138 } | 138 } |
139 | 139 |
140 static_library("test_database_manager") { | 140 static_library("test_database_manager") { |
141 sources = [ | 141 sources = [ |
142 "test_database_manager.cc", | 142 "test_database_manager.cc", |
143 "test_database_manager.h", | 143 "test_database_manager.h", |
144 ] | 144 ] |
145 deps = [ | 145 deps = [ |
146 ":database_manager", | 146 ":database_manager", |
147 "//base:base", | 147 "//base:base", |
148 "//net", | 148 "//net", |
149 ] | 149 ] |
150 } | 150 } |
151 | 151 |
152 static_library("util") { | 152 static_library("util") { |
153 sources = [ | 153 sources = [ |
154 "util.cc", | 154 "util.cc", |
155 "util.h", | 155 "util.h", |
156 ] | 156 ] |
157 deps = [ | 157 deps = [ |
158 ":v4_protocol_manager_util", | 158 ":v4_protocol_manager_util", |
159 "//base", | 159 "//base", |
160 "//base:base", | |
161 "//crypto", | 160 "//crypto", |
162 "//net", | 161 "//net", |
163 "//url:url", | 162 "//url", |
164 ] | 163 ] |
165 if (is_win) { | 164 if (is_win) { |
166 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 165 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
167 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 166 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
168 } | 167 } |
169 } | 168 } |
170 | 169 |
171 static_library("v4_database") { | 170 static_library("v4_database") { |
172 sources = [ | 171 sources = [ |
173 "v4_database.cc", | 172 "v4_database.cc", |
(...skipping 16 matching lines...) Expand all Loading... |
190 "v4_get_hash_protocol_manager.h", | 189 "v4_get_hash_protocol_manager.h", |
191 ] | 190 ] |
192 public_deps = [ | 191 public_deps = [ |
193 ":safebrowsing_proto", | 192 ":safebrowsing_proto", |
194 ] | 193 ] |
195 deps = [ | 194 deps = [ |
196 ":util", | 195 ":util", |
197 ":v4_protocol_manager_util", | 196 ":v4_protocol_manager_util", |
198 "//base", | 197 "//base", |
199 "//net", | 198 "//net", |
200 "//url:url", | 199 "//url", |
201 ] | 200 ] |
202 } | 201 } |
203 | 202 |
204 static_library("v4_local_database_manager") { | 203 static_library("v4_local_database_manager") { |
205 sources = [ | 204 sources = [ |
206 "v4_local_database_manager.cc", | 205 "v4_local_database_manager.cc", |
207 "v4_local_database_manager.h", | 206 "v4_local_database_manager.h", |
208 ] | 207 ] |
209 deps = [ | 208 deps = [ |
210 ":database_manager", | 209 ":database_manager", |
211 ":hit_report", | 210 ":hit_report", |
212 ":safebrowsing_proto", | 211 ":safebrowsing_proto", |
213 ":v4_database", | 212 ":v4_database", |
214 ":v4_protocol_manager_util", | 213 ":v4_protocol_manager_util", |
215 ":v4_update_protocol_manager", | 214 ":v4_update_protocol_manager", |
216 "//base", | 215 "//base", |
217 "//content/public/browser", | 216 "//content/public/browser", |
218 "//net", | 217 "//net", |
219 "//url:url", | 218 "//url", |
220 ] | 219 ] |
221 } | 220 } |
222 | 221 |
223 source_set("v4_protocol_manager_util") { | 222 source_set("v4_protocol_manager_util") { |
224 sources = [ | 223 sources = [ |
225 "v4_protocol_manager_util.cc", | 224 "v4_protocol_manager_util.cc", |
226 "v4_protocol_manager_util.h", | 225 "v4_protocol_manager_util.h", |
227 ] | 226 ] |
228 deps = [ | 227 deps = [ |
229 ":safebrowsing_proto", | 228 ":safebrowsing_proto", |
230 "//base", | 229 "//base", |
231 "//net", | 230 "//net", |
232 "//url:url", | 231 "//url", |
233 ] | 232 ] |
234 } | 233 } |
235 | 234 |
236 source_set("v4_rice") { | 235 source_set("v4_rice") { |
237 sources = [ | 236 sources = [ |
238 "v4_rice.cc", | 237 "v4_rice.cc", |
239 "v4_rice.h", | 238 "v4_rice.h", |
240 ] | 239 ] |
241 deps = [ | 240 deps = [ |
242 "//base", | 241 "//base", |
(...skipping 22 matching lines...) Expand all Loading... |
265 sources = [ | 264 sources = [ |
266 "v4_update_protocol_manager.cc", | 265 "v4_update_protocol_manager.cc", |
267 "v4_update_protocol_manager.h", | 266 "v4_update_protocol_manager.h", |
268 ] | 267 ] |
269 deps = [ | 268 deps = [ |
270 ":safebrowsing_proto", | 269 ":safebrowsing_proto", |
271 ":util", | 270 ":util", |
272 ":v4_protocol_manager_util", | 271 ":v4_protocol_manager_util", |
273 "//base", | 272 "//base", |
274 "//net", | 273 "//net", |
275 "//url:url", | 274 "//url", |
276 ] | 275 ] |
277 } | 276 } |
278 | 277 |
279 source_set("unit_tests") { | 278 source_set("unit_tests") { |
280 testonly = true | 279 testonly = true |
281 sources = [ | 280 sources = [ |
282 "database_manager_unittest.cc", | 281 "database_manager_unittest.cc", |
283 "prefix_set_unittest.cc", | 282 "prefix_set_unittest.cc", |
284 "util_unittest.cc", | 283 "util_unittest.cc", |
285 "v4_database_unittest.cc", | 284 "v4_database_unittest.cc", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 "//base", | 332 "//base", |
334 "//components/variations", | 333 "//components/variations", |
335 "//testing/gtest", | 334 "//testing/gtest", |
336 "//url", | 335 "//url", |
337 ] | 336 ] |
338 if (is_win) { | 337 if (is_win) { |
339 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 338 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
340 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 339 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
341 } | 340 } |
342 } | 341 } |
OLD | NEW |