1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni")
8 # GYP version: extensions/extensions.gyp:extensions_browser
9 source_set("browser") {
14 "//components/keyed_service/content",
15 "//components/keyed_service/core",
16 "//components/pref_registry",
17 "//components/web_modal",
18 "//content/public/browser",
19 "//extensions/common",
20 "//extensions/common/api",
21 "//extensions/common/api:api_registration",
22 "//extensions/strings",
24 "//third_party/leveldatabase",
27 if (enable_extensions) {
28 # Includes all API implementations and the ExtensionsApiClient
29 # interface. Moving an API from src/chrome to src/extensions implies
30 # it can be cleanly disabled with enable_extensions=false.
31 # TODO: Eventually the entire extensions module should not be built
32 # when enable_extensions=false.
36 "api/api_resource.cc",
38 "api/api_resource_manager.h",
39 "api/app_runtime/app_runtime_api.cc",
40 "api/app_runtime/app_runtime_api.h",
41 "api/app_view/app_view_internal_api.cc",
42 "api/app_view/app_view_internal_api.h",
43 "api/async_api_function.cc",
44 "api/async_api_function.h",
45 "api/cast_channel/cast_auth_util.cc",
46 "api/cast_channel/cast_auth_util.h",
47 "api/cast_channel/cast_channel_api.cc",
48 "api/cast_channel/cast_channel_api.h",
49 "api/cast_channel/cast_message_util.cc",
50 "api/cast_channel/cast_message_util.h",
51 "api/cast_channel/cast_socket.cc",
52 "api/cast_channel/cast_socket.h",
53 "api/cast_channel/logger.cc",
54 "api/cast_channel/logger.h",
55 "api/cast_channel/logger_util.cc",
56 "api/cast_channel/logger_util.h",
59 "api/dns/host_resolver_wrapper.cc",
60 "api/dns/host_resolver_wrapper.h",
61 "api/extensions_api_client.cc",
62 "api/extensions_api_client.h",
65 "api/hid/hid_connection_resource.cc",
66 "api/hid/hid_connection_resource.h",
67 "api/hid/hid_device_manager.cc",
68 "api/hid/hid_device_manager.h",
69 "api/power/power_api.cc",
70 "api/power/power_api.h",
71 "api/power/power_api_manager.cc",
72 "api/power/power_api_manager.h",
73 "api/runtime/runtime_api.cc",
74 "api/runtime/runtime_api.h",
75 "api/runtime/runtime_api_delegate.cc",
76 "api/runtime/runtime_api_delegate.h",
77 "api/serial/serial_api.cc",
78 "api/serial/serial_api.h",
79 "api/serial/serial_connection.cc",
80 "api/serial/serial_connection.h",
81 "api/serial/serial_event_dispatcher.cc",
82 "api/serial/serial_event_dispatcher.h",
83 "api/socket/socket.cc",
84 "api/socket/socket.h",
85 "api/socket/socket_api.cc",
86 "api/socket/socket_api.h",
87 "api/socket/tcp_socket.cc",
88 "api/socket/tcp_socket.h",
89 "api/socket/tls_socket.cc",
90 "api/socket/tls_socket.h",
91 "api/socket/udp_socket.cc",
92 "api/socket/udp_socket.h",
93 "api/sockets_tcp/sockets_tcp_api.cc",
94 "api/sockets_tcp/sockets_tcp_api.h",
95 "api/sockets_tcp/tcp_socket_event_dispatcher.cc",
96 "api/sockets_tcp/tcp_socket_event_dispatcher.h",
97 "api/sockets_tcp_server/sockets_tcp_server_api.cc",
98 "api/sockets_tcp_server/sockets_tcp_server_api.h",
99 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc",
100 "api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h",
101 "api/sockets_udp/sockets_udp_api.cc",
102 "api/sockets_udp/sockets_udp_api.h",
103 "api/sockets_udp/udp_socket_event_dispatcher.cc",
104 "api/sockets_udp/udp_socket_event_dispatcher.h",
105 "api/storage/leveldb_settings_storage_factory.cc",
106 "api/storage/leveldb_settings_storage_factory.h",
107 "api/storage/local_value_store_cache.cc",
108 "api/storage/local_value_store_cache.h",
109 "api/storage/settings_namespace.cc",
110 "api/storage/settings_namespace.h",
111 "api/storage/settings_observer.h",
112 "api/storage/settings_storage_factory.h",
113 "api/storage/settings_storage_quota_enforcer.cc",
114 "api/storage/settings_storage_quota_enforcer.h",
115 "api/storage/storage_api.cc",
116 "api/storage/storage_api.h",
117 "api/storage/storage_frontend.cc",
118 "api/storage/storage_frontend.h",
119 "api/storage/value_store_cache.cc",
120 "api/storage/value_store_cache.h",
121 "api/storage/weak_unlimited_settings_storage.cc",
122 "api/storage/weak_unlimited_settings_storage.h",
123 "api/test/test_api.cc",
124 "api/test/test_api.h",
125 "api/usb/usb_api.cc",
127 "api/usb/usb_device_resource.cc",
128 "api/usb/usb_device_resource.h",
129 "api/usb_private/usb_private_api.cc",
130 "api/usb_private/usb_private_api.h",
131 "api_activity_monitor.h",
133 "app_window/app_delegate.h",
134 "app_window/app_web_contents_helper.cc",
135 "app_window/app_web_contents_helper.h",
136 "app_window/app_window_geometry_cache.cc",
137 "app_window/app_window_geometry_cache.h",
138 "app_window/native_app_window.h",
139 "app_window/size_constraints.cc",
140 "app_window/size_constraints.h",
144 "browser_context_keyed_api_factory.h",
145 "browser_context_keyed_service_factories.cc",
146 "browser_context_keyed_service_factories.h",
147 "component_extension_resource_manager.h",
148 "computed_hashes.cc",
150 "content_hash_fetcher.cc",
151 "content_hash_fetcher.h",
152 "content_hash_reader.cc",
153 "content_hash_reader.h",
154 "content_hash_tree.cc",
155 "content_hash_tree.h",
156 "content_verifier.cc",
157 "content_verifier.h",
158 "content_verifier_delegate.h",
159 "content_verifier_io_data.cc",
160 "content_verifier_io_data.h",
161 "content_verify_job.cc",
162 "content_verify_job.h",
165 "event_listener_map.cc",
166 "event_listener_map.h",
169 "extension_error.cc",
171 "extension_function.cc",
172 "extension_function.h",
173 "extension_function_dispatcher.cc",
174 "extension_function_dispatcher.h",
175 "extension_function_registry.cc",
176 "extension_function_registry.h",
177 "extension_function_util.cc",
178 "extension_function_util.h",
181 "extension_host_delegate.h",
182 "extension_icon_image.cc",
183 "extension_icon_image.h",
184 "extension_message_filter.cc",
185 "extension_message_filter.h",
186 "extension_pref_store.cc",
187 "extension_pref_store.h",
188 "extension_pref_value_map.cc",
189 "extension_pref_value_map.h",
190 "extension_pref_value_map_factory.cc",
191 "extension_pref_value_map_factory.h",
192 "extension_prefs.cc",
194 "extension_prefs_factory.cc",
195 "extension_prefs_factory.h",
196 "extension_prefs_observer.h",
197 "extension_prefs_scope.h",
198 "extension_protocols.cc",
199 "extension_protocols.h",
200 "extension_registry.cc",
201 "extension_registry.h",
202 "extension_registry_factory.cc",
203 "extension_registry_factory.h",
204 "extension_registry_observer.h",
205 "extension_scoped_prefs.h",
206 "extension_system.cc",
207 "extension_system.h",
208 "extension_system_provider.cc",
209 "extension_system_provider.h",
212 "extension_web_contents_observer.cc",
213 "extension_web_contents_observer.h",
214 "extensions_browser_client.cc",
215 "extensions_browser_client.h",
216 "external_provider_interface.h",
217 "file_highlighter.cc",
218 "file_highlighter.h",
221 "granted_file_entry.cc",
222 "granted_file_entry.h",
223 "guest_view/app_view/app_view_constants.cc",
224 "guest_view/app_view/app_view_constants.h",
225 "guest_view/app_view/app_view_guest.cc",
226 "guest_view/app_view/app_view_guest.h",
227 "guest_view/app_view/app_view_guest_delegate.cc",
228 "guest_view/app_view/app_view_guest_delegate.h",
229 "guest_view/guest_view_base.cc",
230 "guest_view/guest_view_base.h",
231 "guest_view/guest_view_constants.cc",
232 "guest_view/guest_view_constants.h",
233 "guest_view/guest_view_manager_factory.h",
234 "guest_view/guest_view_manager.cc",
235 "guest_view/guest_view_manager.h",
236 "guest_view/guest_view.h",
237 "guest_view/web_view/web_view_guest_delegate.cc",
238 "guest_view/web_view/web_view_guest_delegate.h",
239 "guest_view/web_view/web_view_permission_helper_delegate.cc",
240 "guest_view/web_view/web_view_permission_helper_delegate.h",
243 "image_loader_factory.cc",
244 "image_loader_factory.h",
250 "lazy_background_task_queue.cc",
251 "lazy_background_task_queue.h",
252 "management_policy.cc",
253 "management_policy.h",
256 "process_manager.cc",
258 "process_manager_delegate.h",
259 "process_manager_observer.h",
262 "process_map_factory.cc",
263 "process_map_factory.h",
266 "renderer_startup_helper.cc",
267 "renderer_startup_helper.h",
270 "script_execution_observer.h",
271 "script_executor.cc",
275 "suggest_permission_util.cc",
276 "suggest_permission_util.h",
277 "uninstall_reason.h",
279 "value_store/leveldb_value_store.cc",
280 "value_store/leveldb_value_store.h",
281 "value_store/testing_value_store.cc",
282 "value_store/testing_value_store.h",
283 "value_store/value_store.cc",
284 "value_store/value_store.h",
285 "value_store/value_store_change.cc",
286 "value_store/value_store_change.h",
287 "value_store/value_store_frontend.cc",
288 "value_store/value_store_frontend.h",
289 "value_store/value_store_util.cc",
290 "value_store/value_store_util.h",
291 "verified_contents.cc",
292 "verified_contents.h",
293 "view_type_utils.cc",
298 "//components/usb_service",
302 "//extensions/browser/api/cast_channel:cast_channel_proto",
307 "api/cast_channel/cast_auth_util_openssl.cc",
311 "api/cast_channel/cast_auth_util_nss.cc",
318 "/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.