File: api_sources.gni

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 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 (185 lines) | stat: -rw-r--r-- 5,116 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
# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/config/features.gni")
import("//chrome/common/features.gni")
import("//pdf/features.gni")

assert(enable_extensions_core)

# APIs and features included in both normal desktop builds and the experimental
# desktop-android build.
# TODO(https://crbug.com/356905053): Continue moving more here.
schema_sources_ = [
  "activity_log_private.json",
  "bookmarks.json",
  "cookies.json",
  "context_menus.json",
  "developer_private.idl",
  "enterprise_hardware_platform.idl",
  "font_settings.json",
  "gcm.json",
  "history.json",
  "identity.idl",
  "instance_id.json",
  "notifications.idl",
  "permissions.json",
  "processes.idl",
  "reading_list.idl",
  "scripting.idl",
  "tabs.json",

  # Despite the name, these APIs do not rely on any WebRTC-specific bits and
  # as such do not belong in a conditional.
  "webrtc_logging_private.idl",
  "webstore_private.json",
  "windows.json",
]

# Schemas that should be used only to auto-generate the C++ types.
# In many cases, this includes schemas used to generate types used in manifest
# parsing.
uncompiled_sources_ = [
  "action.json",
  "browsing_data.json",
  "extension.json",
  "top_sites.json",
]

# Some APIs (e.g. cookies) rely on types and headers from other APIs.
types_only_schema_sources_ = []

if (enable_extensions) {
  schema_sources_ += [
    "accessibility_features.json",
    "experimental_actor.idl",
    "experimental_ai_data.idl",
    "autofill_private.idl",
    "autotest_private.idl",
    "bookmark_manager_private.json",
    "braille_display_private.idl",
    "chrome_web_view_internal.json",
    "command_line_private.json",
    "content_settings.json",
    "debugger.json",
    "desktop_capture.json",
    "crash_report_private.idl",
    "downloads.idl",
    "downloads_internal.idl",
    "enterprise_reporting_private.idl",
    "image_writer_private.idl",
    "language_settings_private.idl",
    "omnibox.json",
    "page_capture.json",
    "passwords_private.idl",
    "resources_private.idl",
    "safe_browsing_private.idl",
    "search.idl",
    "sessions.json",
    "settings_private.idl",
    "side_panel.idl",
    "system_private.json",
    "tab_capture.idl",
    "tab_groups.json",
    "web_authentication_proxy.idl",
    "web_navigation.json",

    # Despite the name, these APIs do not rely on any WebRTC-specific bits and
    # as such do not belong in a conditional.
    "webrtc_audio_private.idl",
    "webrtc_desktop_capture_private.idl",
  ]

  if (is_chromeos) {
    schema_sources_ += [
      "accessibility_private.json",
      "accessibility_service_private.idl",
      "certificate_provider.idl",
      "certificate_provider_internal.idl",
      "document_scan.idl",
      "echo_private.json",
      "enterprise_device_attributes.idl",
      "enterprise_kiosk_input.idl",
      "enterprise_login.idl",
      "enterprise_networking_attributes.idl",
      "enterprise_platform_keys.idl",
      "enterprise_platform_keys_internal.idl",
      "enterprise_platform_keys_private.json",
      "file_manager_private.idl",
      "file_manager_private_internal.idl",
      "file_system_provider.idl",
      "file_system_provider_internal.idl",
      "image_loader_private.idl",
      "input_method_private.json",
      "login.idl",
      "login_screen_storage.idl",
      "login_screen_ui.idl",
      "login_state.idl",
      "odfs_config_private.idl",
      "platform_keys.idl",
      "platform_keys_internal.idl",
      "quick_unlock_private.idl",
      "smart_card_provider_private.idl",
      "speech_recognition_private.idl",
      "system_log.idl",
      "terminal_private.json",
      "users_private.idl",
      "vpn_provider.idl",
      "wallpaper.json",
      "wm_desks_private.idl",
    ]

    if (use_cups) {
      schema_sources_ += [
        "printing.idl",
        "printing_metrics.idl",
      ]
    }
  }

  if (is_linux || is_win || is_chromeos) {
    schema_sources_ += [ "input_ime.json" ]
  }

  if (enable_service_discovery) {
    schema_sources_ += [ "mdns.idl" ]
  }

  if (enable_pdf) {
    schema_sources_ += [ "pdf_viewer_private.idl" ]
  }

  uncompiled_sources_ += [
    "browser_action.json",
    "idltest.idl",
    "page_action.json",
  ]

  if (is_chromeos) {
    uncompiled_sources_ += [
      "chromeos_info_private.json",
      "media_player_private.json",
    ]
  }
}

chrome_extensions_api_schema_sources = get_path_info(schema_sources_, "abspath")

chrome_extensions_types_only_schema_sources =
    get_path_info(types_only_schema_sources_, "abspath")

chrome_extensions_manifest_only_schema_sources =
    get_path_info([
                    "manifest_types.json",
                    "chrome_url_overrides.idl",
                  ],
                  "abspath")

chrome_extensions_api_uncompiled_sources =
    get_path_info(uncompiled_sources_, "abspath")

chrome_extensions_api_root_namespace = "extensions::api::%(namespace)s"

chrome_extensions_api_schema_include_rules =
    "extensions/common/api:extensions::api::%(namespace)s"