chromium/extensions/browser/api/storage/BUILD.gn

# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//extensions/buildflags/buildflags.gni")

assert(enable_extensions_core)

source_set("settings_observer") {
  sources = [ "settings_observer.h" ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  public_deps = [
    "//base",
    "//extensions/common/api",
  ]
}

source_set("settings_namespace") {
  sources = [
    "settings_namespace.cc",
    "settings_namespace.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  public_deps = [ "//base" ]
}

source_set("storage") {
  sources = [
    "backend_task_runner.cc",
    "backend_task_runner.h",
    "local_value_store_cache.cc",
    "local_value_store_cache.h",
    "session_storage_manager.cc",
    "session_storage_manager.h",
    "settings_storage_quota_enforcer.cc",
    "settings_storage_quota_enforcer.h",
    "storage_api.cc",
    "storage_api.h",
    "storage_area_namespace.cc",
    "storage_area_namespace.h",
    "storage_frontend.cc",
    "storage_frontend.h",
    "storage_utils.cc",
    "storage_utils.h",
    "value_store_cache.cc",
    "value_store_cache.h",
    "value_store_util.cc",
    "value_store_util.h",
    "weak_unlimited_settings_storage.cc",
    "weak_unlimited_settings_storage.h",
  ]

  configs += [ "//build/config/compiler:wexit_time_destructors" ]

  deps = [
    ":settings_namespace",
    ":settings_observer",
    "//base",
    "//components/keyed_service/content",
    "//components/value_store",
    "//content/public/browser",
    "//extensions/browser:browser_sources",
    "//extensions/common",
    "//extensions/common/api",
  ]
}