File: BUILD.gn

package info (click to toggle)
chromium 139.0.7258.127-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,122,156 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (189 lines) | stat: -rw-r--r-- 6,333 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# 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("//mojo/public/tools/bindings/mojom.gni")

source_set("indexed_db") {
  public = [ "indexed_db_control_wrapper.h" ]

  sources = [
    "blob_reader.cc",
    "blob_reader.h",
    "file_path_util.cc",
    "file_path_util.h",
    "file_stream_reader_to_data_pipe.cc",
    "file_stream_reader_to_data_pipe.h",
    "indexed_db_context_impl.cc",
    "indexed_db_context_impl.h",
    "indexed_db_control_wrapper.cc",
    "indexed_db_data_format_version.cc",
    "indexed_db_data_format_version.h",
    "indexed_db_data_loss_info.h",
    "indexed_db_database_error.cc",
    "indexed_db_database_error.h",
    "indexed_db_external_object.cc",
    "indexed_db_external_object.h",
    "indexed_db_external_object_storage.cc",
    "indexed_db_external_object_storage.h",
    "indexed_db_leveldb_coding.cc",
    "indexed_db_leveldb_coding.h",
    "indexed_db_reporting.cc",
    "indexed_db_reporting.h",
    "indexed_db_value.cc",
    "indexed_db_value.h",
    "instance/active_blob_registry.cc",
    "instance/active_blob_registry.h",
    "instance/backing_store.h",
    "instance/backing_store_pre_close_task_queue.cc",
    "instance/backing_store_pre_close_task_queue.h",
    "instance/bucket_context.cc",
    "instance/bucket_context.h",
    "instance/bucket_context_handle.cc",
    "instance/bucket_context_handle.h",
    "instance/callback_helpers.h",
    "instance/connection.cc",
    "instance/connection.h",
    "instance/connection_coordinator.cc",
    "instance/connection_coordinator.h",
    "instance/cursor.cc",
    "instance/cursor.h",
    "instance/database.cc",
    "instance/database.h",
    "instance/database_callbacks.cc",
    "instance/database_callbacks.h",
    "instance/factory_client.cc",
    "instance/factory_client.h",
    "instance/index_writer.cc",
    "instance/index_writer.h",
    "instance/leveldb/backing_store.cc",
    "instance/leveldb/backing_store.h",
    "instance/leveldb/cleanup_scheduler.cc",
    "instance/leveldb/cleanup_scheduler.h",
    "instance/leveldb/compaction_task.cc",
    "instance/leveldb/compaction_task.h",
    "instance/leveldb/indexed_db_leveldb_operations.cc",
    "instance/leveldb/indexed_db_leveldb_operations.h",
    "instance/leveldb/tombstone_sweeper.cc",
    "instance/leveldb/tombstone_sweeper.h",
    "instance/lock_request_data.cc",
    "instance/lock_request_data.h",
    "instance/pending_connection.cc",
    "instance/pending_connection.h",
    "instance/record.cc",
    "instance/record.h",
    "instance/sqlite/active_blob_streamer.cc",
    "instance/sqlite/active_blob_streamer.h",
    "instance/sqlite/backing_store_cursor_impl.cc",
    "instance/sqlite/backing_store_cursor_impl.h",
    "instance/sqlite/backing_store_database_impl.cc",
    "instance/sqlite/backing_store_database_impl.h",
    "instance/sqlite/backing_store_impl.cc",
    "instance/sqlite/backing_store_impl.h",
    "instance/sqlite/backing_store_transaction_impl.cc",
    "instance/sqlite/backing_store_transaction_impl.h",
    "instance/sqlite/blob_writer.cc",
    "instance/sqlite/blob_writer.h",
    "instance/sqlite/database_connection.cc",
    "instance/sqlite/database_connection.h",
    "instance/sqlite/record_iterator.cc",
    "instance/sqlite/record_iterator.h",
    "instance/transaction.cc",
    "instance/transaction.h",
    "list_set.h",
    "mock_browsertest_indexed_db_class_factory.cc",
    "mock_browsertest_indexed_db_class_factory.h",
    "status.cc",
    "status.h",
  ]

  deps = [
    "//base",
    "//components/services/storage",
    "//components/services/storage/public/cpp",
    "//components/services/storage/public/mojom",
    "//content:export",
    "//content/public/common:common_sources",
    "//net",
    "//storage/browser",
    "//third_party/blink/public/common",
    "//third_party/leveldatabase",
    "//third_party/zlib/google:zip",
    "//v8:v8_version",
  ]

  configs += [ "//content:content_implementation" ]

  friend = [
    ":unit_tests",
    "//content/test/*",
  ]
}

source_set("unit_tests") {
  testonly = true

  # See content_unittests for justification.
  if (is_component_build) {
    check_includes = false
  }

  sources = [
    "file_stream_reader_to_data_pipe_unittest.cc",
    "indexed_db_context_unittest.cc",
    "indexed_db_leveldb_coding_unittest.cc",
    "indexed_db_quota_client_unittest.cc",
    "indexed_db_unittest.cc",
    "instance/active_blob_registry_unittest.cc",
    "instance/backing_store_pre_close_task_queue_unittest.cc",
    "instance/bucket_context_unittest.cc",
    "instance/database_unittest.cc",
    "instance/fake_transaction.cc",
    "instance/fake_transaction.h",
    "instance/leveldb/backing_store_unittest.cc",
    "instance/leveldb/cleanup_on_io_error_unittest.cc",
    "instance/leveldb/cleanup_scheduler_unittest.cc",
    "instance/leveldb/tombstone_sweeper_unittest.cc",
    "instance/mock_factory_client.cc",
    "instance/mock_factory_client.h",
    "instance/transaction_unittest.cc",
    "list_set_unittest.cc",
    "mock_mojo_indexed_db_database_callbacks.cc",
    "mock_mojo_indexed_db_database_callbacks.h",
    "mock_mojo_indexed_db_factory_client.cc",
    "mock_mojo_indexed_db_factory_client.h",
  ]

  deps = [
    "//base",
    "//base/test:test_support",
    "//components/services/storage",
    "//components/services/storage:test_support",
    "//components/services/storage/privileged/mojom",
    "//components/services/storage/public/cpp",
    "//components/services/storage/public/mojom",
    "//content/public/common",

    # This dependency is here to satisfy `gn check` given this target's includes
    # of :indexed_db headers. This has to be done through //content/browser to
    # avoid doubling symbols.
    "//content/browser:for_content_tests",
    "//storage/browser",
    "//storage/browser:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/blink/public/common",
    "//third_party/leveldatabase",
  ]
}

mojom("internals_mojo_bindings") {
  sources = [ "indexed_db_internals.mojom" ]
  public_deps = [
    "//components/services/storage/privileged/mojom",
    "//components/services/storage/public/mojom",
    "//mojo/public/mojom/base",
  ]
  webui_module_path = "/"
  generate_java = false
}