blob: c909b192afb7a6ede1a6d986a7532ff6a81a498d [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/protobuf/proto_library.gni")
if (is_android) {
import("//build/config/android/config.gni")
}
static_library("browser") {
sources = [
"affiliated_match_helper.cc",
"affiliated_match_helper.h",
"affiliation_backend.cc",
"affiliation_backend.h",
"affiliation_database.cc",
"affiliation_database.h",
"affiliation_fetch_throttler.cc",
"affiliation_fetch_throttler.h",
"affiliation_fetch_throttler_delegate.h",
"affiliation_fetcher.cc",
"affiliation_fetcher.h",
"affiliation_fetcher_delegate.h",
"affiliation_service.cc",
"affiliation_service.h",
"affiliation_utils.cc",
"affiliation_utils.h",
"browser_save_password_progress_logger.cc",
"browser_save_password_progress_logger.h",
"credential_manager_password_form_manager.cc",
"credential_manager_password_form_manager.h",
"credential_manager_pending_request_task.cc",
"credential_manager_pending_request_task.h",
"credential_manager_pending_require_user_mediation_task.cc",
"credential_manager_pending_require_user_mediation_task.h",
"export/csv_writer.cc",
"export/csv_writer.h",
"facet_manager.cc",
"facet_manager.h",
"facet_manager_host.h",
"import/csv_reader.cc",
"import/csv_reader.h",
"keychain_migration_status_mac.h",
"log_receiver.h",
"log_router.cc",
"log_router.h",
"login_database.cc",
"login_database.h",
"login_database_mac.cc",
"login_database_posix.cc",
"login_database_win.cc",
"login_model.h",
"password_autofill_manager.cc",
"password_autofill_manager.h",
"password_bubble_experiment.cc",
"password_bubble_experiment.h",
"password_form_manager.cc",
"password_form_manager.h",
"password_generation_manager.cc",
"password_generation_manager.h",
"password_manager.cc",
"password_manager.h",
"password_manager_client.cc",
"password_manager_client.h",
"password_manager_driver.h",
"password_manager_internals_service.cc",
"password_manager_internals_service.h",
"password_manager_metrics_util.cc",
"password_manager_metrics_util.h",
"password_manager_util.cc",
"password_manager_util.h",
"password_store.cc",
"password_store.h",
"password_store_change.h",
"password_store_consumer.cc",
"password_store_consumer.h",
"password_store_default.cc",
"password_store_default.h",
"password_store_sync.cc",
"password_store_sync.h",
"password_syncable_service.cc",
"password_syncable_service.h",
"psl_matching_helper.cc",
"psl_matching_helper.h",
"statistics_table.cc",
"statistics_table.h",
"test_affiliation_fetcher_factory.h",
"webdata/logins_table.cc",
"webdata/logins_table.h",
"webdata/logins_table_win.cc",
"webdata/password_web_data_service_win.cc",
"webdata/password_web_data_service_win.h",
]
deps = [
":proto",
"//base",
"//components/autofill/core/common",
"//components/keyed_service/core",
"//components/os_crypt",
"//components/password_manager/core/common",
"//components/strings",
"//net",
"//sql",
"//sync",
"//third_party/protobuf:protobuf_lite",
"//third_party/re2",
"//url",
]
if (is_mac) {
# TODO(blundell): Provide the iOS login DB implementation and then
# also exclude the POSIX one from iOS. http://crbug.com/341429
sources -= [ "login_database_posix.cc" ]
}
# TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
}
proto_library("proto") {
sources = [
"affiliation_api.proto",
]
}
source_set("test_support") {
testonly = true
sources = [
"fake_affiliation_api.cc",
"fake_affiliation_api.h",
"fake_affiliation_fetcher.cc",
"fake_affiliation_fetcher.h",
"mock_affiliation_consumer.cc",
"mock_affiliation_consumer.h",
"mock_password_store.cc",
"mock_password_store.h",
"password_manager_test_utils.cc",
"password_manager_test_utils.h",
"stub_password_manager_client.cc",
"stub_password_manager_client.h",
"stub_password_manager_driver.cc",
"stub_password_manager_driver.h",
"test_password_store.cc",
"test_password_store.h",
]
public_deps = [
":browser",
]
deps = [
"//base",
"//components/autofill/core/common",
"//testing/gmock",
"//testing/gtest",
]
}