| 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("safebrowsing_proto") { | 7 proto_library("safebrowsing_proto") { |
| 8 sources = [ | 8 sources = [ |
| 9 "safebrowsing.proto", | 9 "safebrowsing.proto", |
| 10 ] | 10 ] |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 "//base:base", | 111 "//base:base", |
| 112 "//components/variations", | 112 "//components/variations", |
| 113 "//content/public/browser", | 113 "//content/public/browser", |
| 114 "//net", | 114 "//net", |
| 115 "//url", | 115 "//url", |
| 116 ] | 116 ] |
| 117 } | 117 } |
| 118 | 118 |
| 119 source_set("safe_browsing_api_handler") { | 119 source_set("safe_browsing_api_handler") { |
| 120 sources = [ | 120 sources = [ |
| 121 "android/jni_registrar.cc", |
| 122 "android/jni_registrar.h", |
| 121 "safe_browsing_api_handler.cc", | 123 "safe_browsing_api_handler.cc", |
| 122 "safe_browsing_api_handler.h", | 124 "safe_browsing_api_handler.h", |
| 123 ] | 125 ] |
| 124 deps = [ | 126 deps = [ |
| 127 ":safe_browsing_api_handler_util", |
| 125 ":util", | 128 ":util", |
| 126 "//base", | 129 "//base", |
| 130 "//content/public/browser:browser", |
| 127 "//url", | 131 "//url", |
| 128 ] | 132 ] |
| 133 |
| 134 if (is_android) { |
| 135 deps += [ "//components/safe_browsing_db/android:jni_headers" ] |
| 136 sources += [ |
| 137 "android/safe_browsing_api_handler_bridge.cc", |
| 138 "android/safe_browsing_api_handler_bridge.h", |
| 139 ] |
| 140 } |
| 129 } | 141 } |
| 130 | 142 |
| 131 static_library("safe_browsing_api_handler_util") { | 143 static_library("safe_browsing_api_handler_util") { |
| 132 sources = [ | 144 sources = [ |
| 133 "safe_browsing_api_handler_util.cc", | 145 "safe_browsing_api_handler_util.cc", |
| 134 "safe_browsing_api_handler_util.h", | 146 "safe_browsing_api_handler_util.h", |
| 135 ] | 147 ] |
| 136 deps = [ | 148 deps = [ |
| 137 ":metadata_proto", | 149 ":metadata_proto", |
| 138 ":util", | 150 ":util", |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 "//base", | 465 "//base", |
| 454 "//components/variations", | 466 "//components/variations", |
| 455 "//testing/gtest", | 467 "//testing/gtest", |
| 456 "//url", | 468 "//url", |
| 457 ] | 469 ] |
| 458 if (is_win) { | 470 if (is_win) { |
| 459 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 471 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 460 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. | 472 cflags = [ "/wd4267" ] # Conversion from size_t to 'type'. |
| 461 } | 473 } |
| 462 } | 474 } |
| OLD | NEW |