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

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

Issue 1703413002: Move common PVer4 code into a V4ProtocolManagerUtil class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass config as pointer, instead of reference 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/database_manager.h » ('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 ]
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 sources = [ 74 sources = [
75 "prefix_set.cc", 75 "prefix_set.cc",
76 "prefix_set.h", 76 "prefix_set.h",
77 ] 77 ]
78 deps = [ 78 deps = [
79 ":util", 79 ":util",
80 "//base", 80 "//base",
81 ] 81 ]
82 } 82 }
83 83
84 source_set("v4_get_hash_protocol_manager") {
85 sources = [
86 "v4_get_hash_protocol_manager.cc",
87 "v4_get_hash_protocol_manager.h",
88 ]
89 public_deps = [
90 ":proto",
91 ]
92 deps = [
93 ":util",
94 "//base",
95 "//net",
96 "//url:url",
97 ]
98 }
99
100 source_set("remote_database_manager") { 84 source_set("remote_database_manager") {
101 sources = [ 85 sources = [
102 "remote_database_manager.cc", 86 "remote_database_manager.cc",
103 "remote_database_manager.h", 87 "remote_database_manager.h",
104 ] 88 ]
105 deps = [ 89 deps = [
106 ":database_manager", 90 ":database_manager",
107 ":safe_browsing_api_handler", 91 ":safe_browsing_api_handler",
108 ":v4_get_hash_protocol_manager", 92 ":v4_get_hash_protocol_manager",
109 "//base:base", 93 "//base:base",
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 sources = [ 141 sources = [
158 "test_database_manager.cc", 142 "test_database_manager.cc",
159 "test_database_manager.h", 143 "test_database_manager.h",
160 ] 144 ]
161 deps = [ 145 deps = [
162 ":database_manager", 146 ":database_manager",
163 "//base:base", 147 "//base:base",
164 ] 148 ]
165 } 149 }
166 150
151 source_set("v4_get_hash_protocol_manager") {
152 sources = [
153 "v4_get_hash_protocol_manager.cc",
154 "v4_get_hash_protocol_manager.h",
155 ]
156 public_deps = [
157 ":proto",
158 ]
159 deps = [
160 ":util",
161 ":v4_protocol_manager_util",
162 "//base",
163 "//net",
164 "//url:url",
165 ]
166 }
167
168 source_set("v4_protocol_manager_util") {
169 sources = [
170 "v4_protocol_manager_util.cc",
171 "v4_protocol_manager_util.h",
172 ]
173 deps = [
174 "//base",
175 "//net",
176 "//url:url",
177 ]
178 }
179
167 source_set("unit_tests") { 180 source_set("unit_tests") {
168 testonly = true 181 testonly = true
169 sources = [ 182 sources = [
170 "prefix_set_unittest.cc", 183 "prefix_set_unittest.cc",
171 "util_unittest.cc", 184 "util_unittest.cc",
172 "v4_get_hash_protocol_manager_unittest.cc", 185 "v4_get_hash_protocol_manager_unittest.cc",
186 "v4_protocol_manager_util_unittest.cc",
173 ] 187 ]
174 deps = [ 188 deps = [
175 ":prefix_set", 189 ":prefix_set",
176 ":proto", 190 ":proto",
177 ":util", 191 ":util",
178 ":v4_get_hash_protocol_manager", 192 ":v4_get_hash_protocol_manager",
193 ":v4_protocol_manager_util",
179 "//base", 194 "//base",
180 "//net", 195 "//net",
181 "//net:test_support", 196 "//net:test_support",
182 "//testing/gtest", 197 "//testing/gtest",
183 "//url", 198 "//url",
184 ] 199 ]
185 if (is_win) { 200 if (is_win) {
186 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 201 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
187 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 202 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
188 } 203 }
(...skipping 14 matching lines...) Expand all
203 "//base", 218 "//base",
204 "//components/variations", 219 "//components/variations",
205 "//testing/gtest", 220 "//testing/gtest",
206 "//url", 221 "//url",
207 ] 222 ]
208 if (is_win) { 223 if (is_win) {
209 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 224 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
210 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. 225 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'.
211 } 226 }
212 } 227 }
OLDNEW
« no previous file with comments | « components/safe_browsing_db.gypi ('k') | components/safe_browsing_db/database_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698