# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//testing/test.gni")
import("//third_party/protobuf/proto_library.gni")
source_set("persisted_state_db") {
sources = [
"session_proto_db_factory.cc",
"session_proto_db_factory.h",
]
if (is_android) {
sources += [
"persisted_state_db.cc",
"persisted_state_db.h",
]
}
deps = [
"//base:base",
"//chrome/browser/profiles:profile",
"//components/commerce/core:commerce_subscription_db_content_proto",
"//components/commerce/core:parcel_tracking_db_content_proto",
"//components/commerce/core:persisted_state_db_content_proto",
"//components/keyed_service/content",
"//components/leveldb_proto",
"//components/session_proto_db:session_proto_db",
"//content/public/browser:browser",
"//third_party/leveldatabase",
]
if (is_android) {
deps += [
"//chrome/browser/tab:jni_headers",
"//components/commerce/core:merchant_signal_db_proto",
]
} else {
deps += [
"//components/commerce/core:cart_db_content_proto",
"//components/commerce/core:coupon_db_content_proto",
"//components/commerce/core:discounts_db_content_proto",
]
}
}