Win-Clang update script: update paths for 3.7.0
[chromium-blink-merge.git] / extensions / extensions.gyp
bloba31f3021b8a85fd403bea6fb9fd9b73ad699b647
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.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       # GN version: //extensions/common:mojo
12       'target_name': 'extensions_common_mojo',
13       # The type of this target must be none. This is so that resources can
14       # depend upon this target for generating the js bindings files. Any
15       # generated cpp files must be listed explicitly in extensions_common
16       'type': 'none',
17       'includes': [
18         '../mojo/mojom_bindings_generator.gypi',
19       ],
20       'sources': [
21         'common/mojo/keep_alive.mojom',
22         'common/mojo/stash.mojom',
23       ],
24     },
25     {
26       # GN version: //extensions/common
27       'target_name': 'extensions_common_constants',
28       'type': 'static_library',
29       'include_dirs': [
30         '..',
31         '<(INTERMEDIATE_DIR)',
32       ],
33       'sources': [
34         # Note: sources list duplicated in GN build.
35         'common/constants.cc',
36         'common/constants.h',
37       ],
38       # Disable c4267 warnings until we fix size_t to int truncations.
39       'msvs_disabled_warnings': [ 4267, ],
40     },
41     {
42       # GN version: //extensions/common
43       'target_name': 'extensions_common',
44       'type': 'static_library',
45       'dependencies': [
46         '../components/components.gyp:crx_file',
47         '../components/components.gyp:url_matcher',
48         '../content/content.gyp:content_common',
49         '../crypto/crypto.gyp:crypto',
50         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
51         # For Mojo generated headers for generated_api.cc.
52         '../device/serial/serial.gyp:device_serial_mojo',
53         '../device/usb/usb.gyp:device_usb',
54         '../ipc/ipc.gyp:ipc',
55         '../net/net.gyp:net',
56         '../third_party/re2/re2.gyp:re2',
57         '../ui/base/ui_base.gyp:ui_base',
58         '../ui/gfx/gfx.gyp:gfx_geometry',
59         '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
60         '../url/url.gyp:url_lib',
61         '../third_party/libxml/libxml.gyp:libxml',
62         'common/api/api.gyp:extensions_api',
63         'extensions_resources.gyp:extensions_resources',
64         'extensions_strings.gyp:extensions_strings',
65         'extensions_common_constants',
66         'extensions_common_mojo',
67       ],
68       'include_dirs': [
69         '..',
70         '<(INTERMEDIATE_DIR)',
71       ],
72       'sources': [
73         # Note: sources list duplicated in GN build.
74         'common/api/bluetooth/bluetooth_manifest_data.cc',
75         'common/api/bluetooth/bluetooth_manifest_data.h',
76         'common/api/bluetooth/bluetooth_manifest_handler.cc',
77         'common/api/bluetooth/bluetooth_manifest_handler.h',
78         'common/api/bluetooth/bluetooth_manifest_permission.cc',
79         'common/api/bluetooth/bluetooth_manifest_permission.h',
80         'common/api/messaging/message.h',
81         'common/api/sockets/sockets_manifest_data.cc',
82         'common/api/sockets/sockets_manifest_data.h',
83         'common/api/sockets/sockets_manifest_handler.cc',
84         'common/api/sockets/sockets_manifest_handler.h',
85         'common/api/sockets/sockets_manifest_permission.cc',
86         'common/api/sockets/sockets_manifest_permission.h',
87         'common/common_manifest_handlers.cc',
88         'common/common_manifest_handlers.h',
89         'common/csp_validator.cc',
90         'common/csp_validator.h',
91         'common/dom_action_types.h',
92         'common/draggable_region.cc',
93         'common/draggable_region.h',
94         'common/error_utils.cc',
95         'common/error_utils.h',
96         'common/event_filter.cc',
97         'common/event_filter.h',
98         'common/event_filtering_info.cc',
99         'common/event_filtering_info.h',
100         'common/event_matcher.cc',
101         'common/event_matcher.h',
102         'common/extension.cc',
103         'common/extension.h',
104         'common/extension_api.cc',
105         'common/extension_api.h',
106         'common/extension_icon_set.cc',
107         'common/extension_icon_set.h',
108         'common/extension_l10n_util.cc',
109         'common/extension_l10n_util.h',
110         'common/extension_message_generator.cc',
111         'common/extension_message_generator.h',
112         'common/extension_messages.cc',
113         'common/extension_messages.h',
114         'common/extension_paths.cc',
115         'common/extension_paths.h',
116         'common/extension_resource.cc',
117         'common/extension_resource.h',
118         'common/extension_set.cc',
119         'common/extension_set.h',
120         'common/extension_urls.cc',
121         'common/extension_urls.h',
122         'common/extension_utility_messages.h',
123         'common/extensions_client.cc',
124         'common/extensions_client.h',
125         'common/feature_switch.cc',
126         'common/feature_switch.h',
127         'common/features/api_feature.cc',
128         'common/features/api_feature.h',
129         'common/features/base_feature_provider.cc',
130         'common/features/base_feature_provider.h',
131         'common/features/complex_feature.cc',
132         'common/features/complex_feature.h',
133         'common/features/feature.cc',
134         'common/features/feature.h',
135         'common/features/feature_provider.cc',
136         'common/features/feature_provider.h',
137         'common/features/json_feature_provider_source.cc',
138         'common/features/json_feature_provider_source.h',
139         'common/features/manifest_feature.cc',
140         'common/features/manifest_feature.h',
141         'common/features/permission_feature.cc',
142         'common/features/permission_feature.h',
143         'common/features/simple_feature.cc',
144         'common/features/simple_feature.h',
145         'common/features/simple_feature_filter.cc',
146         'common/features/simple_feature_filter.h',
147         'common/features/behavior_feature.cc',
148         'common/features/behavior_feature.h',
149         'common/file_util.cc',
150         'common/file_util.h',
151         'common/guest_view/guest_view_constants.cc',
152         'common/guest_view/guest_view_constants.h',
153         'common/image_util.cc',
154         'common/image_util.h',
155         'common/install_warning.cc',
156         'common/install_warning.h',
157         'common/manifest.cc',
158         'common/manifest.h',
159         'common/manifest_constants.cc',
160         'common/manifest_constants.h',
161         'common/manifest_handler.cc',
162         'common/manifest_handler.h',
163         'common/manifest_handler_helpers.cc',
164         'common/manifest_handler_helpers.h',
165         'common/manifest_handlers/background_info.cc',
166         'common/manifest_handlers/background_info.h',
167         'common/manifest_handlers/content_capabilities_handler.cc',
168         'common/manifest_handlers/content_capabilities_handler.h',
169         'common/manifest_handlers/csp_info.cc',
170         'common/manifest_handlers/csp_info.h',
171         'common/manifest_handlers/default_locale_handler.cc',
172         'common/manifest_handlers/default_locale_handler.h',
173         'common/manifest_handlers/externally_connectable.cc',
174         'common/manifest_handlers/externally_connectable.h',
175         'common/manifest_handlers/file_handler_info.cc',
176         'common/manifest_handlers/file_handler_info.h',
177         'common/manifest_handlers/icons_handler.cc',
178         'common/manifest_handlers/icons_handler.h',
179         'common/manifest_handlers/incognito_info.cc',
180         'common/manifest_handlers/incognito_info.h',
181         'common/manifest_handlers/kiosk_mode_info.cc',
182         'common/manifest_handlers/kiosk_mode_info.h',
183         'common/manifest_handlers/launcher_page_info.cc',
184         'common/manifest_handlers/launcher_page_info.h',
185         'common/manifest_handlers/oauth2_manifest_handler.cc',
186         'common/manifest_handlers/oauth2_manifest_handler.h',
187         'common/manifest_handlers/offline_enabled_info.cc',
188         'common/manifest_handlers/offline_enabled_info.h',
189         'common/manifest_handlers/options_page_info.cc',
190         'common/manifest_handlers/options_page_info.h',
191         'common/manifest_handlers/permissions_parser.cc',
192         'common/manifest_handlers/permissions_parser.h',
193         'common/manifest_handlers/requirements_info.cc',
194         'common/manifest_handlers/requirements_info.h',
195         'common/manifest_handlers/sandboxed_page_info.cc',
196         'common/manifest_handlers/sandboxed_page_info.h',
197         'common/manifest_handlers/shared_module_info.cc',
198         'common/manifest_handlers/shared_module_info.h',
199         'common/manifest_handlers/web_accessible_resources_info.cc',
200         'common/manifest_handlers/web_accessible_resources_info.h',
201         'common/manifest_handlers/webview_info.cc',
202         'common/manifest_handlers/webview_info.h',
203         'common/manifest_url_handlers.cc',
204         'common/manifest_url_handlers.h',
205         'common/message_bundle.cc',
206         'common/message_bundle.h',
207         'common/one_shot_event.cc',
208         'common/one_shot_event.h',
209         'common/permissions/api_permission.cc',
210         'common/permissions/api_permission.h',
211         'common/permissions/api_permission_set.cc',
212         'common/permissions/api_permission_set.h',
213         'common/permissions/base_set_operators.h',
214         'common/permissions/coalesced_permission_message.cc',
215         'common/permissions/coalesced_permission_message.h',
216         'common/permissions/extensions_api_permissions.cc',
217         'common/permissions/extensions_api_permissions.h',
218         'common/permissions/manifest_permission.cc',
219         'common/permissions/manifest_permission.h',
220         'common/permissions/manifest_permission_set.cc',
221         'common/permissions/manifest_permission_set.h',
222         'common/permissions/media_galleries_permission.cc',
223         'common/permissions/media_galleries_permission.h',
224         'common/permissions/media_galleries_permission_data.cc',
225         'common/permissions/media_galleries_permission_data.h',
226         'common/permissions/permission_message.cc',
227         'common/permissions/permission_message.h',
228         'common/permissions/permission_message_provider.cc',
229         'common/permissions/permission_message_provider.h',
230         'common/permissions/permission_message_util.cc',
231         'common/permissions/permission_message_util.h',
232         'common/permissions/permission_set.cc',
233         'common/permissions/permission_set.h',
234         'common/permissions/permissions_data.cc',
235         'common/permissions/permissions_data.h',
236         'common/permissions/permissions_info.cc',
237         'common/permissions/permissions_info.h',
238         'common/permissions/permissions_provider.h',
239         'common/permissions/set_disjunction_permission.h',
240         'common/permissions/settings_override_permission.cc',
241         'common/permissions/settings_override_permission.h',
242         'common/permissions/socket_permission.cc',
243         'common/permissions/socket_permission.h',
244         'common/permissions/socket_permission_data.cc',
245         'common/permissions/socket_permission_data.h',
246         'common/permissions/socket_permission_entry.cc',
247         'common/permissions/socket_permission_entry.h',
248         'common/permissions/usb_device_permission.cc',
249         'common/permissions/usb_device_permission.h',
250         'common/permissions/usb_device_permission_data.cc',
251         'common/permissions/usb_device_permission_data.h',
252         'common/stack_frame.cc',
253         'common/stack_frame.h',
254         'common/switches.cc',
255         'common/switches.h',
256         'common/update_manifest.cc',
257         'common/update_manifest.h',
258         'common/url_pattern.cc',
259         'common/url_pattern.h',
260         'common/url_pattern_set.cc',
261         'common/url_pattern_set.h',
262         'common/user_script.cc',
263         'common/user_script.h',
264         'common/value_counter.cc',
265         'common/value_counter.h',
266         'common/view_type.cc',
267         'common/view_type.h',
268         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.cc',
269         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/keep_alive.mojom.h',
270         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.cc',
271         '<(SHARED_INTERMEDIATE_DIR)/extensions/common/mojo/stash.mojom.h',
272       ],
273       # Disable c4267 warnings until we fix size_t to int truncations.
274       'msvs_disabled_warnings': [ 4267, ],
275       'conditions': [
276         ['disable_nacl==0', {
277           # NaClModulesHandler does not use any code in NaCl, so no dependency
278           # on nacl_common.
279           'sources': [
280             'common/manifest_handlers/nacl_modules_handler.cc',
281             'common/manifest_handlers/nacl_modules_handler.h',
282           ],
283         }],
284       ],
285     },
286     {
287       # GN version: //extensions/browser
288       'target_name': 'extensions_browser',
289       'type': 'static_library',
290       'dependencies': [
291         '../base/base.gyp:base',
292         '../base/base.gyp:base_prefs',
293         '../components/components.gyp:copresence_endpoints',
294         '../components/components.gyp:keyed_service_content',
295         '../components/components.gyp:keyed_service_core',
296         '../components/components.gyp:pref_registry',
297         '../components/components.gyp:sessions_content',
298         '../components/components.gyp:storage_monitor',
299         '../components/components.gyp:ui_zoom',
300         '../components/components.gyp:web_cache_browser',
301         '../components/components.gyp:web_modal',
302         '../content/content.gyp:content_browser',
303         '../device/bluetooth/bluetooth.gyp:device_bluetooth',
304         '../device/serial/serial.gyp:device_serial',
305         '../google_apis/google_apis.gyp:google_apis',
306         '../skia/skia.gyp:skia',
307         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
308         '../third_party/re2/re2.gyp:re2',
309         'browser/api/api_registration.gyp:extensions_api_registration',
310         'common/api/api.gyp:cast_channel_proto',
311         'common/api/api.gyp:extensions_api',
312         'extensions_common',
313         'extensions_resources.gyp:extensions_resources',
314         'extensions_strings.gyp:extensions_strings',
315       ],
316       'include_dirs': [
317         '..',
318         '<(INTERMEDIATE_DIR)',
319         # Needed to access generated API headers.
320         '<(SHARED_INTERMEDIATE_DIR)',
321       ],
322       'sources': [
323         # Note: sources list duplicated in GN build.
324         # NOTE: When moving an API out of Chrome be sure to verify that the
325         # Android build still compiles. See conditions below.
326         'browser/api/activity_log/web_request_constants.cc',
327         'browser/api/activity_log/web_request_constants.h',
328         'browser/api/api_resource.cc',
329         'browser/api/api_resource.h',
330         'browser/api/api_resource_manager.h',
331         'browser/api/app_current_window_internal/app_current_window_internal_api.cc',
332         'browser/api/app_current_window_internal/app_current_window_internal_api.h',
333         'browser/api/app_runtime/app_runtime_api.cc',
334         'browser/api/app_runtime/app_runtime_api.h',
335         'browser/api/app_view/app_view_guest_internal_api.cc',
336         'browser/api/app_view/app_view_guest_internal_api.h',
337         'browser/api/app_window/app_window_api.cc',
338         'browser/api/app_window/app_window_api.h',
339         'browser/api/async_api_function.cc',
340         'browser/api/async_api_function.h',
341         'browser/api/audio/audio_api.cc',
342         'browser/api/audio/audio_api.h',
343         'browser/api/audio/audio_service.h',
344         'browser/api/audio/audio_service_chromeos.cc',
345         'browser/api/audio/audio_service_linux.cc',
346         'browser/api/bluetooth/bluetooth_api.cc',
347         'browser/api/bluetooth/bluetooth_api.h',
348         'browser/api/bluetooth/bluetooth_api_pairing_delegate.cc',
349         'browser/api/bluetooth/bluetooth_api_pairing_delegate.h',
350         'browser/api/bluetooth/bluetooth_api_utils.cc',
351         'browser/api/bluetooth/bluetooth_api_utils.h',
352         'browser/api/bluetooth/bluetooth_event_router.cc',
353         'browser/api/bluetooth/bluetooth_event_router.h',
354         'browser/api/bluetooth/bluetooth_extension_function.cc',
355         'browser/api/bluetooth/bluetooth_extension_function.h',
356         'browser/api/bluetooth/bluetooth_private_api.cc',
357         'browser/api/bluetooth/bluetooth_private_api.h',
358         'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.cc',
359         'browser/api/bluetooth_low_energy/bluetooth_low_energy_api.h',
360         'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc',
361         'browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.h',
362         'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.cc',
363         'browser/api/bluetooth_low_energy/bluetooth_low_energy_event_router.h',
364         'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc',
365         'browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.h',
366         'browser/api/bluetooth_low_energy/utils.cc',
367         'browser/api/bluetooth_low_energy/utils.h',
368         'browser/api/bluetooth_socket/bluetooth_api_socket.cc',
369         'browser/api/bluetooth_socket/bluetooth_api_socket.h',
370         'browser/api/bluetooth_socket/bluetooth_socket_api.cc',
371         'browser/api/bluetooth_socket/bluetooth_socket_api.h',
372         'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc',
373         'browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.h',
374         'browser/api/capture_web_contents_function.cc',
375         'browser/api/capture_web_contents_function.h',
376         'browser/api/cast_channel/cast_auth_ica.cc',
377         'browser/api/cast_channel/cast_auth_ica.h',
378         'browser/api/cast_channel/cast_auth_util.cc',
379         'browser/api/cast_channel/cast_auth_util.h',
380         'browser/api/cast_channel/cast_channel_api.cc',
381         'browser/api/cast_channel/cast_channel_api.h',
382         'browser/api/cast_channel/cast_framer.cc',
383         'browser/api/cast_channel/cast_framer.h',
384         'browser/api/cast_channel/cast_message_util.cc',
385         'browser/api/cast_channel/cast_message_util.h',
386         'browser/api/cast_channel/cast_socket.cc',
387         'browser/api/cast_channel/cast_socket.h',
388         'browser/api/cast_channel/cast_framer.cc',
389         'browser/api/cast_channel/cast_framer.h',
390         'browser/api/cast_channel/cast_transport.h',
391         'browser/api/cast_channel/cast_transport.cc',
392         'browser/api/cast_channel/keep_alive_delegate.cc',
393         'browser/api/cast_channel/keep_alive_delegate.h',
394         'browser/api/cast_channel/logger.cc',
395         'browser/api/cast_channel/logger.h',
396         'browser/api/cast_channel/logger_util.cc',
397         'browser/api/cast_channel/logger_util.h',
398         'browser/api/copresence_endpoints/copresence_endpoints_api.cc',
399         'browser/api/copresence_endpoints/copresence_endpoints_api.h',
400         'browser/api/copresence_endpoints/copresence_endpoint_resource.cc',
401         'browser/api/copresence_endpoints/copresence_endpoint_resource.h',
402         'browser/api/declarative/deduping_factory.h',
403         'browser/api/declarative/declarative_api.cc',
404         'browser/api/declarative/declarative_api.h',
405         'browser/api/declarative/declarative_rule.h',
406         'browser/api/declarative/rules_cache_delegate.cc',
407         'browser/api/declarative/rules_cache_delegate.h',
408         'browser/api/declarative/rules_registry.cc',
409         'browser/api/declarative/rules_registry.h',
410         'browser/api/declarative/rules_registry_service.cc',
411         'browser/api/declarative/rules_registry_service.h',
412         'browser/api/declarative/test_rules_registry.cc',
413         'browser/api/declarative/test_rules_registry.h',
414         'browser/api/declarative_content/content_rules_registry.h',
415         'browser/api/declarative_webrequest/request_stage.cc',
416         'browser/api/declarative_webrequest/request_stage.h',
417         'browser/api/declarative_webrequest/webrequest_action.cc',
418         'browser/api/declarative_webrequest/webrequest_action.h',
419         'browser/api/declarative_webrequest/webrequest_condition.cc',
420         'browser/api/declarative_webrequest/webrequest_condition.h',
421         'browser/api/declarative_webrequest/webrequest_condition_attribute.cc',
422         'browser/api/declarative_webrequest/webrequest_condition_attribute.h',
423         'browser/api/declarative_webrequest/webrequest_constants.cc',
424         'browser/api/declarative_webrequest/webrequest_constants.h',
425         'browser/api/declarative_webrequest/webrequest_rules_registry.cc',
426         'browser/api/declarative_webrequest/webrequest_rules_registry.h',
427         'browser/api/device_permissions_manager.cc',
428         'browser/api/device_permissions_manager.h',
429         'browser/api/device_permissions_prompt.cc',
430         'browser/api/device_permissions_prompt.h',
431         'browser/api/dns/dns_api.cc',
432         'browser/api/dns/dns_api.h',
433         'browser/api/dns/host_resolver_wrapper.cc',
434         'browser/api/dns/host_resolver_wrapper.h',
435         'browser/api/execute_code_function.cc',
436         'browser/api/execute_code_function.h',
437         'browser/api/extensions_api_client.cc',
438         'browser/api/extensions_api_client.h',
439         'browser/api/guest_view/guest_view_internal_api.cc',
440         'browser/api/guest_view/guest_view_internal_api.h',
441         'browser/api/hid/hid_api.cc',
442         'browser/api/hid/hid_api.h',
443         'browser/api/hid/hid_connection_resource.cc',
444         'browser/api/hid/hid_connection_resource.h',
445         'browser/api/hid/hid_device_manager.cc',
446         'browser/api/hid/hid_device_manager.h',
447         'browser/api/management/management_api.cc',
448         'browser/api/management/management_api.h',
449         'browser/api/management/management_api_delegate.h',
450         'browser/api/management/management_api_constants.cc',
451         'browser/api/management/management_api_constants.h',
452         'browser/api/messaging/native_message_host.cc',
453         'browser/api/power/power_api.cc',
454         'browser/api/power/power_api.h',
455         'browser/api/power/power_api_manager.cc',
456         'browser/api/power/power_api_manager.h',
457         'browser/api/printer_provider_internal/printer_provider_internal_api.cc',
458         'browser/api/printer_provider_internal/printer_provider_internal_api.h',
459         'browser/api/runtime/runtime_api.cc',
460         'browser/api/runtime/runtime_api.h',
461         'browser/api/runtime/runtime_api_delegate.cc',
462         'browser/api/runtime/runtime_api_delegate.h',
463         'browser/api/serial/serial_api.cc',
464         'browser/api/serial/serial_api.h',
465         'browser/api/serial/serial_connection.cc',
466         'browser/api/serial/serial_connection.h',
467         'browser/api/serial/serial_event_dispatcher.cc',
468         'browser/api/serial/serial_event_dispatcher.h',
469         'browser/api/socket/socket.cc',
470         'browser/api/socket/socket.h',
471         'browser/api/socket/socket_api.cc',
472         'browser/api/socket/socket_api.h',
473         'browser/api/socket/tcp_socket.cc',
474         'browser/api/socket/tcp_socket.h',
475         'browser/api/socket/tls_socket.cc',
476         'browser/api/socket/tls_socket.h',
477         'browser/api/socket/udp_socket.cc',
478         'browser/api/socket/udp_socket.h',
479         'browser/api/sockets_tcp/sockets_tcp_api.cc',
480         'browser/api/sockets_tcp/sockets_tcp_api.h',
481         'browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc',
482         'browser/api/sockets_tcp/tcp_socket_event_dispatcher.h',
483         'browser/api/sockets_tcp_server/sockets_tcp_server_api.cc',
484         'browser/api/sockets_tcp_server/sockets_tcp_server_api.h',
485         'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc',
486         'browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.h',
487         'browser/api/sockets_udp/sockets_udp_api.cc',
488         'browser/api/sockets_udp/sockets_udp_api.h',
489         'browser/api/sockets_udp/udp_socket_event_dispatcher.cc',
490         'browser/api/sockets_udp/udp_socket_event_dispatcher.h',
491         'browser/api/storage/leveldb_settings_storage_factory.cc',
492         'browser/api/storage/leveldb_settings_storage_factory.h',
493         'browser/api/storage/local_value_store_cache.cc',
494         'browser/api/storage/local_value_store_cache.h',
495         'browser/api/storage/settings_namespace.cc',
496         'browser/api/storage/settings_namespace.h',
497         'browser/api/storage/settings_observer.h',
498         'browser/api/storage/settings_storage_factory.h',
499         'browser/api/storage/settings_storage_quota_enforcer.cc',
500         'browser/api/storage/settings_storage_quota_enforcer.h',
501         'browser/api/storage/storage_api.cc',
502         'browser/api/storage/storage_api.h',
503         'browser/api/storage/storage_frontend.cc',
504         'browser/api/storage/storage_frontend.h',
505         'browser/api/storage/value_store_cache.cc',
506         'browser/api/storage/value_store_cache.h',
507         'browser/api/storage/weak_unlimited_settings_storage.cc',
508         'browser/api/storage/weak_unlimited_settings_storage.h',
509         'browser/api/system_cpu/cpu_info_provider.cc',
510         'browser/api/system_cpu/cpu_info_provider.h',
511         'browser/api/system_cpu/cpu_info_provider_linux.cc',
512         'browser/api/system_cpu/cpu_info_provider_mac.cc',
513         'browser/api/system_cpu/cpu_info_provider_win.cc',
514         'browser/api/system_cpu/system_cpu_api.cc',
515         'browser/api/system_cpu/system_cpu_api.h',
516         'browser/api/system_display/display_info_provider.cc',
517         'browser/api/system_display/display_info_provider.h',
518         'browser/api/system_display/system_display_api.cc',
519         'browser/api/system_display/system_display_api.h',
520         'browser/api/system_info/system_info_api.cc',
521         'browser/api/system_info/system_info_api.h',
522         'browser/api/system_info/system_info_provider.cc',
523         'browser/api/system_info/system_info_provider.h',
524         'browser/api/system_memory/memory_info_provider.cc',
525         'browser/api/system_memory/memory_info_provider.h',
526         'browser/api/system_memory/system_memory_api.cc',
527         'browser/api/system_memory/system_memory_api.h',
528         'browser/api/system_network/system_network_api.cc',
529         'browser/api/system_network/system_network_api.h',
530         'browser/api/system_storage/storage_info_provider.cc',
531         'browser/api/system_storage/storage_info_provider.h',
532         'browser/api/system_storage/system_storage_api.cc',
533         'browser/api/system_storage/system_storage_api.h',
534         'browser/api/test/test_api.cc',
535         'browser/api/test/test_api.h',
536         'browser/api/usb/usb_api.cc',
537         'browser/api/usb/usb_api.h',
538         'browser/api/usb/usb_event_router.cc',
539         'browser/api/usb/usb_event_router.h',
540         'browser/api/usb/usb_device_resource.cc',
541         'browser/api/usb/usb_device_resource.h',
542         'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.cc',
543         'browser/api/virtual_keyboard_private/virtual_keyboard_private_api.h',
544         'browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h',
545         'browser/api/web_request/form_data_parser.cc',
546         'browser/api/web_request/form_data_parser.h',
547         'browser/api/web_request/upload_data_presenter.cc',
548         'browser/api/web_request/upload_data_presenter.h',
549         'browser/api/web_request/web_request_api.cc',
550         'browser/api/web_request/web_request_api.h',
551         'browser/api/web_request/web_request_api_constants.cc',
552         'browser/api/web_request/web_request_api_constants.h',
553         'browser/api/web_request/web_request_api_helpers.cc',
554         'browser/api/web_request/web_request_api_helpers.h',
555         'browser/api/web_request/web_request_event_router_delegate.cc',
556         'browser/api/web_request/web_request_event_router_delegate.h',
557         'browser/api/web_request/web_request_permissions.cc',
558         'browser/api/web_request/web_request_permissions.h',
559         'browser/api/web_request/web_request_time_tracker.cc',
560         'browser/api/web_request/web_request_time_tracker.h',
561         'browser/api/web_view/web_view_internal_api.cc',
562         'browser/api/web_view/web_view_internal_api.h',
563         'browser/api/webcam_private/webcam_private_api.h',
564         'browser/api/webcam_private/webcam_private_api_chromeos.cc',
565         'browser/api_activity_monitor.h',
566         'browser/app_sorting.h',
567         'browser/app_window/app_delegate.h',
568         'browser/app_window/app_web_contents_helper.cc',
569         'browser/app_window/app_web_contents_helper.h',
570         'browser/app_window/app_window.cc',
571         'browser/app_window/app_window.h',
572         'browser/app_window/app_window_contents.cc',
573         'browser/app_window/app_window_contents.h',
574         'browser/app_window/app_window_geometry_cache.cc',
575         'browser/app_window/app_window_geometry_cache.h',
576         'browser/app_window/app_window_registry.cc',
577         'browser/app_window/app_window_registry.h',
578         'browser/app_window/app_window_client.cc',
579         'browser/app_window/app_window_client.h',
580         'browser/app_window/native_app_window.h',
581         'browser/app_window/size_constraints.cc',
582         'browser/app_window/size_constraints.h',
583         'browser/blacklist_state.h',
584         'browser/blob_holder.cc',
585         'browser/blob_holder.h',
586         'browser/browser_context_keyed_api_factory.h',
587         'browser/browser_context_keyed_service_factories.cc',
588         'browser/browser_context_keyed_service_factories.h',
589         'browser/component_extension_resource_manager.h',
590         'browser/computed_hashes.cc',
591         'browser/computed_hashes.h',
592         'browser/content_hash_fetcher.cc',
593         'browser/content_hash_fetcher.h',
594         'browser/content_hash_reader.cc',
595         'browser/content_hash_reader.h',
596         'browser/content_hash_tree.cc',
597         'browser/content_hash_tree.h',
598         'browser/content_verifier.cc',
599         'browser/content_verifier.h',
600         'browser/content_verifier_delegate.h',
601         'browser/content_verifier_io_data.cc',
602         'browser/content_verifier_io_data.h',
603         'browser/content_verify_job.cc',
604         'browser/content_verify_job.h',
605         'browser/error_map.cc',
606         'browser/error_map.h',
607         'browser/event_listener_map.cc',
608         'browser/event_listener_map.h',
609         'browser/event_router.cc',
610         'browser/event_router.h',
611         'browser/extension_host.cc',
612         'browser/extension_host.h',
613         'browser/extension_host_delegate.h',
614         'browser/extension_error.cc',
615         'browser/extension_error.h',
616         'browser/extension_function.cc',
617         'browser/extension_function.h',
618         'browser/extension_function_dispatcher.cc',
619         'browser/extension_function_dispatcher.h',
620         'browser/extension_function_registry.cc',
621         'browser/extension_function_registry.h',
622         'browser/extension_function_util.cc',
623         'browser/extension_function_util.h',
624         'browser/extension_icon_image.cc',
625         'browser/extension_icon_image.h',
626         'browser/extension_message_filter.cc',
627         'browser/extension_message_filter.h',
628         'browser/extension_pref_store.cc',
629         'browser/extension_pref_store.h',
630         'browser/extension_pref_value_map.cc',
631         'browser/extension_pref_value_map_factory.cc',
632         'browser/extension_pref_value_map_factory.h',
633         'browser/extension_pref_value_map.h',
634         'browser/extension_prefs.cc',
635         'browser/extension_prefs.h',
636         'browser/extension_prefs_factory.cc',
637         'browser/extension_prefs_factory.h',
638         'browser/extension_prefs_observer.h',
639         'browser/extension_prefs_scope.h',
640         'browser/extension_protocols.cc',
641         'browser/extension_protocols.h',
642         'browser/extension_registry.cc',
643         'browser/extension_registry.h',
644         'browser/extension_registry_factory.cc',
645         'browser/extension_registry_factory.h',
646         'browser/extension_registry_observer.h',
647         'browser/extension_scoped_prefs.h',
648         'browser/extension_system.cc',
649         'browser/extension_system.h',
650         'browser/extension_system_provider.cc',
651         'browser/extension_system_provider.h',
652         'browser/extension_util.cc',
653         'browser/extension_util.h',
654         'browser/extension_web_contents_observer.cc',
655         'browser/extension_web_contents_observer.h',
656         'browser/extension_zoom_request_client.cc',
657         'browser/extension_zoom_request_client.h',
658         'browser/extensions_browser_client.cc',
659         'browser/extensions_browser_client.h',
660         'browser/external_provider_interface.h',
661         'browser/granted_file_entry.cc',
662         'browser/granted_file_entry.h',
663         'browser/guest_view/app_view/app_view_constants.cc',
664         'browser/guest_view/app_view/app_view_constants.h',
665         'browser/guest_view/app_view/app_view_guest.cc',
666         'browser/guest_view/app_view/app_view_guest.h',
667         'browser/guest_view/app_view/app_view_guest_delegate.cc',
668         'browser/guest_view/app_view/app_view_guest_delegate.h',
669         'browser/guest_view/extension_options/extension_options_constants.cc',
670         'browser/guest_view/extension_options/extension_options_constants.h',
671         'browser/guest_view/extension_options/extension_options_guest.cc',
672         'browser/guest_view/extension_options/extension_options_guest.h',
673         'browser/guest_view/extension_options/extension_options_guest_delegate.cc',
674         'browser/guest_view/extension_options/extension_options_guest_delegate.h',
675         'browser/guest_view/guest_view_base.cc',
676         'browser/guest_view/guest_view_base.h',
677         'browser/guest_view/guest_view_manager_factory.h',
678         'browser/guest_view/guest_view_manager.cc',
679         'browser/guest_view/guest_view_manager.h',
680         'browser/guest_view/guest_view.h',
681         'browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc',
682         'browser/guest_view/mime_handler_view/mime_handler_stream_manager.h',
683         'browser/guest_view/mime_handler_view/mime_handler_view_constants.cc',
684         'browser/guest_view/mime_handler_view/mime_handler_view_constants.h',
685         'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.cc',
686         'browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h',
687         'browser/guest_view/mime_handler_view/mime_handler_view_guest.cc',
688         'browser/guest_view/mime_handler_view/mime_handler_view_guest.h',
689         'browser/guest_view/surface_worker/surface_worker_constants.cc',
690         'browser/guest_view/surface_worker/surface_worker_constants.h',
691         'browser/guest_view/surface_worker/surface_worker_guest.cc',
692         'browser/guest_view/surface_worker/surface_worker_guest.h',
693         'browser/guest_view/web_view/javascript_dialog_helper.cc',
694         'browser/guest_view/web_view/javascript_dialog_helper.h',
695         'browser/guest_view/web_view/web_view_constants.cc',
696         'browser/guest_view/web_view/web_view_constants.h',
697         'browser/guest_view/web_view/web_view_find_helper.cc',
698         'browser/guest_view/web_view/web_view_find_helper.h',
699         'browser/guest_view/web_view/web_view_guest.cc',
700         'browser/guest_view/web_view/web_view_guest.h',
701         'browser/guest_view/web_view/web_view_guest_delegate.h',
702         'browser/guest_view/web_view/web_view_permission_types.h',
703         'browser/guest_view/web_view/web_view_permission_helper.cc',
704         'browser/guest_view/web_view/web_view_permission_helper.h',
705         'browser/guest_view/web_view/web_view_permission_helper_delegate.cc',
706         'browser/guest_view/web_view/web_view_permission_helper_delegate.h',
707         'browser/guest_view/web_view/web_view_renderer_state.cc',
708         'browser/guest_view/web_view/web_view_renderer_state.h',
709         'browser/image_loader.cc',
710         'browser/image_loader.h',
711         'browser/image_loader_factory.cc',
712         'browser/image_loader_factory.h',
713         'browser/info_map.cc',
714         'browser/info_map.h',
715         'browser/install/crx_installer_error.h',
716         'browser/install/extension_install_ui.cc',
717         'browser/install/extension_install_ui.h',
718         'browser/install_flag.h',
719         'browser/file_highlighter.cc',
720         'browser/file_highlighter.h',
721         'browser/file_reader.cc',
722         'browser/file_reader.h',
723         'browser/lazy_background_task_queue.cc',
724         'browser/lazy_background_task_queue.h',
725         'browser/management_policy.cc',
726         'browser/management_policy.h',
727         'browser/mojo/keep_alive_impl.cc',
728         'browser/mojo/keep_alive_impl.h',
729         'browser/mojo/service_registration_manager.cc',
730         'browser/mojo/service_registration_manager.h',
731         'browser/mojo/stash_backend.cc',
732         'browser/mojo/stash_backend.h',
733         'browser/notification_types.cc',
734         'browser/notification_types.h',
735         'browser/null_app_sorting.cc',
736         'browser/null_app_sorting.h',
737         'browser/pref_names.cc',
738         'browser/pref_names.h',
739         'browser/process_manager.cc',
740         'browser/process_manager.h',
741         'browser/process_manager_delegate.h',
742         'browser/process_manager_factory.cc',
743         'browser/process_manager_factory.h',
744         'browser/process_manager_observer.h',
745         'browser/process_map.cc',
746         'browser/process_map.h',
747         'browser/process_map_factory.cc',
748         'browser/process_map_factory.h',
749         'browser/quota_service.cc',
750         'browser/quota_service.h',
751         'browser/renderer_startup_helper.cc',
752         'browser/renderer_startup_helper.h',
753         'browser/runtime_data.cc',
754         'browser/runtime_data.h',
755         'browser/script_execution_observer.h',
756         'browser/script_executor.cc',
757         'browser/script_executor.h',
758         'browser/state_store.cc',
759         'browser/state_store.h',
760         'browser/suggest_permission_util.cc',
761         'browser/suggest_permission_util.h',
762         'browser/uninstall_reason.h',
763         'browser/update_observer.h',
764         'browser/updater/extension_cache.h',
765         'browser/updater/extension_downloader.cc',
766         'browser/updater/extension_downloader.h',
767         'browser/updater/extension_downloader_delegate.cc',
768         'browser/updater/extension_downloader_delegate.h',
769         'browser/updater/manifest_fetch_data.cc',
770         'browser/updater/manifest_fetch_data.h',
771         'browser/updater/null_extension_cache.cc',
772         'browser/updater/null_extension_cache.h',
773         'browser/updater/request_queue.h',
774         'browser/updater/request_queue_impl.h',
775         'browser/updater/safe_manifest_parser.cc',
776         'browser/updater/safe_manifest_parser.h',
777         'browser/updater/update_service.cc',
778         'browser/updater/update_service.h',
779         'browser/updater/update_service_factory.cc',
780         'browser/updater/update_service_factory.h',
781         'browser/url_request_util.cc',
782         'browser/url_request_util.h',
783         'browser/value_store/leveldb_value_store.cc',
784         'browser/value_store/leveldb_value_store.h',
785         'browser/value_store/testing_value_store.cc',
786         'browser/value_store/testing_value_store.h',
787         'browser/value_store/value_store.cc',
788         'browser/value_store/value_store.h',
789         'browser/value_store/value_store_change.cc',
790         'browser/value_store/value_store_change.h',
791         'browser/value_store/value_store_frontend.cc',
792         'browser/value_store/value_store_frontend.h',
793         'browser/value_store/value_store_util.cc',
794         'browser/value_store/value_store_util.h',
795         'browser/verified_contents.cc',
796         'browser/verified_contents.h',
797         'browser/view_type_utils.cc',
798         'browser/view_type_utils.h',
799         'browser/warning_service.cc',
800         'browser/warning_service.h',
801         'browser/warning_service_factory.cc',
802         'browser/warning_service_factory.h',
803         'browser/warning_set.cc',
804         'browser/warning_set.h',
805       ],
806       'conditions': [
807         # This condition exists only because the extensions_common_constants
808         # target is always built and thus this file gets evaluated by GYP.
809         # This does not need to be replicated into extensions/browser/BUILD.gn.
810         ['OS == "ios" or OS == "android"', {
811           'dependencies!': [
812             '../components/components.gyp:storage_monitor',
813           ],
814         }],
815         ['chromeos == 1', {
816           'dependencies': [
817             '../chromeos/chromeos.gyp:chromeos',
818           ],
819           'sources': [
820             'browser/api/vpn_provider/vpn_provider_api.cc',
821             'browser/api/vpn_provider/vpn_provider_api.h',
822             'browser/api/vpn_provider/vpn_service.cc',
823             'browser/api/vpn_provider/vpn_service.h',
824             'browser/api/vpn_provider/vpn_service_factory.h'
825           ]
826         }],
827         ['use_openssl==1', {
828           'sources': [
829             'browser/api/cast_channel/cast_auth_util_openssl.cc',
830           ],
831           'dependencies': [
832             '../third_party/boringssl/boringssl.gyp:boringssl',
833           ],
834         }, {
835           'sources': [
836             # cast_auth_util_nss.cc uses NSS functions.
837             'browser/api/cast_channel/cast_auth_util_nss.cc',
838           ],
839           'conditions': [
840             ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
841               'dependencies': [
842                 '../build/linux/system.gyp:ssl',
843               ],
844             }],
845             ['OS == "mac" or OS == "ios" or OS == "win"', {
846               'dependencies': [
847                 '../third_party/nss/nss.gyp:nspr',
848                 '../third_party/nss/nss.gyp:nss',
849               ],
850             }],
851           ],
852         }],
853         ['OS != "linux"', {
854           'sources': [
855             'browser/api/audio/audio_service.cc',
856           ]
857         }],
858       ],
859       # Disable c4267 warnings until we fix size_t to int truncations.
860       'msvs_disabled_warnings': [ 4267, ],
861     },
862     {
863       # GN version: //extensions/renderer
864       'target_name': 'extensions_renderer',
865       'type': 'static_library',
866       'dependencies': [
867         'extensions_resources.gyp:extensions_resources',
868         '../content/content.gyp:content_resources',
869         '../gin/gin.gyp:gin',
870         '../mojo/mojo_public.gyp:mojo_js_bindings',
871         '../third_party/WebKit/public/blink.gyp:blink',
872       ],
873       'include_dirs': [
874         '..',
875       ],
876       'sources': [
877         # Note: sources list duplicated in GN build.
878         'renderer/activity_log_converter_strategy.cc',
879         'renderer/activity_log_converter_strategy.h',
880         'renderer/api/automation/automation_api_helper.cc',
881         'renderer/api/automation/automation_api_helper.h',
882         'renderer/api_activity_logger.cc',
883         'renderer/api_activity_logger.h',
884         'renderer/api_definitions_natives.cc',
885         'renderer/api_definitions_natives.h',
886         'renderer/app_runtime_custom_bindings.cc',
887         'renderer/app_runtime_custom_bindings.h',
888         'renderer/app_window_custom_bindings.cc',
889         'renderer/app_window_custom_bindings.h',
890         'renderer/binding_generating_native_handler.cc',
891         'renderer/binding_generating_native_handler.h',
892         'renderer/blob_native_handler.cc',
893         'renderer/blob_native_handler.h',
894         'renderer/console.cc',
895         'renderer/console.h',
896         'renderer/content_watcher.cc',
897         'renderer/content_watcher.h',
898         'renderer/context_menus_custom_bindings.cc',
899         'renderer/context_menus_custom_bindings.h',
900         'renderer/css_native_handler.cc',
901         'renderer/css_native_handler.h',
902         'renderer/default_dispatcher_delegate.cc',
903         'renderer/default_dispatcher_delegate.h',
904         'renderer/dispatcher.cc',
905         'renderer/dispatcher.h',
906         'renderer/dispatcher_delegate.h',
907         'renderer/document_custom_bindings.cc',
908         'renderer/document_custom_bindings.h',
909         'renderer/dom_activity_logger.cc',
910         'renderer/dom_activity_logger.h',
911         'renderer/event_bindings.cc',
912         'renderer/event_bindings.h',
913         'renderer/extension_groups.h',
914         'renderer/extension_helper.cc',
915         'renderer/extension_helper.h',
916         'renderer/extensions_render_frame_observer.cc',
917         'renderer/extensions_render_frame_observer.h',
918         'renderer/extensions_renderer_client.cc',
919         'renderer/extensions_renderer_client.h',
920         'renderer/file_system_natives.cc',
921         'renderer/file_system_natives.h',
922         'renderer/guest_view/extensions_guest_view_container.cc',
923         'renderer/guest_view/extensions_guest_view_container.h',
924         'renderer/guest_view/guest_view_container.cc',
925         'renderer/guest_view/guest_view_container.h',
926         'renderer/guest_view/guest_view_internal_custom_bindings.cc',
927         'renderer/guest_view/guest_view_internal_custom_bindings.h',
928         'renderer/guest_view/mime_handler_view/mime_handler_view_container.cc',
929         'renderer/guest_view/mime_handler_view/mime_handler_view_container.h',
930         'renderer/i18n_custom_bindings.cc',
931         'renderer/i18n_custom_bindings.h',
932         'renderer/id_generator_custom_bindings.cc',
933         'renderer/id_generator_custom_bindings.h',
934         'renderer/lazy_background_page_native_handler.cc',
935         'renderer/lazy_background_page_native_handler.h',
936         'renderer/logging_native_handler.cc',
937         'renderer/logging_native_handler.h',
938         'renderer/messaging_bindings.cc',
939         'renderer/messaging_bindings.h',
940         'renderer/module_system.cc',
941         'renderer/module_system.h',
942         'renderer/native_handler.cc',
943         'renderer/native_handler.h',
944         'renderer/object_backed_native_handler.cc',
945         'renderer/object_backed_native_handler.h',
946         'renderer/print_native_handler.cc',
947         'renderer/print_native_handler.h',
948         'renderer/process_info_native_handler.cc',
949         'renderer/process_info_native_handler.h',
950         'renderer/programmatic_script_injector.cc',
951         'renderer/programmatic_script_injector.h',
952         'renderer/render_view_observer_natives.cc',
953         'renderer/request_sender.cc',
954         'renderer/request_sender.h',
955         'renderer/resource_bundle_source_map.cc',
956         'renderer/resource_bundle_source_map.h',
957         'renderer/resources/app_runtime_custom_bindings.js',
958         'renderer/resources/app_window_custom_bindings.js',
959         'renderer/resources/binding.js',
960         'renderer/resources/context_menus_custom_bindings.js',
961         'renderer/resources/declarative_webrequest_custom_bindings.js',
962         'renderer/resources/entry_id_manager.js',
963         'renderer/resources/event.js',
964         'renderer/resources/extension.css',
965         'renderer/resources/extension_custom_bindings.js',
966         'renderer/resources/extension_fonts.css',
967         'renderer/resources/greasemonkey_api.js',
968         'renderer/resources/i18n_custom_bindings.js',
969         'renderer/resources/image_util.js',
970         'renderer/resources/json_schema.js',
971         'renderer/resources/last_error.js',
972         'renderer/resources/messaging.js',
973         'renderer/resources/messaging_utils.js',
974         'renderer/resources/permissions_custom_bindings.js',
975         'renderer/resources/platform_app.css',
976         'renderer/resources/platform_app.js',
977         'renderer/resources/runtime_custom_bindings.js',
978         'renderer/resources/schema_utils.js',
979         'renderer/resources/send_request.js',
980         'renderer/resources/set_icon.js',
981         'renderer/resources/storage_area.js',
982         'renderer/resources/test_custom_bindings.js',
983         'renderer/resources/uncaught_exception_handler.js',
984         'renderer/resources/unload_event.js',
985         'renderer/resources/utils.js',
986         'renderer/resources/extensions/surface_worker.js',
987         'renderer/resources/extensions/web_view.js',
988         'renderer/resources/extensions/web_view_events.js',
989         'renderer/resources/extensions/web_view_experimental.js',
990         'renderer/resources/web_request_custom_bindings.js',
991         'renderer/resources/web_request_internal_custom_bindings.js',
992         'renderer/runtime_custom_bindings.cc',
993         'renderer/runtime_custom_bindings.h',
994         'renderer/safe_builtins.cc',
995         'renderer/safe_builtins.h',
996         'renderer/scoped_persistent.h',
997         'renderer/script_context.cc',
998         'renderer/script_context.h',
999         'renderer/script_context_set.cc',
1000         'renderer/script_context_set.h',
1001         'renderer/script_injection.cc',
1002         'renderer/script_injection.h',
1003         'renderer/script_injection_manager.cc',
1004         'renderer/script_injection_manager.h',
1005         'renderer/script_injector.h',
1006         'renderer/scripts_run_info.cc',
1007         'renderer/scripts_run_info.h',
1008         'renderer/send_request_natives.cc',
1009         'renderer/send_request_natives.h',
1010         'renderer/set_icon_natives.cc',
1011         'renderer/set_icon_natives.h',
1012         'renderer/static_v8_external_one_byte_string_resource.cc',
1013         'renderer/static_v8_external_one_byte_string_resource.h',
1014         'renderer/test_features_native_handler.cc',
1015         'renderer/test_features_native_handler.h',
1016         'renderer/user_gestures_native_handler.cc',
1017         'renderer/user_gestures_native_handler.h',
1018         'renderer/user_script_injector.cc',
1019         'renderer/user_script_injector.h',
1020         'renderer/user_script_set.cc',
1021         'renderer/user_script_set.h',
1022         'renderer/user_script_set_manager.cc',
1023         'renderer/user_script_set_manager.h',
1024         'renderer/utils_native_handler.cc',
1025         'renderer/utils_native_handler.h',
1026         'renderer/v8_context_native_handler.cc',
1027         'renderer/v8_context_native_handler.h',
1028         'renderer/v8_schema_registry.cc',
1029         'renderer/v8_schema_registry.h',
1030       ],
1031       # Disable c4267 warnings until we fix size_t to int truncations.
1032       'msvs_disabled_warnings': [ 4267, ],
1033     },
1034     {
1035       # GN version: //extensions/utility
1036       'target_name': 'extensions_utility',
1037       'type': 'static_library',
1038       'dependencies': [
1039         '../content/content.gyp:content_utility',
1040         '../third_party/zlib/google/zip.gyp:zip',
1041         'extensions_common',
1042       ],
1043       'include_dirs': [
1044         '..',
1045       ],
1046       'sources': [
1047         'utility/unpacker.cc',
1048         'utility/unpacker.h',
1049         'utility/utility_handler.cc',
1050         'utility/utility_handler.h',
1051       ],
1052     },
1053     {
1054       # GN version: //extensions:test_support
1055       'target_name': 'extensions_test_support',
1056       'type': 'static_library',
1057       'dependencies': [
1058         '../base/base.gyp:base',
1059         '../base/base.gyp:base_prefs_test_support',
1060         '../components/components.gyp:user_prefs',
1061         '../content/content.gyp:content_browser',
1062         '../content/content.gyp:content_common',
1063         '../content/content_shell_and_tests.gyp:test_support_content',
1064         '../net/net.gyp:net_test_support',
1065         '../testing/gtest.gyp:gtest',
1066         'browser/api/api_registration.gyp:extensions_api_registration',
1067         'common/api/api.gyp:extensions_api',
1068         'extensions_browser',
1069         'extensions_common',
1070         'extensions_resources.gyp:extensions_resources',
1071       ],
1072       'include_dirs': [
1073         '..',
1074         '<(SHARED_INTERMEDIATE_DIR)',
1075       ],
1076       'sources': [
1077         # Note: sources list duplicated in GN build.
1078         'browser/api/dns/mock_host_resolver_creator.cc',
1079         'browser/api/dns/mock_host_resolver_creator.h',
1080         'browser/api/storage/settings_test_util.cc',
1081         'browser/api/storage/settings_test_util.h',
1082         'browser/api_test_utils.cc',
1083         'browser/api_test_utils.h',
1084         'browser/api_unittest.cc',
1085         'browser/api_unittest.h',
1086         'browser/app_window/test_app_window_contents.cc',
1087         'browser/app_window/test_app_window_contents.h',
1088         'browser/extension_error_test_util.cc',
1089         'browser/extension_error_test_util.h',
1090         'browser/extensions_test.cc',
1091         'browser/extensions_test.h',
1092         'browser/guest_view/test_guest_view_manager.cc',
1093         'browser/guest_view/test_guest_view_manager.h',
1094         'browser/mock_extension_system.cc',
1095         'browser/mock_extension_system.h',
1096         'browser/test_extension_registry_observer.cc',
1097         'browser/test_extension_registry_observer.h',
1098         'browser/test_extensions_browser_client.cc',
1099         'browser/test_extensions_browser_client.h',
1100         'browser/test_management_policy.cc',
1101         'browser/test_management_policy.h',
1102         'browser/test_runtime_api_delegate.cc',
1103         'browser/test_runtime_api_delegate.h',
1104         'common/extension_builder.cc',
1105         'common/extension_builder.h',
1106         'common/manifest_test.cc',
1107         'common/manifest_test.h',
1108         'common/test_util.cc',
1109         'common/test_util.h',
1110         'common/value_builder.cc',
1111         'common/value_builder.h',
1112         'renderer/test_extensions_renderer_client.cc',
1113         'renderer/test_extensions_renderer_client.h',
1114         'test/extension_test_message_listener.cc',
1115         'test/extension_test_message_listener.h',
1116         'test/result_catcher.cc',
1117         'test/result_catcher.h',
1118         'test/test_extensions_client.cc',
1119         'test/test_extensions_client.h',
1120         'test/test_permission_message_provider.cc',
1121         'test/test_permission_message_provider.h',
1122         'test/test_service_registration_manager.cc',
1123         'test/test_service_registration_manager.h',
1124       ],
1125       # Disable c4267 warnings until we fix size_t to int truncations.
1126       'msvs_disabled_warnings': [ 4267, ],
1127     },
1128     {
1129       # The pak file generated by this target is intended to be shared by
1130       # both shell and test targets. It was combined because it might help a
1131       # little bit with build time by avoiding a repack step (one instead of
1132       # two).
1133       'target_name': 'extensions_shell_and_test_pak',
1134       'type': 'none',
1135       'dependencies': [
1136         '../content/browser/devtools/devtools_resources.gyp:devtools_resources',
1137         '../content/content.gyp:content_resources',
1138         '../content/content_shell_and_tests.gyp:content_shell_resources',
1139         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
1140         '../ui/resources/ui_resources.gyp:ui_resources',
1141         '../ui/strings/ui_strings.gyp:ui_strings',
1142         'extensions_resources.gyp:extensions_resources',
1143         'extensions_strings.gyp:extensions_strings',
1144         'shell/app_shell_resources.gyp:app_shell_resources',
1145       ],
1146       'actions': [
1147         {
1148           'action_name': 'repack_extensions_shell_and_test_pak',
1149           'variables': {
1150             'pak_inputs': [
1151               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
1152               '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
1153               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
1154               '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak',
1155               '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_browser_resources_100_percent.pak',
1156               '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_renderer_resources.pak',
1157               '<(SHARED_INTERMEDIATE_DIR)/extensions/extensions_resources.pak',
1158               '<(SHARED_INTERMEDIATE_DIR)/extensions/shell/app_shell_resources.pak',
1159               '<(SHARED_INTERMEDIATE_DIR)/extensions/strings/extensions_strings_en-US.pak',
1160               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
1161               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
1162               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
1163               '<(SHARED_INTERMEDIATE_DIR)/blink/devtools_resources.pak',
1164             ],
1165             'pak_output': '<(PRODUCT_DIR)/extensions_shell_and_test.pak',
1166           },
1167           'includes': [ '../build/repack_action.gypi' ],
1168         },
1169       ],
1170     },
1171     {
1172       'target_name': 'extensions_unittests',
1173       'type': 'executable',
1174       'dependencies': [
1175         '../base/base.gyp:base',
1176         '../base/base.gyp:test_support_base',
1177         '../components/components.gyp:keyed_service_content',
1178         '../components/components.gyp:user_prefs',
1179         '../content/content_shell_and_tests.gyp:test_support_content',
1180         '../device/bluetooth/bluetooth.gyp:device_bluetooth_mocks',
1181         '../device/serial/serial.gyp:device_serial',
1182         '../device/serial/serial.gyp:device_serial_test_util',
1183         '../mojo/mojo_base.gyp:mojo_environment_chromium',
1184         '../mojo/mojo_edk.gyp:mojo_js_lib',
1185         '../mojo/mojo_edk.gyp:mojo_system_impl',
1186         '../mojo/mojo_public.gyp:mojo_cpp_bindings',
1187         '../testing/gmock.gyp:gmock',
1188         '../testing/gtest.gyp:gtest',
1189         '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
1190         'common/api/api.gyp:cast_channel_proto',
1191         'extensions_common',
1192         'extensions_renderer',
1193         'extensions_resources.gyp:extensions_resources',
1194         'extensions_shell_and_test_pak',
1195         'extensions_strings.gyp:extensions_strings',
1196         'extensions_test_support',
1197         'extensions_utility',
1198       ],
1199       # Needed for third_party libraries like leveldb.
1200       'include_dirs': [
1201         '..',
1202       ],
1203       'sources': [
1204         'browser/api/api_resource_manager_unittest.cc',
1205         'browser/api/bluetooth/bluetooth_event_router_unittest.cc',
1206         'browser/api/cast_channel/cast_auth_ica_unittest.cc',
1207         'browser/api/cast_channel/cast_auth_util_unittest.cc',
1208         'browser/api/cast_channel/cast_channel_api_unittest.cc',
1209         'browser/api/cast_channel/cast_framer_unittest.cc',
1210         'browser/api/cast_channel/cast_socket_unittest.cc',
1211         'browser/api/cast_channel/cast_transport_unittest.cc',
1212         'browser/api/cast_channel/keep_alive_delegate_unittest.cc',
1213         'browser/api/cast_channel/logger_unittest.cc',
1214         'browser/api/cast_channel/test_util.cc',
1215         'browser/api/cast_channel/test_util.h',
1216         'browser/api/declarative/declarative_rule_unittest.cc',
1217         'browser/api/declarative/deduping_factory_unittest.cc',
1218         'browser/api/declarative/rules_registry_unittest.cc',
1219         'browser/api/declarative_webrequest/webrequest_condition_unittest.cc',
1220         'browser/api/declarative_webrequest/webrequest_condition_attribute_unittest.cc',
1221         'browser/api/power/power_api_unittest.cc',
1222         'browser/api/sockets_tcp/sockets_tcp_api_unittest.cc',
1223         'browser/api/storage/settings_quota_unittest.cc',
1224         'browser/api/storage/storage_api_unittest.cc',
1225         'browser/api/storage/storage_frontend_unittest.cc',
1226         'browser/api/web_request/form_data_parser_unittest.cc',
1227         'browser/api/web_request/upload_data_presenter_unittest.cc',
1228         'browser/api/web_request/web_request_time_tracker_unittest.cc',
1229         'browser/app_window/app_window_geometry_cache_unittest.cc',
1230         'browser/computed_hashes_unittest.cc',
1231         'browser/content_hash_tree_unittest.cc',
1232         'browser/event_listener_map_unittest.cc',
1233         'browser/event_router_unittest.cc',
1234         'browser/error_map_unittest.cc',
1235         'browser/extension_icon_image_unittest.cc',
1236         'browser/extension_pref_value_map_unittest.cc',
1237         'browser/extension_registry_unittest.cc',
1238         'browser/file_highlighter_unittest.cc',
1239         'browser/file_reader_unittest.cc',
1240         'browser/guest_view/guest_view_manager_unittest.cc',
1241         'browser/image_loader_unittest.cc',
1242         'browser/info_map_unittest.cc',
1243         'browser/lazy_background_task_queue_unittest.cc',
1244         'browser/management_policy_unittest.cc',
1245         'browser/mojo/keep_alive_impl_unittest.cc',
1246         'browser/mojo/stash_backend_unittest.cc',
1247         'browser/process_manager_unittest.cc',
1248         'browser/process_map_unittest.cc',
1249         'browser/quota_service_unittest.cc',
1250         'browser/runtime_data_unittest.cc',
1251         'browser/value_store/leveldb_value_store_unittest.cc',
1252         'browser/value_store/testing_value_store_unittest.cc',
1253         'browser/value_store/value_store_change_unittest.cc',
1254         'browser/value_store/value_store_frontend_unittest.cc',
1255         'browser/value_store/value_store_unittest.cc',
1256         'browser/value_store/value_store_unittest.h',
1257         'browser/verified_contents_unittest.cc',
1258         'browser/warning_service_unittest.cc',
1259         'common/api/sockets/sockets_manifest_permission_unittest.cc',
1260         'common/csp_validator_unittest.cc',
1261         'common/event_filter_unittest.cc',
1262         'common/extension_l10n_util_unittest.cc',
1263         'common/extension_resource_unittest.cc',
1264         'common/extension_set_unittest.cc',
1265         'common/features/base_feature_provider_unittest.cc',
1266         'common/features/complex_feature_unittest.cc',
1267         'common/features/simple_feature_unittest.cc',
1268         'common/file_util_unittest.cc',
1269         'common/image_util_unittest.cc',
1270         'common/manifest_handler_unittest.cc',
1271         'common/manifest_handlers/content_capabilities_manifest_unittest.cc',
1272         'common/manifest_handlers/default_locale_manifest_unittest.cc',
1273         'common/manifest_handlers/externally_connectable_unittest.cc',
1274         'common/manifest_handlers/file_handler_manifest_unittest.cc',
1275         'common/manifest_handlers/oauth2_manifest_unittest.cc',
1276         'common/manifest_handlers/shared_module_manifest_unittest.cc',
1277         'common/message_bundle_unittest.cc',
1278         'common/one_shot_event_unittest.cc',
1279         'common/permissions/api_permission_set_unittest.cc',
1280         'common/permissions/manifest_permission_set_unittest.cc',
1281         'common/permissions/socket_permission_unittest.cc',
1282         'common/permissions/usb_device_permission_unittest.cc',
1283         'common/stack_frame_unittest.cc',
1284         'common/url_pattern_set_unittest.cc',
1285         'common/url_pattern_unittest.cc',
1286         'common/user_script_unittest.cc',
1287         'renderer/activity_log_converter_strategy_unittest.cc',
1288         'renderer/api/mojo_private/mojo_private_unittest.cc',
1289         'renderer/api/serial/data_receiver_unittest.cc',
1290         'renderer/api/serial/data_sender_unittest.cc',
1291         'renderer/api/serial/serial_api_unittest.cc',
1292         'renderer/api_test_base.cc',
1293         'renderer/api_test_base.h',
1294         'renderer/api_test_base_unittest.cc',
1295         'renderer/event_unittest.cc',
1296         'renderer/json_schema_unittest.cc',
1297         'renderer/mojo/keep_alive_client_unittest.cc',
1298         'renderer/messaging_utils_unittest.cc',
1299         'renderer/module_system_test.cc',
1300         'renderer/module_system_test.h',
1301         'renderer/module_system_unittest.cc',
1302         'renderer/safe_builtins_unittest.cc',
1303         'renderer/script_context_set_unittest.cc',
1304         'renderer/script_context_unittest.cc',
1305         'renderer/utils_unittest.cc',
1306         'test/extensions_unittests_main.cc',
1307       ],
1308       # Disable c4267 warnings until we fix size_t to int truncations.
1309       'msvs_disabled_warnings': [ 4267, ],
1310       'conditions': [
1311         ['OS=="win" and win_use_allocator_shim==1', {
1312           'dependencies': [
1313             '../base/allocator/allocator.gyp:allocator',
1314           ],
1315         }],
1316       ],
1317     },
1318   ]