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

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

Issue 1727033003: v4_update_protocol_manager: Basic implementation with TODOs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback. Created 4 years, 9 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
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 ]
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 source_set("database_manager") { 45 source_set("database_manager") {
46 sources = [ 46 sources = [
47 "database_manager.cc", 47 "database_manager.cc",
48 "database_manager.h", 48 "database_manager.h",
49 ] 49 ]
50 deps = [ 50 deps = [
51 ":hit_report", 51 ":hit_report",
52 ":util", 52 ":util",
53 ":v4_get_hash_protocol_manager", 53 ":v4_get_hash_protocol_manager",
54 ":v4_update_protocol_manager",
54 "//base:base", 55 "//base:base",
55 "//content/public/browser", 56 "//content/public/browser",
56 "//content/public/common", 57 "//content/public/common",
57 "//net", 58 "//net",
58 "//url:url", 59 "//url:url",
59 ] 60 ]
60 } 61 }
61 62
62 source_set("hit_report") { 63 source_set("hit_report") {
63 sources = [ 64 sources = [
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 "safe_browsing_api_handler_util.cc", 117 "safe_browsing_api_handler_util.cc",
117 "safe_browsing_api_handler_util.h", 118 "safe_browsing_api_handler_util.h",
118 ] 119 ]
119 deps = [ 120 deps = [
120 ":metadata_proto", 121 ":metadata_proto",
121 ":util", 122 ":util",
122 "//base:base", 123 "//base:base",
123 ] 124 ]
124 } 125 }
125 126
127 source_set("test_database_manager") {
128 sources = [
129 "test_database_manager.cc",
130 "test_database_manager.h",
131 ]
132 deps = [
133 ":database_manager",
134 "//base:base",
135 "//net",
136 ]
137 }
138
126 source_set("util") { 139 source_set("util") {
127 sources = [ 140 sources = [
128 "util.cc", 141 "util.cc",
129 "util.h", 142 "util.h",
130 ] 143 ]
131 deps = [ 144 deps = [
132 "//base", 145 "//base",
146 "//base:base",
133 "//crypto", 147 "//crypto",
134 "//net", 148 "//net",
149 "//url:url",
135 ] 150 ]
136 if (is_win) { 151 if (is_win) {
137 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 152 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
138 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 153 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
139 } 154 }
140 } 155 }
141 156
142 source_set("test_database_manager") {
143 sources = [
144 "test_database_manager.cc",
145 "test_database_manager.h",
146 ]
147 deps = [
148 ":database_manager",
149 "//base:base",
150 "//net",
151 ]
152 }
153
154 source_set("v4_get_hash_protocol_manager") { 157 source_set("v4_get_hash_protocol_manager") {
155 sources = [ 158 sources = [
156 "v4_get_hash_protocol_manager.cc", 159 "v4_get_hash_protocol_manager.cc",
157 "v4_get_hash_protocol_manager.h", 160 "v4_get_hash_protocol_manager.h",
158 ] 161 ]
159 public_deps = [ 162 public_deps = [
160 ":proto", 163 ":proto",
161 ] 164 ]
162 deps = [ 165 deps = [
163 ":util", 166 ":util",
164 ":v4_protocol_manager_util", 167 ":v4_protocol_manager_util",
165 "//base", 168 "//base",
166 "//net", 169 "//net",
167 "//url:url", 170 "//url:url",
168 ] 171 ]
169 } 172 }
170 173
171 source_set("v4_protocol_manager_util") { 174 source_set("v4_protocol_manager_util") {
172 sources = [ 175 sources = [
173 "v4_protocol_manager_util.cc", 176 "v4_protocol_manager_util.cc",
174 "v4_protocol_manager_util.h", 177 "v4_protocol_manager_util.h",
175 ] 178 ]
176 deps = [ 179 deps = [
180 ":proto",
177 "//base", 181 "//base",
178 "//net", 182 "//net",
179 "//url:url", 183 "//url:url",
184 ]
185 }
186
187 source_set("v4_update_protocol_manager") {
188 sources = [
189 "v4_update_protocol_manager.cc",
190 "v4_update_protocol_manager.h",
191 ]
192 deps = [
193 ":proto",
194 ":util",
195 ":v4_protocol_manager_util",
196 "//base",
197 "//net",
198 "//url:url",
180 ] 199 ]
181 } 200 }
182 201
183 source_set("unit_tests") { 202 source_set("unit_tests") {
184 testonly = true 203 testonly = true
185 sources = [ 204 sources = [
186 "prefix_set_unittest.cc", 205 "prefix_set_unittest.cc",
187 "util_unittest.cc", 206 "util_unittest.cc",
188 "v4_get_hash_protocol_manager_unittest.cc", 207 "v4_get_hash_protocol_manager_unittest.cc",
189 "v4_protocol_manager_util_unittest.cc", 208 "v4_protocol_manager_util_unittest.cc",
209 "v4_update_protocol_manager_unittest.cc",
190 ] 210 ]
191 deps = [ 211 deps = [
192 ":prefix_set", 212 ":prefix_set",
193 ":proto", 213 ":proto",
194 ":util", 214 ":util",
195 ":v4_get_hash_protocol_manager", 215 ":v4_get_hash_protocol_manager",
196 ":v4_protocol_manager_util", 216 ":v4_protocol_manager_util",
217 ":v4_update_protocol_manager",
197 "//base", 218 "//base",
198 "//net", 219 "//net",
199 "//net:test_support", 220 "//net:test_support",
200 "//testing/gtest", 221 "//testing/gtest",
201 "//url", 222 "//url",
202 ] 223 ]
203 if (is_win) { 224 if (is_win) {
204 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 225 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
205 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 226 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
206 } 227 }
(...skipping 14 matching lines...) Expand all
221 "//base", 242 "//base",
222 "//components/variations", 243 "//components/variations",
223 "//testing/gtest", 244 "//testing/gtest",
224 "//url", 245 "//url",
225 ] 246 ]
226 if (is_win) { 247 if (is_win) {
227 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 248 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
228 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 249 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
229 } 250 }
230 } 251 }
OLDNEW
« no previous file with comments | « components/safe_browsing_db.gypi ('k') | components/safe_browsing_db/v4_get_hash_protocol_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698