1 # Copyright 2013 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.
11 # GN version: //extensions/common
12 'target_name': 'extensions_common',
13 'type': 'static_library',
15 # TODO(benwells): figure out what to do with the api target and
16 # api resources compiled into the chrome resource bundle.
17 # http://crbug.com/162530
18 '../chrome/chrome_resources.gyp:chrome_resources',
19 '../components/components.gyp:crx_file',
20 '../components/components.gyp:url_matcher',
21 '../content/content.gyp:content_common',
22 '../crypto/crypto.gyp:crypto',
25 '../third_party/re2/re2.gyp:re2',
26 '../ui/base/ui_base.gyp:ui_base',
27 '../ui/gfx/gfx.gyp:gfx_geometry',
28 '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
29 '../url/url.gyp:url_lib',
30 '../third_party/libxml/libxml.gyp:libxml',
31 'common/api/api.gyp:extensions_api',
32 'extensions_strings.gyp:extensions_strings',
36 '<(INTERMEDIATE_DIR)',
39 # Note: sources list duplicated in GN build.
40 'common/api/bluetooth/bluetooth_manifest_data.cc',
41 'common/api/bluetooth/bluetooth_manifest_data.h',
42 'common/api/bluetooth/bluetooth_manifest_handler.cc',
43 'common/api/bluetooth/bluetooth_manifest_handler.h',
44 'common/api/bluetooth/bluetooth_manifest_permission.cc',
45 'common/api/bluetooth/bluetooth_manifest_permission.h',
46 'common/api/messaging/message.h',
47 'common/api/sockets/sockets_manifest_data.cc',
48 'common/api/sockets/sockets_manifest_data.h',
49 'common/api/sockets/sockets_manifest_handler.cc',
50 'common/api/sockets/sockets_manifest_handler.h',
51 'common/api/sockets/sockets_manifest_permission.cc',
52 'common/api/sockets/sockets_manifest_permission.h',
53 'common/common_manifest_handlers.cc',
54 'common/common_manifest_handlers.h',
55 'common/constants.cc',
57 'common/csp_validator.cc',
58 'common/csp_validator.h',
59 'common/dom_action_types.h',
60 'common/draggable_region.cc',
61 'common/draggable_region.h',
62 'common/error_utils.cc',
63 'common/error_utils.h',
64 'common/event_filter.cc',
65 'common/event_filter.h',
66 'common/event_filtering_info.cc',
67 'common/event_filtering_info.h',
68 'common/event_matcher.cc',
69 'common/event_matcher.h',
70 'common/extension.cc',
72 'common/extension_api.cc',
73 'common/extension_api.h',
74 'common/extension_api_stub.cc',
75 'common/extension_icon_set.cc',
76 'common/extension_icon_set.h',
77 'common/extension_l10n_util.cc',
78 'common/extension_l10n_util.h',
79 'common/extension_message_generator.cc',
80 'common/extension_message_generator.h',
81 'common/extension_messages.cc',
82 'common/extension_messages.h',
83 'common/extension_paths.cc',
84 'common/extension_paths.h',
85 'common/extension_resource.cc',
86 'common/extension_resource.h',
87 'common/extension_set.cc',
88 'common/extension_set.h',
89 'common/extension_urls.cc',
90 'common/extension_urls.h',
91 'common/extensions_client.cc',
92 'common/extensions_client.h',
93 'common/feature_switch.cc',
94 'common/feature_switch.h',
95 'common/features/api_feature.cc',
96 'common/features/api_feature.h',
97 'common/features/base_feature_provider.cc',
98 'common/features/base_feature_provider.h',
99 'common/features/complex_feature.cc',
100 'common/features/complex_feature.h',
101 'common/features/feature.cc',
102 'common/features/feature.h',
103 'common/features/feature_provider.cc',
104 'common/features/feature_provider.h',
105 'common/features/json_feature_provider_source.cc',
106 'common/features/json_feature_provider_source.h',
107 'common/features/manifest_feature.cc',
108 'common/features/manifest_feature.h',
109 'common/features/permission_feature.cc',
110 'common/features/permission_feature.h',
111 'common/features/simple_feature.cc',
112 'common/features/simple_feature.h',
113 'common/features/simple_feature_filter.cc',
114 'common/features/simple_feature_filter.h',
115 'common/file_util.cc',
116 'common/file_util.h',
117 'common/guest_view/guest_view_constants.cc',
118 'common/guest_view/guest_view_constants.h',
119 'common/install_warning.cc',
120 'common/install_warning.h',
121 'common/manifest.cc',
123 'common/manifest_constants.cc',
124 'common/manifest_constants.h',
125 'common/manifest_handler.cc',
126 'common/manifest_handler.h',
127 'common/manifest_handler_helpers.cc',
128 'common/manifest_handler_helpers.h',
129 'common/manifest_handlers/background_info.cc',
130 'common/manifest_handlers/background_info.h',
131 'common/manifest_handlers/csp_info.cc',
132 'common/manifest_handlers/csp_info.h',
133 'common/manifest_handlers/externally_connectable.cc',
134 'common/manifest_handlers/externally_connectable.h',
135 'common/manifest_handlers/file_handler_info.cc',
136 'common/manifest_handlers/file_handler_info.h',
137 'common/manifest_handlers/icons_handler.cc',
138 'common/manifest_handlers/icons_handler.h',
139 'common/manifest_handlers/incognito_info.cc',
140 'common/manifest_handlers/incognito_info.h',
141 'common/manifest_handlers/kiosk_mode_info.cc',
142 'common/manifest_handlers/kiosk_mode_info.h',
143 'common/manifest_handlers/launcher_page_info.cc',
144 'common/manifest_handlers/launcher_page_info.h',
145 'common/manifest_handlers/offline_enabled_info.cc',
146 'common/manifest_handlers/offline_enabled_info.h',
147 'common/manifest_handlers/options_page_info.cc',
148 'common/manifest_handlers/options_page_info.h',
149 'common/manifest_handlers/permissions_parser.cc',
150 'common/manifest_handlers/permissions_parser.h',
151 'common/manifest_handlers/requirements_info.cc',
152 'common/manifest_handlers/requirements_info.h',
153 'common/manifest_handlers/sandboxed_page_info.cc',
154 'common/manifest_handlers/sandboxed_page_info.h',
155 'common/manifest_handlers/shared_module_info.cc',
156 'common/manifest_handlers/shared_module_info.h',
157 'common/manifest_handlers/web_accessible_resources_info.cc',
158 'common/manifest_handlers/web_accessible_resources_info.h',
159 'common/manifest_handlers/webview_info.cc',
160 'common/manifest_handlers/webview_info.h',
161 'common/message_bundle.cc',
162 'common/message_bundle.h',
163 'common/one_shot_event.cc',
164 'common/one_shot_event.h',
165 'common/permissions/api_permission.cc',
166 'common/permissions/api_permission.h',
167 'common/permissions/api_permission_set.cc',
168 'common/permissions/api_permission_set.h',
169 'common/permissions/base_set_operators.h',
170 'common/permissions/extensions_api_permissions.cc',
171 'common/permissions/extensions_api_permissions.h',
172 'common/permissions/manifest_permission.cc',
173 'common/permissions/manifest_permission.h',
174 'common/permissions/manifest_permission_set.cc',
175 'common/permissions/manifest_permission_set.h',
176 'common/permissions/media_galleries_permission.cc',
177 'common/permissions/media_galleries_permission.h',
178 'common/permissions/media_galleries_permission_data.cc',
179 'common/permissions/media_galleries_permission_data.h',
180 'common/permissions/permission_message.cc',
181 'common/permissions/permission_message.h',
182 'common/permissions/permission_message_provider.cc',
183 'common/permissions/permission_message_provider.h',
184 'common/permissions/permission_message_util.cc',
185 'common/permissions/permission_message_util.h',
186 'common/permissions/permission_set.cc',
187 'common/permissions/permission_set.h',
188 'common/permissions/permissions_data.cc',
189 'common/permissions/permissions_data.h',
190 'common/permissions/permissions_info.cc',
191 'common/permissions/permissions_info.h',
192 'common/permissions/permissions_provider.h',
193 'common/permissions/set_disjunction_permission.h',
194 'common/permissions/settings_override_permission.cc',
195 'common/permissions/settings_override_permission.h',
196 'common/permissions/socket_permission.cc',
197 'common/permissions/socket_permission.h',
198 'common/permissions/socket_permission_data.cc',
199 'common/permissions/socket_permission_data.h',
200 'common/permissions/socket_permission_entry.cc',
201 'common/permissions/socket_permission_entry.h',
202 'common/permissions/usb_device_permission.cc',
203 'common/permissions/usb_device_permission.h',
204 'common/permissions/usb_device_permission_data.cc',
205 'common/permissions/usb_device_permission_data.h',
206 'common/stack_frame.cc',
207 'common/stack_frame.h',
208 'common/switches.cc',
210 'common/update_manifest.cc',
211 'common/update_manifest.h',
212 'common/url_pattern.cc',
213 'common/url_pattern.h',
214 'common/url_pattern_set.cc',
215 'common/url_pattern_set.h',
216 'common/user_script.cc',
217 'common/user_script.h',
218 'common/value_counter.cc',
219 'common/value_counter.h',
220 'common/view_type.cc',
221 'common/view_type.h',
223 # Disable c4267 warnings until we fix size_t to int truncations.
224 'msvs_disabled_warnings': [ 4267, ],
226 ['enable_extensions==1', {
228 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
229 # For Mojo generated headers for generated_api.cc.
230 '../device/serial/serial.gyp:device_serial_mojo',
231 '../device/usb/usb.gyp:device_usb',
234 'common/extension_api_stub.cc',
236 }, { # enable_extensions == 0
238 'common/api/bluetooth/bluetooth_manifest_data.cc',
239 'common/api/bluetooth/bluetooth_manifest_data.h',
240 'common/api/bluetooth/bluetooth_manifest_handler.cc',
241 'common/api/bluetooth/bluetooth_manifest_handler.h',
242 'common/api/bluetooth/bluetooth_manifest_permission.cc',
243 'common/api/bluetooth/bluetooth_manifest_permission.h',
244 'common/api/messaging/message.h',
245 'common/api/sockets/sockets_manifest_data.cc',
246 'common/api/sockets/sockets_manifest_data.h',
247 'common/api/sockets/sockets_manifest_handler.cc',
248 'common/api/sockets/sockets_manifest_handler.h',
249 'common/api/sockets/sockets_manifest_permission.cc',
250 'common/api/sockets/sockets_manifest_permission.h',
251 'common/extension_api.cc',
252 'common/manifest_handlers/externally_connectable.cc',
253 'common/manifest_handlers/externally_connectable.h',
254 'common/manifest_handlers/options_page_info.cc',
255 'common/manifest_handlers/options_page_info.h',
258 ['disable_nacl==0', {
259 # NaClModulesHandler does not use any code in NaCl, so no dependency
262 'common/manifest_handlers/nacl_modules_handler.cc',
263 'common/manifest_handlers/nacl_modules_handler.h',
269 # GN version: //extensions/browser
270 'target_name': 'extensions_browser',
271 'type': 'static_library',
273 '../base/base.gyp:base',
274 '../base/base.gyp:base_prefs',
275 '../components/components.gyp:keyed_service_content',
276 '../components/components.gyp:keyed_service_core',
277 '../components/components.gyp:pref_registry',
278 '../components/components.gyp:sessions',
279 '../components/components.gyp:storage_monitor',
280 '../components/components.gyp:web_modal',
281 '../content/content.gyp:content_browser',
282 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
283 '../device/serial/serial.gyp:device_serial',
284 '../skia/skia.gyp:skia',
285 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
286 'browser/api/api_registration.gyp:extensions_api_registration',
287 'cast_channel_proto',
288 'common/api/api.gyp:extensions_api',
290 'extensions_strings.gyp:extensions_strings',
294 '<(INTERMEDIATE_DIR)',
295 # Needed to access generated API headers.
296 '<(SHARED_INTERMEDIATE_DIR)',
298 '<(SHARED_INTERMEDIATE_DIR)/chrome',
301 # Note: sources list duplicated in GN build.
302 # NOTE: When moving an API out of Chrome be sure to verify that the
303 # Android build still compiles. See conditions below.
304 'browser/api/api_resource.cc',
305 'browser/api/api_resource.h',
306 'browser/api/api_resource_manager.h',
307 'browser/api/app_current_window_internal/app_current_window_internal_api.cc',
308 'browser/api/app_current_window_internal/app_current_window_internal_api.h',
309 'browser/api/app_runtime/app_runtime_api.cc',
310 'browser/api/app_runtime/app_runtime_api.h',
311 'browser/api/app_view/app_view_internal_api.cc',
312 'browser/api/app_view/app_view_internal_api.h',
313 'browser/api/app_window/app_window_api.cc',
314 'browser/api/app_window/app_window_api.h',
315 'browser/api/guest_view/guest_view_internal_api.cc',
316 'browser/api/guest_view/guest_view_internal_api.h',
317 'browser/api/async_api_function.cc',
318 'browser/api/async_api_function.h',
319 'browser/api/bluetooth/bluetooth_api.cc',
320 'browser/api/bluetooth/bluetooth_api.h',
321 'browser/api/bluetooth/bluetooth_api_pairing_delegate.cc',
322 'browser/api/bluetooth/bluetooth_api_pairing_delegate.h',
323 'browser/api/bluetooth/bluetooth_api_utils.cc',
324 'browser/api/bluetooth/bluetooth_api_utils.h',
325 'browser/api/bluetooth/bluetooth_event_router.cc',
326 'browser/api/bluetooth/bluetooth_event_router.h',
327 'browser/api/bluetooth/bluetooth_extension_function.cc',
328 'browser/api/bluetooth/bluetooth_extension_function.h',
329 'browser/api/bluetooth/bluetooth_private_api.cc',
330 'browser/api/bluetooth/bluetooth_private_api.h',
331 'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.cc',
332 'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h',
333 'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc',
334 'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.h',
335 'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc',
336 'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h',
337 'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc',
338 'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h',
339 'browser/api/bluetooth_low_energy/utils.cc',
340 'browser/api/bluetooth_low_energy/utils.h',
341 'browser/api/bluetooth_socket/bluetooth_api_socket.cc',
342 'browser/api/bluetooth_socket/bluetooth_api_socket.h',
343 'browser/api/bluetooth_socket/bluetooth_socket_api.cc',
344 'browser/api/bluetooth_socket/bluetooth_socket_api.h',
345 'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc',
346 'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h',
347 'browser/api/capture_web_contents_function.cc',
348 'browser/api/capture_web_contents_function.h',
349 'browser/api/cast_channel/cast_auth_util.cc',
350 'browser/api/cast_channel/cast_auth_util.h',
351 'browser/api/cast_channel/cast_channel_api.cc',
352 'browser/api/cast_channel/cast_channel_api.h',
353 'browser/api/cast_channel/cast_framer.cc',
354 'browser/api/cast_channel/cast_framer.h',
355 'browser/api/cast_channel/cast_message_util.cc',
356 'browser/api/cast_channel/cast_message_util.h',
357 'browser/api/cast_channel/cast_socket.cc',
358 'browser/api/cast_channel/cast_socket.h',
359 'browser/api/cast_channel/logger.cc',
360 'browser/api/cast_channel/logger.h',
361 'browser/api/cast_channel/logger_util.cc',
362 'browser/api/cast_channel/logger_util.h',
363 'browser/api/declarative/deduping_factory.h',
364 'browser/api/declarative/declarative_api.cc',
365 'browser/api/declarative/declarative_api.h',
366 'browser/api/declarative/declarative_rule.h',
367 'browser/api/declarative/rules_cache_delegate.cc',
368 'browser/api/declarative/rules_cache_delegate.h',
369 'browser/api/declarative/rules_registry.cc',
370 'browser/api/declarative/rules_registry.h',
371 'browser/api/declarative/rules_registry_service_interface_.h',
372 'browser/api/declarative/test_rules_registry.cc',
373 'browser/api/declarative/test_rules_registry.h',
374 'browser/api/declarative_webrequest/request_stage.cc',
375 'browser/api/declarative_webrequest/request_stage.h',
376 'browser/api/declarative_webrequest/webrequest_condition.cc',
377 'browser/api/declarative_webrequest/webrequest_condition.h',
378 'browser/api/declarative_webrequest/webrequest_condition_attribute.cc',
379 'browser/api/declarative_webrequest/webrequest_condition_attribute.h',
380 'browser/api/declarative_webrequest/webrequest_constants.cc',
381 'browser/api/declarative_webrequest/webrequest_constants.h',
382 'browser/api/dns/dns_api.cc',
383 'browser/api/dns/dns_api.h',
384 'browser/api/dns/host_resolver_wrapper.cc',
385 'browser/api/dns/host_resolver_wrapper.h',
386 'browser/api/execute_code_function.cc',
387 'browser/api/execute_code_function.h',
388 'browser/api/extensions_api_client.cc',
389 'browser/api/extensions_api_client.h',
390 'browser/api/hid/hid_api.cc',
391 'browser/api/hid/hid_api.h',
392 'browser/api/hid/hid_connection_resource.cc',
393 'browser/api/hid/hid_connection_resource.h',
394 'browser/api/hid/hid_device_manager.cc',
395 'browser/api/hid/hid_device_manager.h',
396 'browser/api/power/power_api.cc',
397 'browser/api/power/power_api.h',
398 'browser/api/power/power_api_manager.cc',
399 'browser/api/power/power_api_manager.h',
400 'browser/api/runtime/runtime_api.cc',
401 'browser/api/runtime/runtime_api.h',
402 'browser/api/runtime/runtime_api_delegate.cc',
403 'browser/api/runtime/runtime_api_delegate.h',
404 'browser/api/serial/serial_api.cc',
405 'browser/api/serial/serial_api.h',
406 'browser/api/serial/serial_connection.cc',
407 'browser/api/serial/serial_connection.h',
408 'browser/api/serial/serial_event_dispatcher.cc',
409 'browser/api/serial/serial_event_dispatcher.h',
410 'browser/api/socket/socket.cc',
411 'browser/api/socket/socket.h',
412 'browser/api/socket/socket_api.cc',
413 'browser/api/socket/socket_api.h',
414 'browser/api/socket/tcp_socket.cc',
415 'browser/api/socket/tcp_socket.h',
416 'browser/api/socket/tls_socket.cc',
417 'browser/api/socket/tls_socket.h',
418 'browser/api/socket/udp_socket.cc',
419 'browser/api/socket/udp_socket.h',
420 'browser/api/sockets_tcp/sockets_tcp_api.cc',
421 'browser/api/sockets_tcp/sockets_tcp_api.h',
422 'browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc',
423 'browser/api/sockets_tcp/tcp_socket_event_dispatcher.h',
424 'browser/api/sockets_tcp_server/sockets_tcp_server_api.cc',
425 'browser/api/sockets_tcp_server/sockets_tcp_server_api.h',
426 'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc',
427 'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h',
428 'browser/api/sockets_udp/sockets_udp_api.cc',
429 'browser/api/sockets_udp/sockets_udp_api.h',
430 'browser/api/sockets_udp/udp_socket_event_dispatcher.cc',
431 'browser/api/sockets_udp/udp_socket_event_dispatcher.h',
432 'browser/api/storage/leveldb_settings_storage_factory.cc',
433 'browser/api/storage/leveldb_settings_storage_factory.h',
434 'browser/api/storage/local_value_store_cache.cc',
435 'browser/api/storage/local_value_store_cache.h',
436 'browser/api/storage/settings_namespace.cc',
437 'browser/api/storage/settings_namespace.h',
438 'browser/api/storage/settings_observer.h',
439 'browser/api/storage/settings_storage_factory.h',
440 'browser/api/storage/settings_storage_quota_enforcer.cc',
441 'browser/api/storage/settings_storage_quota_enforcer.h',
442 'browser/api/storage/storage_api.cc',
443 'browser/api/storage/storage_api.h',
444 'browser/api/storage/storage_frontend.cc',
445 'browser/api/storage/storage_frontend.h',
446 'browser/api/storage/value_store_cache.cc',
447 'browser/api/storage/value_store_cache.h',
448 'browser/api/storage/weak_unlimited_settings_storage.cc',
449 'browser/api/storage/weak_unlimited_settings_storage.h',
450 'browser/api/system_cpu/cpu_info_provider.cc',
451 'browser/api/system_cpu/cpu_info_provider.h',
452 'browser/api/system_cpu/cpu_info_provider_linux.cc',
453 'browser/api/system_cpu/cpu_info_provider_mac.cc',
454 'browser/api/system_cpu/cpu_info_provider_win.cc',
455 'browser/api/system_cpu/system_cpu_api.cc',
456 'browser/api/system_cpu/system_cpu_api.h',
457 'browser/api/system_display/display_info_provider.cc',
458 'browser/api/system_display/display_info_provider.h',
459 'browser/api/system_display/system_display_api.cc',
460 'browser/api/system_display/system_display_api.h',
461 'browser/api/system_info/system_info_api.cc',
462 'browser/api/system_info/system_info_api.h',
463 'browser/api/system_info/system_info_provider.cc',
464 'browser/api/system_info/system_info_provider.h',
465 'browser/api/system_memory/memory_info_provider.cc',
466 'browser/api/system_memory/memory_info_provider.h',
467 'browser/api/system_memory/system_memory_api.cc',
468 'browser/api/system_memory/system_memory_api.h',
469 'browser/api/system_network/system_network_api.cc',
470 'browser/api/system_network/system_network_api.h',
471 'browser/api/system_storage/storage_info_provider.cc',
472 'browser/api/system_storage/storage_info_provider.h',
473 'browser/api/system_storage/system_storage_api.cc',
474 'browser/api/system_storage/system_storage_api.h',
475 'browser/api/web_request/web_request_api_constants.cc',
476 'browser/api/web_request/web_request_api_constants.h',
477 'browser/api/web_request/web_request_api_utils.cc',
478 'browser/api/web_request/web_request_api_utils.h',
479 'browser/api/test/test_api.cc',
480 'browser/api/test/test_api.h',
481 'browser/api/usb/usb_api.cc',
482 'browser/api/usb/usb_api.h',
483 'browser/api/usb/usb_device_resource.cc',
484 'browser/api/usb/usb_device_resource.h',
485 'browser/api/usb_private/usb_private_api.cc',
486 'browser/api/usb_private/usb_private_api.h',
487 'browser/api/web_view/web_view_internal_api.cc',
488 'browser/api/web_view/web_view_internal_api.h',
489 'browser/api_activity_monitor.h',
490 'browser/app_sorting.h',
491 'browser/app_window/app_delegate.h',
492 'browser/app_window/app_web_contents_helper.cc',
493 'browser/app_window/app_web_contents_helper.h',
494 'browser/app_window/app_window.cc',
495 'browser/app_window/app_window.h',
496 'browser/app_window/app_window_contents.cc',
497 'browser/app_window/app_window_contents.h',
498 'browser/app_window/app_window_geometry_cache.cc',
499 'browser/app_window/app_window_geometry_cache.h',
500 'browser/app_window/app_window_registry.cc',
501 'browser/app_window/app_window_registry.h',
502 'browser/app_window/apps_client.cc',
503 'browser/app_window/apps_client.h',
504 'browser/app_window/native_app_window.h',
505 'browser/app_window/size_constraints.cc',
506 'browser/app_window/size_constraints.h',
507 'browser/blacklist_state.h',
508 'browser/blob_holder.cc',
509 'browser/blob_holder.h',
510 'browser/browser_context_keyed_api_factory.h',
511 'browser/browser_context_keyed_service_factories.cc',
512 'browser/browser_context_keyed_service_factories.h',
513 'browser/component_extension_resource_manager.h',
514 'browser/computed_hashes.cc',
515 'browser/computed_hashes.h',
516 'browser/content_hash_fetcher.cc',
517 'browser/content_hash_fetcher.h',
518 'browser/content_hash_reader.cc',
519 'browser/content_hash_reader.h',
520 'browser/content_hash_tree.cc',
521 'browser/content_hash_tree.h',
522 'browser/content_verifier.cc',
523 'browser/content_verifier.h',
524 'browser/content_verifier_delegate.h',
525 'browser/content_verifier_io_data.cc',
526 'browser/content_verifier_io_data.h',
527 'browser/content_verify_job.cc',
528 'browser/content_verify_job.h',
529 'browser/error_map.cc',
530 'browser/error_map.h',
531 'browser/event_listener_map.cc',
532 'browser/event_listener_map.h',
533 'browser/event_router.cc',
534 'browser/event_router.h',
535 'browser/extension_host.cc',
536 'browser/extension_host.h',
537 'browser/extension_host_delegate.h',
538 'browser/extension_error.cc',
539 'browser/extension_error.h',
540 'browser/extension_function.cc',
541 'browser/extension_function.h',
542 'browser/extension_function_dispatcher.cc',
543 'browser/extension_function_dispatcher.h',
544 'browser/extension_function_registry.cc',
545 'browser/extension_function_registry.h',
546 'browser/extension_function_util.cc',
547 'browser/extension_function_util.h',
548 'browser/extension_icon_image.cc',
549 'browser/extension_icon_image.h',
550 'browser/extension_message_filter.cc',
551 'browser/extension_message_filter.h',
552 'browser/extension_pref_store.cc',
553 'browser/extension_pref_store.h',
554 'browser/extension_pref_value_map.cc',
555 'browser/extension_pref_value_map_factory.cc',
556 'browser/extension_pref_value_map_factory.h',
557 'browser/extension_pref_value_map.h',
558 'browser/extension_prefs.cc',
559 'browser/extension_prefs.h',
560 'browser/extension_prefs_factory.cc',
561 'browser/extension_prefs_factory.h',
562 'browser/extension_prefs_observer.h',
563 'browser/extension_prefs_scope.h',
564 'browser/extension_protocols.cc',
565 'browser/extension_protocols.h',
566 'browser/extension_registry.cc',
567 'browser/extension_registry.h',
568 'browser/extension_registry_factory.cc',
569 'browser/extension_registry_factory.h',
570 'browser/extension_registry_observer.h',
571 'browser/extension_scoped_prefs.h',
572 'browser/extension_system.cc',
573 'browser/extension_system.h',
574 'browser/extension_system_provider.cc',
575 'browser/extension_system_provider.h',
576 'browser/extension_util.cc',
577 'browser/extension_util.h',
578 'browser/extension_web_contents_observer.cc',
579 'browser/extension_web_contents_observer.h',
580 'browser/extensions_browser_client.cc',
581 'browser/extensions_browser_client.h',
582 'browser/external_provider_interface.h',
583 'browser/granted_file_entry.cc',
584 'browser/granted_file_entry.h',
585 'browser/guest_view/app_view/app_view_constants.cc',
586 'browser/guest_view/app_view/app_view_constants.h',
587 'browser/guest_view/app_view/app_view_guest.cc',
588 'browser/guest_view/app_view/app_view_guest.h',
589 'browser/guest_view/app_view/app_view_guest_delegate.cc',
590 'browser/guest_view/app_view/app_view_guest_delegate.h',
591 'browser/guest_view/extension_options/extension_options_constants.cc',
592 'browser/guest_view/extension_options/extension_options_constants.h',
593 'browser/guest_view/extension_options/extension_options_guest.cc',
594 'browser/guest_view/extension_options/extension_options_guest.h',
595 'browser/guest_view/extension_options/extension_options_guest_delegate.cc',
596 'browser/guest_view/extension_options/extension_options_guest_delegate.h',
597 'browser/guest_view/guest_view_base.cc',
598 'browser/guest_view/guest_view_base.h',
599 'browser/guest_view/guest_view_manager_factory.h',
600 'browser/guest_view/guest_view_manager.cc',
601 'browser/guest_view/guest_view_manager.h',
602 'browser/guest_view/guest_view.h',
603 'browser/guest_view/mime_handler_view/mime_handler_view_constants.cc',
604 'browser/guest_view/mime_handler_view/mime_handler_view_constants.h',
605 'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h',
606 'browser/guest_view/mime_handler_view/mime_handler_view_guest.cc',
607 'browser/guest_view/mime_handler_view/mime_handler_view_guest.h',
608 'browser/guest_view/web_view/javascript_dialog_helper.cc',
609 'browser/guest_view/web_view/javascript_dialog_helper.h',
610 'browser/guest_view/web_view/web_view_constants.cc',
611 'browser/guest_view/web_view/web_view_constants.h',
612 'browser/guest_view/web_view/web_view_find_helper.cc',
613 'browser/guest_view/web_view/web_view_find_helper.h',
614 'browser/guest_view/web_view/web_view_guest.cc',
615 'browser/guest_view/web_view/web_view_guest.h',
616 'browser/guest_view/web_view/web_view_guest_delegate.cc',
617 'browser/guest_view/web_view/web_view_guest_delegate.h',
618 'browser/guest_view/web_view/web_view_permission_types.h',
619 'browser/guest_view/web_view/web_view_permission_helper.cc',
620 'browser/guest_view/web_view/web_view_permission_helper.h',
621 'browser/guest_view/web_view/web_view_permission_helper_delegate.cc',
622 'browser/guest_view/web_view/web_view_permission_helper_delegate.h',
623 'browser/guest_view/web_view/web_view_renderer_state.cc',
624 'browser/guest_view/web_view/web_view_renderer_state.h',
625 'browser/image_loader.cc',
626 'browser/image_loader.h',
627 'browser/image_loader_factory.cc',
628 'browser/image_loader_factory.h',
629 'browser/image_util.cc',
630 'browser/image_util.h',
631 'browser/info_map.cc',
632 'browser/info_map.h',
633 'browser/install_flag.h',
634 'browser/file_highlighter.cc',
635 'browser/file_highlighter.h',
636 'browser/file_reader.cc',
637 'browser/file_reader.h',
638 'browser/lazy_background_task_queue.cc',
639 'browser/lazy_background_task_queue.h',
640 'browser/management_policy.cc',
641 'browser/management_policy.h',
642 'browser/notification_types.h',
643 'browser/null_app_sorting.cc',
644 'browser/null_app_sorting.h',
645 'browser/pref_names.cc',
646 'browser/pref_names.h',
647 'browser/process_manager.cc',
648 'browser/process_manager.h',
649 'browser/process_manager_delegate.h',
650 'browser/process_manager_observer.h',
651 'browser/process_map.cc',
652 'browser/process_map.h',
653 'browser/process_map_factory.cc',
654 'browser/process_map_factory.h',
655 'browser/quota_service.cc',
656 'browser/quota_service.h',
657 'browser/renderer_startup_helper.cc',
658 'browser/renderer_startup_helper.h',
659 'browser/runtime_data.cc',
660 'browser/runtime_data.h',
661 'browser/script_execution_observer.h',
662 'browser/script_executor.cc',
663 'browser/script_executor.h',
664 'browser/state_store.cc',
665 'browser/state_store.h',
666 'browser/suggest_permission_util.cc',
667 'browser/suggest_permission_util.h',
668 'browser/uninstall_reason.h',
669 'browser/update_observer.h',
670 'browser/updater/manifest_fetch_data.cc',
671 'browser/updater/manifest_fetch_data.h',
672 'browser/url_request_util.cc',
673 'browser/url_request_util.h',
674 'browser/value_store/leveldb_value_store.cc',
675 'browser/value_store/leveldb_value_store.h',
676 'browser/value_store/testing_value_store.cc',
677 'browser/value_store/testing_value_store.h',
678 'browser/value_store/value_store.cc',
679 'browser/value_store/value_store.h',
680 'browser/value_store/value_store_change.cc',
681 'browser/value_store/value_store_change.h',
682 'browser/value_store/value_store_frontend.cc',
683 'browser/value_store/value_store_frontend.h',
684 'browser/value_store/value_store_util.cc',
685 'browser/value_store/value_store_util.h',
686 'browser/verified_contents.cc',
687 'browser/verified_contents.h',
688 'browser/view_type_utils.cc',
689 'browser/view_type_utils.h',
690 'browser/warning_service.cc',
691 'browser/warning_service.h',
692 'browser/warning_set.cc',
693 'browser/warning_set.h',
696 ['enable_extensions==0', {
697 # Exclude all API implementations and the ExtensionsApiClient
698 # interface. Moving an API from src/chrome to src/extensions implies
699 # it can be cleanly disabled with enable_extensions==0.
700 # TODO: Eventually the entire extensions module should not be built
701 # when enable_extensions==0.
703 ['exclude', '^browser/'],
706 '../components/components.gyp:storage_monitor',
707 '../device/bluetooth/bluetooth.gyp:device_bluetooth',
708 '../device/serial/serial.gyp:device_serial',
713 'browser/api/cast_channel/cast_auth_util_openssl.cc',
717 # cast_auth_util_nss.cc uses NSS functions.
718 'browser/api/cast_channel/cast_auth_util_nss.cc',
721 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
723 '../build/linux/system.gyp:ssl',
726 ['OS == "mac" or OS == "ios" or OS == "win"', {
728 '../third_party/nss/nss.gyp:nspr',
729 '../third_party/nss/nss.gyp:nss',
733 # Disable c4267 warnings until we fix size_t to int truncations.
734 'msvs_disabled_warnings': [ 4267, ],
737 # GN version: //extensions/renderer
738 'target_name': 'extensions_renderer',
739 'type': 'static_library',
741 'extensions_resources.gyp:extensions_resources',
742 '../chrome/chrome_resources.gyp:chrome_resources',
743 '../content/content.gyp:content_resources',
744 '../gin/gin.gyp:gin',
745 '../mojo/mojo_base.gyp:mojo_js_bindings',
746 '../third_party/WebKit/public/blink.gyp:blink',
752 # Note: sources list duplicated in GN build.
753 'renderer/activity_log_converter_strategy.cc',
754 'renderer/activity_log_converter_strategy.h',
755 'renderer/api_activity_logger.cc',
756 'renderer/api_activity_logger.h',
757 'renderer/api_definitions_natives.cc',
758 'renderer/api_definitions_natives.h',
759 'renderer/app_runtime_custom_bindings.cc',
760 'renderer/app_runtime_custom_bindings.h',
761 'renderer/app_window_custom_bindings.cc',
762 'renderer/app_window_custom_bindings.h',
763 'renderer/binding_generating_native_handler.cc',
764 'renderer/binding_generating_native_handler.h',
765 'renderer/blob_native_handler.cc',
766 'renderer/blob_native_handler.h',
767 'renderer/console.cc',
768 'renderer/console.h',
769 'renderer/content_watcher.cc',
770 'renderer/content_watcher.h',
771 'renderer/context_menus_custom_bindings.cc',
772 'renderer/context_menus_custom_bindings.h',
773 'renderer/css_native_handler.cc',
774 'renderer/css_native_handler.h',
775 'renderer/default_dispatcher_delegate.cc',
776 'renderer/default_dispatcher_delegate.h',
777 'renderer/dispatcher.cc',
778 'renderer/dispatcher.h',
779 'renderer/dispatcher_delegate.h',
780 'renderer/document_custom_bindings.cc',
781 'renderer/document_custom_bindings.h',
782 'renderer/dom_activity_logger.cc',
783 'renderer/dom_activity_logger.h',
784 'renderer/event_bindings.cc',
785 'renderer/event_bindings.h',
786 'renderer/extension_groups.h',
787 'renderer/extension_helper.cc',
788 'renderer/extension_helper.h',
789 'renderer/extensions_render_frame_observer.cc',
790 'renderer/extensions_render_frame_observer.h',
791 'renderer/extensions_renderer_client.cc',
792 'renderer/extensions_renderer_client.h',
793 'renderer/file_system_natives.cc',
794 'renderer/file_system_natives.h',
795 'renderer/guest_view/guest_view_container.cc',
796 'renderer/guest_view/guest_view_container.h',
797 'renderer/guest_view/guest_view_internal_custom_bindings.cc',
798 'renderer/guest_view/guest_view_internal_custom_bindings.h',
799 'renderer/i18n_custom_bindings.cc',
800 'renderer/i18n_custom_bindings.h',
801 'renderer/id_generator_custom_bindings.cc',
802 'renderer/id_generator_custom_bindings.h',
803 'renderer/lazy_background_page_native_handler.cc',
804 'renderer/lazy_background_page_native_handler.h',
805 'renderer/logging_native_handler.cc',
806 'renderer/logging_native_handler.h',
807 'renderer/messaging_bindings.cc',
808 'renderer/messaging_bindings.h',
809 'renderer/module_system.cc',
810 'renderer/module_system.h',
811 'renderer/native_handler.cc',
812 'renderer/native_handler.h',
813 'renderer/object_backed_native_handler.cc',
814 'renderer/object_backed_native_handler.h',
815 'renderer/print_native_handler.cc',
816 'renderer/print_native_handler.h',
817 'renderer/process_info_native_handler.cc',
818 'renderer/process_info_native_handler.h',
819 'renderer/programmatic_script_injector.cc',
820 'renderer/programmatic_script_injector.h',
821 'renderer/render_view_observer_natives.cc',
822 'renderer/request_sender.cc',
823 'renderer/request_sender.h',
824 'renderer/resource_bundle_source_map.cc',
825 'renderer/resource_bundle_source_map.h',
826 'renderer/resources/app_runtime_custom_bindings.js',
827 'renderer/resources/app_window_custom_bindings.js',
828 'renderer/resources/binding.js',
829 'renderer/resources/context_menus_custom_bindings.js',
830 'renderer/resources/entry_id_manager.js',
831 'renderer/resources/event.js',
832 'renderer/resources/extension.css',
833 'renderer/resources/extension_custom_bindings.js',
834 'renderer/resources/extension_fonts.css',
835 'renderer/resources/greasemonkey_api.js',
836 'renderer/resources/i18n_custom_bindings.js',
837 'renderer/resources/image_util.js',
838 'renderer/resources/json_schema.js',
839 'renderer/resources/last_error.js',
840 'renderer/resources/messaging.js',
841 'renderer/resources/messaging_utils.js',
842 'renderer/resources/permissions_custom_bindings.js',
843 'renderer/resources/platform_app.css',
844 'renderer/resources/platform_app.js',
845 'renderer/resources/runtime_custom_bindings.js',
846 'renderer/resources/schema_utils.js',
847 'renderer/resources/send_request.js',
848 'renderer/resources/set_icon.js',
849 'renderer/resources/storage_area.js',
850 'renderer/resources/test_custom_bindings.js',
851 'renderer/resources/uncaught_exception_handler.js',
852 'renderer/resources/unload_event.js',
853 'renderer/resources/utils.js',
854 'renderer/runtime_custom_bindings.cc',
855 'renderer/runtime_custom_bindings.h',
856 'renderer/safe_builtins.cc',
857 'renderer/safe_builtins.h',
858 'renderer/scoped_persistent.h',
859 'renderer/script_context.cc',
860 'renderer/script_context.h',
861 'renderer/script_context_set.cc',
862 'renderer/script_context_set.h',
863 'renderer/script_injection.cc',
864 'renderer/script_injection.h',
865 'renderer/script_injection_manager.cc',
866 'renderer/script_injection_manager.h',
867 'renderer/script_injector.h',
868 'renderer/scripts_run_info.cc',
869 'renderer/scripts_run_info.h',
870 'renderer/send_request_natives.cc',
871 'renderer/send_request_natives.h',
872 'renderer/set_icon_natives.cc',
873 'renderer/set_icon_natives.h',
874 'renderer/static_v8_external_ascii_string_resource.cc',
875 'renderer/static_v8_external_ascii_string_resource.h',
876 'renderer/test_features_native_handler.cc',
877 'renderer/test_features_native_handler.h',
878 'renderer/user_gestures_native_handler.cc',
879 'renderer/user_gestures_native_handler.h',
880 'renderer/user_script_injector.cc',
881 'renderer/user_script_injector.h',
882 'renderer/user_script_set.cc',
883 'renderer/user_script_set.h',
884 'renderer/user_script_set_manager.cc',
885 'renderer/user_script_set_manager.h',
886 'renderer/utils_native_handler.cc',
887 'renderer/utils_native_handler.h',
888 'renderer/v8_context_native_handler.cc',
889 'renderer/v8_context_native_handler.h',
890 'renderer/v8_schema_registry.cc',
891 'renderer/v8_schema_registry.h',
893 # Disable c4267 warnings until we fix size_t to int truncations.
894 'msvs_disabled_warnings': [ 4267, ],
897 # GN version: //extensions:test_support
898 'target_name': 'extensions_test_support',
899 'type': 'static_library',
901 '../base/base.gyp:base',
902 '../components/components.gyp:user_prefs',
903 '../net/net.gyp:net_test_support',
904 '../testing/gtest.gyp:gtest',
905 'browser/api/api_registration.gyp:extensions_api_registration',
906 'common/api/api.gyp:extensions_api',
907 'extensions_browser',
909 'extensions_resources.gyp:extensions_resources',
913 '<(SHARED_INTERMEDIATE_DIR)',
916 # Note: sources list duplicated in GN build.
917 'browser/api/dns/mock_host_resolver_creator.cc',
918 'browser/api/dns/mock_host_resolver_creator.h',
919 'browser/api/storage/settings_test_util.cc',
920 'browser/api/storage/settings_test_util.h',
921 'browser/api_test_utils.cc',
922 'browser/api_test_utils.h',
923 'browser/extension_error_test_util.cc',
924 'browser/extension_error_test_util.h',
925 'browser/extensions_test.cc',
926 'browser/extensions_test.h',
927 'browser/mock_extension_system.cc',
928 'browser/mock_extension_system.h',
929 'browser/test_extensions_browser_client.cc',
930 'browser/test_extensions_browser_client.h',
931 'browser/test_management_policy.cc',
932 'browser/test_management_policy.h',
933 'browser/test_runtime_api_delegate.cc',
934 'browser/test_runtime_api_delegate.h',
935 'common/extension_builder.cc',
936 'common/extension_builder.h',
937 'common/manifest_test.cc',
938 'common/manifest_test.h',
939 'common/test_util.cc',
940 'common/test_util.h',
941 'common/value_builder.cc',
942 'common/value_builder.h',
943 'renderer/test_extensions_renderer_client.cc',
944 'renderer/test_extensions_renderer_client.h',
945 'test/result_catcher.cc',
946 'test/result_catcher.h',
947 'test/test_extensions_client.cc',
948 'test/test_extensions_client.h',
949 'test/test_permission_message_provider.cc',
950 'test/test_permission_message_provider.h',
951 'test/test_permissions_provider.cc',
952 'test/test_permissions_provider.h',
954 # Disable c4267 warnings until we fix size_t to int truncations.
955 'msvs_disabled_warnings': [ 4267, ],
958 # The pak file generated by this target is intended to be shared by
959 # both shell and test targets. It was combined because it might help a
960 # little bit with build time by avoiding a repack step (one instead of
962 'target_name': 'extensions_shell_and_test_pak',
965 # Need extension related resources in common_resources.pak and
966 # renderer_resources_100_percent.pak
967 '../chrome/chrome_resources.gyp:chrome_resources',
968 # Need dev-tools related resources in shell_resources.pak and
969 # devtools_resources.pak.
970 '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
971 '../content/content.gyp:content_resources',
972 '../content/content_shell_and_tests.gyp:content_shell_resources',
973 '../ui/resources/ui_resources.gyp:ui_resources',
974 '../ui/strings/ui_strings.gyp:ui_strings',
975 'extensions_resources.gyp:extensions_resources',
976 'extensions_strings.gyp:extensions_strings',
980 'action_name': 'repack_extensions_shell_and_test_pak',
983 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.pak',
984 '<(SHARED_INTERMEDIATE_DIR)/chrome/extensions_api_resources.pak',
985 # TODO(jamescook): Extract the extension/app related resources
986 # from generated_resources_en-US.pak. http://crbug.com/397250
987 '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.pak',
988 '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources_100_percent.pak',
989 '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
990 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
991 '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
992 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
993 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
994 '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
995 '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
996 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
997 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
998 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
999 '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak',
1001 'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
1003 'includes': [ '../build/repack_action.gypi' ],
1008 # TODO(tfarina): Many extension unit tests run as part of Chrome's
1009 # unit_tests target. They should be moved here, which may require some
1010 # refactoring (ExtensionsBrowserClient, TestingProfile, etc.).
1011 # http://crbug.com/348066
1012 'target_name': 'extensions_unittests',
1013 'type': 'executable',
1015 '../base/base.gyp:base',
1016 '../base/base.gyp:base_prefs_test_support',
1017 '../base/base.gyp:test_support_base',
1018 '../components/components.gyp:keyed_service_content',
1019 '../components/components.gyp:user_prefs',
1020 '../content/content_shell_and_tests.gyp:test_support_content',
1021 '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
1022 '../device/serial/serial.gyp:device_serial',
1023 '../device/serial/serial.gyp:device_serial_test_util',
1024 '../mojo/mojo_base.gyp:mojo_environment_chromium',
1025 '../mojo/mojo_base.gyp:mojo_cpp_bindings',
1026 '../mojo/mojo_base.gyp:mojo_js_bindings_lib',
1027 '../mojo/mojo_base.gyp:mojo_system_impl',
1028 '../testing/gmock.gyp:gmock',
1029 '../testing/gtest.gyp:gtest',
1030 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1031 'cast_channel_proto',
1032 'extensions_common',
1033 'extensions_renderer',
1034 'extensions_resources.gyp:extensions_resources',
1035 'extensions_shell_and_test_pak',
1036 'extensions_strings.gyp:extensions_strings',
1037 'extensions_test_support',
1039 # Needed for third_party libraries like leveldb.
1044 'browser/api/api_resource_manager_unittest.cc',
1045 'browser/api/bluetooth/bluetooth_event_router_unittest.cc',
1046 'browser/api/cast_channel/cast_channel_api_unittest.cc',
1047 'browser/api/cast_channel/cast_framer_unittest.cc',
1048 'browser/api/cast_channel/cast_socket_unittest.cc',
1049 'browser/api/cast_channel/logger_unittest.cc',
1050 'browser/api/declarative/declarative_rule_unittest.cc',
1051 'browser/api/declarative/deduping_factory_unittest.cc',
1052 'browser/api/declarative_webrequest/webrequest_condition_unittest.cc',
1053 'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc',
1054 'browser/api/power/power_api_unittest.cc',
1055 'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc',
1056 'browser/api/storage/settings_quota_unittest.cc',
1057 'browser/api/storage/storage_api_unittest.cc',
1058 'browser/api/storage/storage_frontend_unittest.cc',
1059 'browser/app_window/app_window_geometry_cache_unittest.cc',
1060 'browser/computed_hashes_unittest.cc',
1061 'browser/content_hash_tree_unittest.cc',
1062 'browser/event_listener_map_unittest.cc',
1063 'browser/event_router_unittest.cc',
1064 'browser/api_unittest.cc',
1065 'browser/api_unittest.h',
1066 'browser/error_map_unittest.cc',
1067 'browser/extension_icon_image_unittest.cc',
1068 'browser/extension_pref_value_map_unittest.cc',
1069 'browser/extension_registry_unittest.cc',
1070 'browser/file_highlighter_unittest.cc',
1071 'browser/file_reader_unittest.cc',
1072 'browser/guest_view/guest_view_manager_unittest.cc',
1073 'browser/image_loader_unittest.cc',
1074 'browser/image_util_unittest.cc',
1075 'browser/info_map_unittest.cc',
1076 'browser/lazy_background_task_queue_unittest.cc',
1077 'browser/management_policy_unittest.cc',
1078 'browser/process_manager_unittest.cc',
1079 'browser/process_map_unittest.cc',
1080 'browser/quota_service_unittest.cc',
1081 'browser/runtime_data_unittest.cc',
1082 'browser/value_store/leveldb_value_store_unittest.cc',
1083 'browser/value_store/testing_value_store_unittest.cc',
1084 'browser/value_store/value_store_change_unittest.cc',
1085 'browser/value_store/value_store_frontend_unittest.cc',
1086 'browser/value_store/value_store_unittest.cc',
1087 'browser/value_store/value_store_unittest.h',
1088 'browser/verified_contents_unittest.cc',
1089 'browser/warning_service_unittest.cc',
1090 'common/api/sockets/sockets_manifest_permission_unittest.cc',
1091 'common/csp_validator_unittest.cc',
1092 'common/event_filter_unittest.cc',
1093 'common/extension_resource_unittest.cc',
1094 'common/extension_set_unittest.cc',
1095 'common/features/base_feature_provider_unittest.cc',
1096 'common/features/complex_feature_unittest.cc',
1097 'common/features/simple_feature_unittest.cc',
1098 'common/manifest_handler_unittest.cc',
1099 'common/manifest_handlers/shared_module_manifest_unittest.cc',
1100 'common/message_bundle_unittest.cc',
1101 'common/one_shot_event_unittest.cc',
1102 'common/permissions/api_permission_set_unittest.cc',
1103 'common/permissions/manifest_permission_set_unittest.cc',
1104 'common/permissions/socket_permission_unittest.cc',
1105 'common/permissions/usb_device_permission_unittest.cc',
1106 'common/url_pattern_set_unittest.cc',
1107 'common/url_pattern_unittest.cc',
1108 'common/user_script_unittest.cc',
1109 'renderer/activity_log_converter_strategy_unittest.cc',
1110 'renderer/api/serial/data_receiver_unittest.cc',
1111 'renderer/api/serial/data_sender_unittest.cc',
1112 'renderer/api/serial/serial_api_unittest.cc',
1113 'renderer/api_test_base.cc',
1114 'renderer/api_test_base.h',
1115 'renderer/api_test_base_unittest.cc',
1116 'renderer/event_unittest.cc',
1117 'renderer/json_schema_unittest.cc',
1118 'renderer/messaging_utils_unittest.cc',
1119 'renderer/module_system_test.cc',
1120 'renderer/module_system_test.h',
1121 'renderer/module_system_unittest.cc',
1122 'renderer/safe_builtins_unittest.cc',
1123 'renderer/script_context_set_unittest.cc',
1124 'renderer/utils_unittest.cc',
1125 'test/extensions_unittests_main.cc',
1127 # Disable c4267 warnings until we fix size_t to int truncations.
1128 'msvs_disabled_warnings': [ 4267, ],
1130 ['OS=="win" and win_use_allocator_shim==1', {
1132 '../base/allocator/allocator.gyp:allocator',
1138 # Protobuf compiler / generator for chrome.cast.channel-related protocol buffers.
1139 # GN version: //extensions/browser/api/cast_channel:cast_channel_proto
1140 'target_name': 'cast_channel_proto',
1141 'type': 'static_library',
1143 'browser/api/cast_channel/cast_channel.proto',
1144 'browser/api/cast_channel/logging.proto'
1147 'proto_in_dir': 'browser/api/cast_channel',
1148 'proto_out_dir': 'extensions/browser/api/cast_channel',
1150 'includes': [ '../build/protoc.gypi' ]