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