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

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

Issue 1620813005: Revert of Move remote_db_manager into the safe_browsing_db component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 # GYP version: components/safe_browsing_db.gypi:safe_browsing_metadata_proto 13 group("safe_browsing_db") {
14 proto_library("metadata_proto") {
15 sources = [
16 "metadata.proto",
17 ]
18 }
19
20 group("safe_browsing_db_shared") {
21 deps = [ 14 deps = [
22 ":database_manager", 15 ":database_manager",
23 ":hit_report", 16 ":hit_report",
24 ":prefix_set", 17 ":prefix_set",
25 ":proto", 18 ":proto",
26 ":util", 19 ":util",
27 ] 20 ]
28 } 21 }
29 22
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
45 source_set("database_manager") { 23 source_set("database_manager") {
46 sources = [ 24 sources = [
47 "database_manager.cc", 25 "database_manager.cc",
48 "database_manager.h", 26 "database_manager.h",
49 ] 27 ]
50 deps = [ 28 deps = [
51 ":hit_report", 29 ":hit_report",
52 ":util", 30 ":util",
53 "//base:base", 31 "//base:base",
54 "//content/public/common", 32 "//content/public/common",
(...skipping 17 matching lines...) Expand all
72 sources = [ 50 sources = [
73 "prefix_set.cc", 51 "prefix_set.cc",
74 "prefix_set.h", 52 "prefix_set.h",
75 ] 53 ]
76 deps = [ 54 deps = [
77 ":util", 55 ":util",
78 "//base", 56 "//base",
79 ] 57 ]
80 } 58 }
81 59
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
121 source_set("util") { 60 source_set("util") {
122 sources = [ 61 sources = [
123 "util.cc", 62 "util.cc",
124 "util.h", 63 "util.h",
125 ] 64 ]
126 deps = [ 65 deps = [
127 "//base", 66 "//base",
128 "//crypto", 67 "//crypto",
129 "//net", 68 "//net",
130 ] 69 ]
(...skipping 25 matching lines...) Expand all
156 ":util", 95 ":util",
157 "//base", 96 "//base",
158 "//testing/gtest", 97 "//testing/gtest",
159 "//url", 98 "//url",
160 ] 99 ]
161 if (is_win) { 100 if (is_win) {
162 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 101 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
163 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 102 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
164 } 103 }
165 } 104 }
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