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