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("proto") { | 7 proto_library("proto") { |
8 sources = [ | 8 sources = [ |
9 "safebrowsing.proto", | 9 "safebrowsing.proto", |
10 ] | 10 ] |
11 } | 11 } |
12 | 12 |
13 # GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto | 13 # GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto |
14 proto_library("metadata_proto") { | 14 proto_library("metadata_proto") { |
15 sources = [ | 15 sources = [ |
16 "metadata.proto", | 16 "metadata.proto", |
17 ] | 17 ] |
18 } | 18 } |
19 | 19 |
| 20 # This target is shared between the desktop and mobile versions. |
20 group("safe_browsing_db_shared") { | 21 group("safe_browsing_db_shared") { |
21 deps = [ | 22 deps = [ |
22 ":database_manager", | 23 ":database_manager", |
23 ":hit_report", | 24 ":hit_report", |
24 ":prefix_set", | 25 ":prefix_set", |
25 ":proto", | 26 ":proto", |
26 ":util", | 27 ":util", |
27 ] | 28 ] |
28 } | 29 } |
29 | 30 |
| 31 # This target is for the desktop version. |
30 group("safe_browsing_db") { | 32 group("safe_browsing_db") { |
31 deps = [ | 33 deps = [ |
32 ":safe_browsing_db_shared", | 34 ":safe_browsing_db_shared", |
33 ":v4_local_database_manager", | 35 ":v4_local_database_manager", |
34 ":v4_update_protocol_manager", | 36 ":v4_update_protocol_manager", |
35 ] | 37 ] |
36 } | 38 } |
37 | 39 |
| 40 # This target is for the mobile version. |
38 group("safe_browsing_db_mobile") { | 41 group("safe_browsing_db_mobile") { |
39 deps = [ | 42 deps = [ |
40 ":remote_database_manager", | 43 ":remote_database_manager", |
41 ":safe_browsing_api_handler", | 44 ":safe_browsing_api_handler", |
42 ":safe_browsing_api_handler_util", | 45 ":safe_browsing_api_handler_util", |
43 ":safe_browsing_db_shared", | 46 ":safe_browsing_db_shared", |
44 ] | 47 ] |
45 } | 48 } |
46 | 49 |
47 source_set("database_manager") { | 50 source_set("database_manager") { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 "//net", | 221 "//net", |
219 "//url:url", | 222 "//url:url", |
220 ] | 223 ] |
221 } | 224 } |
222 | 225 |
223 source_set("v4_store") { | 226 source_set("v4_store") { |
224 sources = [ | 227 sources = [ |
225 "v4_store.cc", | 228 "v4_store.cc", |
226 "v4_store.h", | 229 "v4_store.h", |
227 ] | 230 ] |
| 231 public_deps = [ |
| 232 ":proto", |
| 233 ] |
228 deps = [ | 234 deps = [ |
| 235 ":v4_protocol_manager_util", |
229 "//base", | 236 "//base", |
230 ] | 237 ] |
231 } | 238 } |
232 | 239 |
233 source_set("v4_update_protocol_manager") { | 240 source_set("v4_update_protocol_manager") { |
234 sources = [ | 241 sources = [ |
235 "v4_update_protocol_manager.cc", | 242 "v4_update_protocol_manager.cc", |
236 "v4_update_protocol_manager.h", | 243 "v4_update_protocol_manager.h", |
237 ] | 244 ] |
238 deps = [ | 245 deps = [ |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 "//base", | 303 "//base", |
297 "//components/variations", | 304 "//components/variations", |
298 "//testing/gtest", | 305 "//testing/gtest", |
299 "//url", | 306 "//url", |
300 ] | 307 ] |
301 if (is_win) { | 308 if (is_win) { |
302 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 309 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
303 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 310 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
304 } | 311 } |
305 } | 312 } |
OLD | NEW |