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

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

Issue 1624723002: Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fetch, rebase, format Created 4 years, 10 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_browsing_db.gypi ('k') | components/safe_browsing_db/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 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 group("safe_browsing_db") { 13 # GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto
14 proto_library("metadata_proto") {
15 sources = [
16 "metadata.proto",
17 ]
18 }
19
20 group("safe_browsing_db_shared") {
14 deps = [ 21 deps = [
15 ":database_manager", 22 ":database_manager",
16 ":hit_report", 23 ":hit_report",
17 ":prefix_set", 24 ":prefix_set",
18 ":proto", 25 ":proto",
19 ":util", 26 ":util",
20 ] 27 ]
21 } 28 }
22 29
30 group("safe_browsing_db") {
31 deps = [
32 ":safe_browsing_db_shared",
33 ]
34 }
35
36 group("safe_browsing_db_mobile") {
37 deps = [
38 ":remote_database_manager",
39 ":safe_browsing_api_handler",
40 ":safe_browsing_api_handler_util",
41 ":safe_browsing_db_shared",
42 ]
43 }
44
23 source_set("database_manager") { 45 source_set("database_manager") {
24 sources = [ 46 sources = [
25 "database_manager.cc", 47 "database_manager.cc",
26 "database_manager.h", 48 "database_manager.h",
27 ] 49 ]
28 deps = [ 50 deps = [
29 ":hit_report", 51 ":hit_report",
30 ":util", 52 ":util",
31 "//base:base", 53 "//base:base",
32 "//content/public/common", 54 "//content/public/common",
(...skipping 17 matching lines...) Expand all
50 sources = [ 72 sources = [
51 "prefix_set.cc", 73 "prefix_set.cc",
52 "prefix_set.h", 74 "prefix_set.h",
53 ] 75 ]
54 deps = [ 76 deps = [
55 ":util", 77 ":util",
56 "//base", 78 "//base",
57 ] 79 ]
58 } 80 }
59 81
82 source_set("remote_database_manager") {
83 sources = [
84 "remote_database_manager.cc",
85 "remote_database_manager.h",
86 ]
87 deps = [
88 ":database_manager",
89 ":safe_browsing_api_handler",
90 "//base:base",
91 "//components/variations",
92 "//content/public/browser",
93 "//url:url",
94 ]
95 }
96
97 source_set("safe_browsing_api_handler") {
98 sources = [
99 "safe_browsing_api_handler.cc",
100 "safe_browsing_api_handler.h",
101 ]
102 deps = [
103 ":util",
104 "//base:base",
105 "//url:url",
106 ]
107 }
108
109 source_set("safe_browsing_api_handler_util") {
110 sources = [
111 "safe_browsing_api_handler_util.cc",
112 "safe_browsing_api_handler_util.h",
113 ]
114 deps = [
115 ":metadata_proto",
116 ":util",
117 "//base:base",
118 ]
119 }
120
60 source_set("util") { 121 source_set("util") {
61 sources = [ 122 sources = [
62 "util.cc", 123 "util.cc",
63 "util.h", 124 "util.h",
64 ] 125 ]
65 deps = [ 126 deps = [
66 "//base", 127 "//base",
67 "//crypto", 128 "//crypto",
68 "//net", 129 "//net",
69 ] 130 ]
(...skipping 25 matching lines...) Expand all
95 ":util", 156 ":util",
96 "//base", 157 "//base",
97 "//testing/gtest", 158 "//testing/gtest",
98 "//url", 159 "//url",
99 ] 160 ]
100 if (is_win) { 161 if (is_win) {
101 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 162 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
102 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 163 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
103 } 164 }
104 } 165 }
166
167 source_set("unit_tests_mobile") {
168 testonly = true
169 sources = [
170 "remote_database_manager_unittest.cc",
171 "safe_browsing_api_handler_unittest.cc",
172 ]
173 deps = [
174 ":metadata_proto",
175 ":remote_database_manager",
176 ":safe_browsing_api_handler",
177 ":safe_browsing_api_handler_util",
178 ":util",
179 "//base",
180 "//components/variations",
181 "//testing/gtest",
182 "//url",
183 ]
184 if (is_win) {
185 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
186 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
187 }
188 }
OLDNEW
« no previous file with comments | « components/safe_browsing_db.gypi ('k') | components/safe_browsing_db/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698