HttpServerProperties - Don't persist if ClearAlternativeService is
[chromium-blink-merge.git] / content / content_common.gypi
blob10a32133153d25649849134cfb068b974373dd8c
1 # Copyright (c) 2012 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   'dependencies': [
7     '../base/base.gyp:base',
8     '../components/tracing.gyp:tracing',
9     '../gpu/command_buffer/command_buffer.gyp:gles2_utils',
10     '../net/net.gyp:net',
11     '../skia/skia.gyp:skia',
12     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
13     '../third_party/icu/icu.gyp:icuuc',
14     '../ui/accessibility/accessibility.gyp:accessibility',
15     '../ui/base/ime/ui_base_ime.gyp:ui_base_ime',
16     '../ui/base/ui_base.gyp:ui_base',
17     '../ui/events/ipc/events_ipc.gyp:events_ipc',
18     '../ui/gfx/gfx.gyp:gfx',
19     '../ui/gfx/gfx.gyp:gfx_geometry',
20     '../ui/gfx/ipc/gfx_ipc.gyp:gfx_ipc',
21     '../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
22     '../url/url.gyp:url_lib',
23   ],
24   'include_dirs': [
25     '..',
26   ],
27   'export_dependent_settings': [
28     '../base/base.gyp:base',
29     # The public content API headers directly include Blink API headers, so we
30     # have to export the blink header settings so that relative paths in these
31     # headers resolve correctly.
32     '../third_party/WebKit/public/blink_headers.gyp:blink_headers',
33   ],
34   'variables': {
35     'use_v4lplugin%': 0,
36     'use_v4l2_codec%': 0,
37     'public_common_sources': [
38       'public/common/appcache_info.h',
39       'public/common/bindings_policy.h',
40       'public/common/child_process_host.h',
41       'public/common/child_process_host_delegate.cc',
42       'public/common/child_process_host_delegate.h',
43       'public/common/child_process_sandbox_support_linux.h',
44       'public/common/color_suggestion.cc',
45       'public/common/color_suggestion.h',
46       'public/common/common_param_traits.cc',
47       'public/common/common_param_traits.h',
48       'public/common/common_param_traits_macros.h',
49       'public/common/console_message_level.h',
50       'public/common/content_client.cc',
51       'public/common/content_client.h',
52       'public/common/content_constants.cc',
53       'public/common/content_constants.h',
54       'public/common/content_descriptors.h',
55       'public/common/content_ipc_logging.h',
56       'public/common/content_paths.h',
57       'public/common/content_switches.cc',
58       'public/common/content_switches.h',
59       'public/common/context_menu_params.cc',
60       'public/common/context_menu_params.h',
61       'public/common/drop_data.cc',
62       'public/common/drop_data.h',
63       'public/common/dwrite_font_platform_win.h',
64       'public/common/favicon_url.cc',
65       'public/common/favicon_url.h',
66       'public/common/file_chooser_file_info.cc',
67       'public/common/file_chooser_file_info.h',
68       'public/common/file_chooser_params.cc',
69       'public/common/file_chooser_params.h',
70       'public/common/frame_navigate_params.cc',
71       'public/common/frame_navigate_params.h',
72       'public/common/geoposition.cc',
73       'public/common/geoposition.h',
74       'public/common/gpu_memory_stats.cc',
75       'public/common/gpu_memory_stats.h',
76       'public/common/injection_test_mac.h',
77       'public/common/injection_test_win.h',
78       'public/common/javascript_message_type.h',
79       'public/common/main_function_params.h',
80       'public/common/manifest.cc',
81       'public/common/manifest.h',
82       'public/common/media_stream_request.cc',
83       'public/common/media_stream_request.h',
84       'public/common/menu_item.cc',
85       'public/common/menu_item.h',
86       'public/common/message_port_types.cc',
87       'public/common/message_port_types.h',
88       'public/common/mojo_channel_switches.cc',
89       'public/common/mojo_channel_switches.h',
90       'public/common/navigator_connect_client.cc',
91       'public/common/navigator_connect_client.h',
92       'public/common/origin_util.h',
93       'public/common/page_state.cc',
94       'public/common/page_state.h',
95       'public/common/page_type.h',
96       'public/common/page_zoom.h',
97       'public/common/pepper_plugin_info.cc',
98       'public/common/pepper_plugin_info.h',
99       'public/common/persistent_notification_status.h',
100       'public/common/platform_notification_data.cc',
101       'public/common/platform_notification_data.h',
102       'public/common/presentation_constants.cc',
103       'public/common/presentation_constants.h',
104       'public/common/process_type.h',
105       'public/common/push_messaging_status.cc',
106       'public/common/push_messaging_status.h',
107       'public/common/referrer.cc',
108       'public/common/referrer.h',
109       'public/common/renderer_preferences.cc',
110       'public/common/renderer_preferences.h',
111       'public/common/request_context_frame_type.h',
112       'public/common/request_context_type.h',
113       'public/common/resource_devtools_info.cc',
114       'public/common/resource_devtools_info.h',
115       'public/common/resource_response.cc',
116       'public/common/resource_response.h',
117       'public/common/resource_response_info.cc',
118       'public/common/resource_response_info.h',
119       'public/common/resource_type.cc',
120       'public/common/resource_type.h',
121       'public/common/result_codes.h',
122       'public/common/sandbox_init.h',
123       'public/common/sandbox_linux.h',
124       'public/common/sandbox_type_mac.h',
125       'public/common/sandboxed_process_launcher_delegate.cc',
126       'public/common/sandboxed_process_launcher_delegate.h',
127       'public/common/security_style.h',
128       'public/common/send_zygote_child_ping_linux.h',
129       'public/common/service_registry.h',
130       'public/common/signed_certificate_timestamp_id_and_status.cc',
131       'public/common/signed_certificate_timestamp_id_and_status.h',
132       'public/common/speech_recognition_error.h',
133       'public/common/speech_recognition_grammar.h',
134       'public/common/speech_recognition_result.cc',
135       'public/common/speech_recognition_result.h',
136       'public/common/ssl_status.cc',
137       'public/common/ssl_status.h',
138       'public/common/stop_find_action.h',
139       'public/common/storage_quota_params.h',
140       'public/common/three_d_api_types.h',
141       'public/common/top_controls_state.h',
142       'public/common/transition_element.h',
143       'public/common/url_constants.cc',
144       'public/common/url_constants.h',
145       'public/common/url_fetcher.h',
146       'public/common/url_utils.cc',
147       'public/common/url_utils.h',
148       'public/common/user_agent.h',
149       'public/common/web_preferences.cc',
150       'public/common/web_preferences.h',
151       'public/common/webplugininfo.cc',
152       'public/common/webplugininfo.h',
153       'public/common/window_container_type.cc',
154       'public/common/window_container_type.h',
155       'public/common/zygote_fork_delegate_linux.h',
156     ],
157     'private_common_sources': [
158       'common/accessibility_messages.h',
159       'common/all_messages.h',
160       'common/android/address_parser.cc',
161       'common/android/address_parser.h',
162       'common/android/address_parser_internal.cc',
163       'common/android/address_parser_internal.h',
164       'common/android/common_jni_registrar.cc',
165       'common/android/common_jni_registrar.h',
166       'common/android/gin_java_bridge_errors.cc',
167       'common/android/gin_java_bridge_errors.h',
168       'common/android/gin_java_bridge_value.cc',
169       'common/android/gin_java_bridge_value.h',
170       'common/android/hash_set.cc',
171       'common/android/hash_set.h',
172       'common/android/surface_texture_manager.cc',
173       'common/android/surface_texture_manager.h',
174       'common/android/surface_texture_peer.cc',
175       'common/android/surface_texture_peer.h',
176       'common/appcache_interfaces.cc',
177       'common/appcache_interfaces.h',
178       'common/appcache_messages.h',
179       'common/bluetooth/bluetooth_device.cc',
180       'common/bluetooth/bluetooth_device.h',
181       'common/bluetooth/bluetooth_error.h',
182       'common/bluetooth/bluetooth_messages.h',
183       'common/browser_plugin/browser_plugin_constants.cc',
184       'common/browser_plugin/browser_plugin_constants.h',
185       'common/browser_plugin/browser_plugin_messages.h',
186       'common/cache_storage/cache_storage_messages.h',
187       'common/cache_storage/cache_storage_types.cc',
188       'common/cache_storage/cache_storage_types.h',
189       'common/cc_messages.cc',
190       'common/cc_messages.h',
191       'common/child_process_host_impl.cc',
192       'common/child_process_host_impl.h',
193       'common/child_process_messages.h',
194       'common/child_process_sandbox_support_impl_linux.cc',
195       'common/child_process_sandbox_support_impl_linux.h',
196       'common/child_process_sandbox_support_impl_shm_linux.cc',
197       'common/clipboard_format.h',
198       'common/clipboard_messages.h',
199       'common/content_constants_internal.cc',
200       'common/content_constants_internal.h',
201       'common/content_export.h',
202       'common/content_ipc_logging.cc',
203       'common/content_message_generator.cc',
204       'common/content_message_generator.h',
205       'common/content_param_traits.cc',
206       'common/content_param_traits.h',
207       'common/content_param_traits_macros.h',
208       'common/content_paths.cc',
209       'common/content_switches_internal.cc',
210       'common/content_switches_internal.h',
211       'common/cursors/webcursor.cc',
212       'common/cursors/webcursor.h',
213       'common/cursors/webcursor_android.cc',
214       'common/cursors/webcursor_aura.cc',
215       'common/cursors/webcursor_aurawin.cc',
216       'common/cursors/webcursor_aurax11.cc',
217       'common/cursors/webcursor_mac.mm',
218       'common/cursors/webcursor_ozone.cc',
219       'common/database_messages.h',
220       'common/date_time_suggestion.h',
221       'common/device_sensors/device_light_data.h',
222       'common/device_sensors/device_light_hardware_buffer.h',
223       'common/device_sensors/device_light_messages.h',
224       'common/device_sensors/device_motion_hardware_buffer.h',
225       'common/device_sensors/device_motion_messages.h',
226       'common/device_sensors/device_orientation_hardware_buffer.h',
227       'common/device_sensors/device_orientation_messages.h',
228       'common/devtools_messages.h',
229       'common/discardable_shared_memory_heap.cc',
230       'common/discardable_shared_memory_heap.h',
231       'common/dom_storage/dom_storage_map.cc',
232       'common/dom_storage/dom_storage_map.h',
233       'common/dom_storage/dom_storage_messages.h',
234       'common/drag_event_source_info.h',
235       'common/drag_messages.h',
236       'common/drag_traits.h',
237       'common/dwrite_font_platform_win.cc',
238       'common/edit_command.h',
239       'common/file_utilities_messages.h',
240       'common/fileapi/file_system_messages.h',
241       'common/fileapi/webblob_messages.h',
242       'common/font_cache_dispatcher_win.cc',
243       'common/font_cache_dispatcher_win.h',
244       'common/font_config_ipc_linux.cc',
245       'common/font_config_ipc_linux.h',
246       'common/font_list.cc',
247       'common/font_list.h',
248       'common/font_list_android.cc',
249       'common/font_list_mac.mm',
250       'common/font_list_ozone.cc',
251       'common/font_list_pango.cc',
252       'common/font_list_win.cc',
253       'common/frame_message_enums.h',
254       'common/frame_messages.h',
255       'common/frame_param.cc',
256       'common/frame_param.h',
257       'common/frame_param_macros.h',
258       'common/frame_replication_state.cc',
259       'common/frame_replication_state.h',
260       'common/gamepad_hardware_buffer.h',
261       'common/gamepad_messages.h',
262       'common/gamepad_param_traits.cc',
263       'common/gamepad_param_traits.h',
264       'common/gamepad_user_gesture.cc',
265       'common/gamepad_user_gesture.h',
266       'common/geofencing_messages.h',
267       'common/geofencing_types.cc',
268       'common/geofencing_types.h',
269       'common/gin_java_bridge_messages.h',
270       'common/gpu/client/command_buffer_proxy_impl.cc',
271       'common/gpu/client/command_buffer_proxy_impl.h',
272       'common/gpu/client/command_buffer_metrics.cc',
273       'common/gpu/client/command_buffer_metrics.h',
274       'common/gpu/client/context_provider_command_buffer.cc',
275       'common/gpu/client/context_provider_command_buffer.h',
276       'common/gpu/client/gl_helper.cc',
277       'common/gpu/client/gl_helper.h',
278       'common/gpu/client/gl_helper_readback_support.cc',
279       'common/gpu/client/gl_helper_readback_support.h',
280       'common/gpu/client/gl_helper_scaling.cc',
281       'common/gpu/client/gl_helper_scaling.h',
282       'common/gpu/client/gpu_channel_host.cc',
283       'common/gpu/client/gpu_channel_host.h',
284       'common/gpu/client/gpu_memory_buffer_factory_host.h',
285       'common/gpu/client/gpu_memory_buffer_impl.cc',
286       'common/gpu/client/gpu_memory_buffer_impl.h',
287       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
288       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
289       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc',
290       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.h',
291       'common/gpu/client/gpu_video_decode_accelerator_host.cc',
292       'common/gpu/client/gpu_video_decode_accelerator_host.h',
293       'common/gpu/client/gpu_video_encode_accelerator_host.cc',
294       'common/gpu/client/gpu_video_encode_accelerator_host.h',
295       'common/gpu/client/grcontext_for_webgraphicscontext3d.cc',
296       'common/gpu/client/grcontext_for_webgraphicscontext3d.h',
297       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
298       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
299       'common/gpu/gpu_channel.cc',
300       'common/gpu/gpu_channel.h',
301       'common/gpu/gpu_channel_manager.cc',
302       'common/gpu/gpu_channel_manager.h',
303       'common/gpu/gpu_command_buffer_stub.cc',
304       'common/gpu/gpu_command_buffer_stub.h',
305       'common/gpu/gpu_config.h',
306       'common/gpu/gpu_memory_buffer_factory.cc',
307       'common/gpu/gpu_memory_buffer_factory.h',
308       'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
309       'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
310       'common/gpu/gpu_memory_buffer_factory_shared_memory.cc',
311       'common/gpu/gpu_memory_buffer_factory_shared_memory.h',
312       'common/gpu/gpu_memory_manager.cc',
313       'common/gpu/gpu_memory_manager.h',
314       'common/gpu/gpu_memory_manager_client.cc',
315       'common/gpu/gpu_memory_manager_client.h',
316       'common/gpu/gpu_memory_tracking.cc',
317       'common/gpu/gpu_memory_tracking.h',
318       'common/gpu/gpu_memory_uma_stats.h',
319       'common/gpu/gpu_messages.h',
320       'common/gpu/gpu_process_launch_causes.h',
321       'common/gpu/gpu_result_codes.h',
322       'common/gpu/gpu_surface_lookup.cc',
323       'common/gpu/gpu_surface_lookup.h',
324       'common/gpu/gpu_watchdog.h',
325       'common/gpu/image_transport_surface.cc',
326       'common/gpu/image_transport_surface.h',
327       'common/gpu/image_transport_surface_android.cc',
328       'common/gpu/image_transport_surface_calayer_mac.h',
329       'common/gpu/image_transport_surface_calayer_mac.mm',
330       'common/gpu/image_transport_surface_fbo_mac.h',
331       'common/gpu/image_transport_surface_fbo_mac.mm',
332       'common/gpu/image_transport_surface_iosurface_mac.cc',
333       'common/gpu/image_transport_surface_iosurface_mac.h',
334       'common/gpu/image_transport_surface_linux.cc',
335       'common/gpu/image_transport_surface_mac.mm',
336       'common/gpu/image_transport_surface_win.cc',
337       'common/gpu/media/fake_video_decode_accelerator.cc',
338       'common/gpu/media/fake_video_decode_accelerator.h',
339       'common/gpu/media/gpu_video_accelerator_util.cc',
340       'common/gpu/media/gpu_video_accelerator_util.h',
341       'common/gpu/media/gpu_video_decode_accelerator.cc',
342       'common/gpu/media/gpu_video_decode_accelerator.h',
343       'common/gpu/media/gpu_video_encode_accelerator.cc',
344       'common/gpu/media/gpu_video_encode_accelerator.h',
345       'common/gpu/null_transport_surface.cc',
346       'common/gpu/null_transport_surface.h',
347       'common/gpu/stream_texture_android.cc',
348       'common/gpu/stream_texture_android.h',
349       'common/host_discardable_shared_memory_manager.cc',
350       'common/host_discardable_shared_memory_manager.h',
351       'common/host_shared_bitmap_manager.cc',
352       'common/host_shared_bitmap_manager.h',
353       'common/image_messages.h',
354       'common/indexed_db/indexed_db_constants.h',
355       'common/indexed_db/indexed_db_key.cc',
356       'common/indexed_db/indexed_db_key.h',
357       'common/indexed_db/indexed_db_key_path.cc',
358       'common/indexed_db/indexed_db_key_path.h',
359       'common/indexed_db/indexed_db_key_range.cc',
360       'common/indexed_db/indexed_db_key_range.h',
361       'common/indexed_db/indexed_db_messages.h',
362       'common/indexed_db/indexed_db_param_traits.cc',
363       'common/indexed_db/indexed_db_param_traits.h',
364       'common/input/did_overscroll_params.cc',
365       'common/input/did_overscroll_params.h',
366       'common/input/gesture_event_stream_validator.cc',
367       'common/input/gesture_event_stream_validator.h',
368       'common/input/input_event.cc',
369       'common/input/input_event.h',
370       'common/input/input_event_ack.cc',
371       'common/input/input_event_ack.h',
372       'common/input/input_event_stream_validator.cc',
373       'common/input/input_event_stream_validator.h',
374       'common/input/input_param_traits.cc',
375       'common/input/input_param_traits.h',
376       'common/input/scoped_web_input_event.cc',
377       'common/input/scoped_web_input_event.h',
378       'common/input/synthetic_gesture_packet.cc',
379       'common/input/synthetic_gesture_packet.h',
380       'common/input/synthetic_gesture_params.cc',
381       'common/input/synthetic_gesture_params.h',
382       'common/input/synthetic_pinch_gesture_params.cc',
383       'common/input/synthetic_pinch_gesture_params.h',
384       'common/input/synthetic_smooth_drag_gesture_params.cc',
385       'common/input/synthetic_smooth_drag_gesture_params.h',
386       'common/input/synthetic_smooth_scroll_gesture_params.cc',
387       'common/input/synthetic_smooth_scroll_gesture_params.h',
388       'common/input/synthetic_tap_gesture_params.cc',
389       'common/input/synthetic_tap_gesture_params.h',
390       'common/input/synthetic_web_input_event_builders.cc',
391       'common/input/synthetic_web_input_event_builders.h',
392       'common/input/touch_event_stream_validator.cc',
393       'common/input/touch_event_stream_validator.h',
394       'common/input/web_input_event_traits.cc',
395       'common/input/web_input_event_traits.h',
396       'common/input/web_touch_event_traits.cc',
397       'common/input/web_touch_event_traits.h',
398       'common/input_messages.h',
399       'common/inter_process_time_ticks_converter.cc',
400       'common/inter_process_time_ticks_converter.h',
401       'common/in_process_child_thread_params.cc',
402       'common/in_process_child_thread_params.h',
403       'common/mac/attributed_string_coder.h',
404       'common/mac/attributed_string_coder.mm',
405       'common/mac/font_descriptor.h',
406       'common/mac/font_descriptor.mm',
407       'common/mac/font_loader.h',
408       'common/mac/font_loader.mm',
409       'common/mac/io_surface_manager.cc',
410       'common/mac/io_surface_manager.h',
411       'common/mac/io_surface_manager_messages.h',
412       'common/mac/io_surface_manager_token.h',
413       'common/manifest_manager_messages.h',
414       'common/media/aec_dump_messages.h',
415       'common/media/audio_messages.h',
416       'common/media/cdm_messages.h',
417       'common/media/cdm_messages_enums.h',
418       'common/media/media_param_traits.cc',
419       'common/media/media_param_traits.h',
420       'common/media/media_player_messages_android.h',
421       'common/media/media_player_messages_enums_android.h',
422       'common/media/media_stream_messages.h',
423       'common/media/media_stream_options.cc',
424       'common/media/media_stream_options.h',
425       'common/media/media_stream_track_metrics_host_messages.h',
426       'common/media/midi_messages.h',
427       'common/media/video_capture.h',
428       'common/media/video_capture_messages.h',
429       'common/media/webrtc_identity_messages.h',
430       'common/memory_benchmark_messages.h',
431       'common/message_port_messages.h',
432       'common/message_router.cc',
433       'common/message_router.h',
434       'common/mime_registry_messages.h',
435       'common/mojo/channel_init.cc',
436       'common/mojo/channel_init.h',
437       'common/mojo/mojo_messages.h',
438       'common/mojo/service_registry_impl.cc',
439       'common/mojo/service_registry_impl.h',
440       'common/navigation_gesture.h',
441       'common/navigation_params.cc',
442       'common/navigation_params.h',
443       'common/navigator_connect_messages.h',
444       'common/net/url_fetcher.cc',
445       'common/net/url_request_user_data.cc',
446       'common/net/url_request_user_data.h',
447       'common/one_writer_seqlock.cc',
448       'common/one_writer_seqlock.h',
449       'common/p2p_messages.h',
450       'common/origin_util.cc',
451       'common/page_state_serialization.cc',
452       'common/page_state_serialization.h',
453       'common/page_zoom.cc',
454       'common/pepper_file_util.cc',
455       'common/pepper_file_util.h',
456       'common/pepper_messages.h',
457       'common/pepper_plugin_list.cc',
458       'common/pepper_plugin_list.h',
459       'common/pepper_renderer_instance_data.cc',
460       'common/pepper_renderer_instance_data.h',
461       'common/platform_notification_messages.h',
462       'common/plugin_constants_win.cc',
463       'common/plugin_constants_win.h',
464       'common/plugin_list.cc',
465       'common/plugin_list.h',
466       'common/plugin_list_mac.mm',
467       'common/plugin_list_posix.cc',
468       'common/plugin_list_win.cc',
469       'common/plugin_process_messages.h',
470       'common/power_monitor_messages.h',
471       'common/process_type.cc',
472       'common/push_messaging_messages.h',
473       'common/quota_messages.h',
474       'common/resource_messages.cc',
475       'common/resource_messages.h',
476       'common/resource_request_body.cc',
477       'common/resource_request_body.h',
478       'common/sandbox_init_mac.cc',
479       'common/sandbox_init_mac.h',
480       'common/sandbox_init_win.cc',
481       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
482       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
483       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
484       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
485       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
486       'common/sandbox_linux/bpf_gpu_policy_linux.h',
487       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
488       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
489       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
490       'common/sandbox_linux/bpf_renderer_policy_linux.h',
491       'common/sandbox_linux/bpf_utility_policy_linux.cc',
492       'common/sandbox_linux/bpf_utility_policy_linux.h',
493       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
494       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
495       'common/sandbox_linux/sandbox_debug_handling_linux.cc',
496       'common/sandbox_linux/sandbox_debug_handling_linux.h',
497       'common/sandbox_linux/sandbox_init_linux.cc',
498       'common/sandbox_linux/sandbox_linux.cc',
499       'common/sandbox_linux/sandbox_linux.h',
500       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
501       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
502       'common/sandbox_mac.h',
503       'common/sandbox_mac.mm',
504       'common/sandbox_util.cc',
505       'common/sandbox_util.h',
506       'common/sandbox_win.cc',
507       'common/sandbox_win.h',
508       'common/savable_url_schemes.cc',
509       'common/savable_url_schemes.h',
510       'common/screen_orientation_messages.h',
511       'common/send_zygote_child_ping_linux.cc',
512       'common/service_worker/embedded_worker_messages.h',
513       'common/service_worker/service_worker_client_info.cc',
514       'common/service_worker/service_worker_client_info.h',
515       'common/service_worker/service_worker_messages.h',
516       'common/service_worker/service_worker_status_code.cc',
517       'common/service_worker/service_worker_status_code.h',
518       'common/service_worker/service_worker_types.cc',
519       'common/service_worker/service_worker_types.h',
520       'common/set_process_title.cc',
521       'common/set_process_title.h',
522       'common/set_process_title_linux.cc',
523       'common/set_process_title_linux.h',
524       'common/speech_recognition_messages.h',
525       'common/ssl_status_serialization.cc',
526       'common/ssl_status_serialization.h',
527       'common/swapped_out_messages.cc',
528       'common/swapped_out_messages.h',
529       'common/text_input_client_messages.h',
530       'common/url_schemes.cc',
531       'common/url_schemes.h',
532       'common/user_agent.cc',
533       'common/utility_messages.h',
534       'common/view_message_enums.h',
535       'common/view_messages.h',
536       'common/webplugin_geometry.cc',
537       'common/webplugin_geometry.h',
538       'common/websocket.cc',
539       'common/websocket.h',
540       'common/websocket_messages.h',
541       'common/worker_messages.h',
542       'common/zygote_commands_linux.h',
543     ],
544   },
545   'sources': [
546     '<@(public_common_sources)',
547     '<@(private_common_sources)',
548   ],
549   'target_conditions': [
550     ['OS=="android" and <(use_seccomp_bpf)==1', {
551       'sources/': [
552         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
553         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
554       ],
555     }],
556   ],
557   'conditions': [
558     ['OS=="ios"', {
559       # iOS has different user-agent construction utilities, since the
560       # version strings is not derived from webkit_version, and follows
561       # a different format.
562       'sources!': [
563         'common/user_agent.cc',
564       ],
565       'sources/': [
566         # iOS only needs a small portion of content; exclude all the
567         # implementation, and re-include what is used.
568         ['exclude', '\\.(cc|mm)$'],
569         ['include', '_ios\\.(cc|mm)$'],
570         ['include', '^public/common/content_client\\.cc$'],
571         ['include', '^public/common/content_constants\\.cc$'],
572         ['include', '^public/common/content_switches\\.cc$'],
573         ['include', '^public/common/frame_navigate_params\\.cc$'],
574         ['include', '^public/common/media_stream_request\\.cc$'],
575         ['include', '^public/common/page_state\\.cc$'],
576         ['include', '^public/common/password_form\\.cc$'],
577         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
578         ['include', '^public/common/speech_recognition_result\\.cc$'],
579         ['include', '^public/common/ssl_status\\.cc$'],
580         ['include', '^public/common/url_constants\\.cc$'],
581         ['include', '^common/content_paths\\.cc$'],
582         ['include', '^common/media/media_stream_options\\.cc$'],
583         ['include', '^common/net/url_fetcher\\.cc$'],
584         ['include', '^common/net/url_request_user_data\\.cc$'],
585         ['include', '^common/page_state_serialization\\.cc$'],
586         ['include', '^common/savable_url_schemes\\.cc$'],
587         ['include', '^common/url_schemes\\.cc$'],
588       ],
589     }, {  # OS!="ios"
590       'dependencies': [
591         '../cc/cc.gyp:cc',
592         '../gpu/blink/gpu_blink.gyp:gpu_blink',
593         '../gpu/gpu.gyp:command_buffer_service',
594         '../gpu/gpu.gyp:gles2_c_lib',
595         '../gpu/gpu.gyp:gles2_implementation',
596         # TODO: the dependency on gl_in_process_context should be decoupled from
597         # content and moved to android_webview. See crbug.com/365797.
598         '../gpu/gpu.gyp:gl_in_process_context',
599         '../gpu/gpu.gyp:gpu_ipc',
600         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
601         '../ipc/ipc.gyp:ipc',
602         '../ipc/mojo/ipc_mojo.gyp:ipc_mojo',
603         '../media/media.gyp:media',
604         '../media/media.gyp:shared_memory_support',
605         '../media/midi/midi.gyp:midi',
606         '../mojo/mojo_base.gyp:mojo_application_bindings',
607         '../mojo/mojo_base.gyp:mojo_environment_chromium',
608         '../storage/storage_common.gyp:storage_common',
609         '../third_party/WebKit/public/blink.gyp:blink',
610         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
611         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
612         '../ui/gl/gl.gyp:gl',
613       ],
614       'export_dependent_settings' : [
615         '../mojo/mojo_base.gyp:mojo_application_bindings',
616         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
617       ],
618       'actions': [
619         {
620           'action_name': 'generate_webkit_version',
621           'inputs': [
622             '<(script)',
623             '<(lastchange)',
624             '<(template)',
625           ],
626           'outputs': [
627             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
628           ],
629           'action': ['python',
630                      '<(script)',
631                      '-f', '<(lastchange)',
632                      '<(template)',
633                      '<@(_outputs)',
634           ],
635           'variables': {
636             'script': '<(DEPTH)/build/util/version.py',
637             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
638             'template': 'webkit_version.h.in',
639           },
640         },
641       ],
642     }],
643     ['OS=="mac"', {
644       'dependencies': [
645         '../media/media.gyp:media',
646         'app/resources/content_resources.gyp:content_resources',
647         '../ui/accelerated_widget_mac/accelerated_widget_mac.gyp:accelerated_widget_mac'
648       ],
649       'sources': [
650         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
651         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
652         'common/gpu/gpu_memory_buffer_factory_io_surface.cc',
653         'common/gpu/gpu_memory_buffer_factory_io_surface.h',
654         'common/gpu/media/vt.h',
655         'common/gpu/media/vt_video_decode_accelerator.cc',
656         'common/gpu/media/vt_video_decode_accelerator.h',
657       ],
658       'sources!': [
659         'common/plugin_list_posix.cc',
660       ],
661       'link_settings': {
662         'libraries': [
663           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
664           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
665         ],
666       },
667       'variables': {
668         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
669         'extra_header': 'common/gpu/media/vt_stubs_header.fragment',
670         'sig_files': ['common/gpu/media/vt.sig'],
671         'outfile_type': 'posix_stubs',
672         'stubs_filename_root': 'vt_stubs',
673         'project_path': 'content/common/gpu/media',
674         'intermediate_dir': '<(INTERMEDIATE_DIR)',
675         'output_root': '<(SHARED_INTERMEDIATE_DIR)/vt_stubs',
676       },
677       'include_dirs': [
678         '<(output_root)',
679       ],
680       'actions': [
681         {
682           'action_name': 'generate_stubs',
683           'inputs': [
684             '<(generate_stubs_script)',
685             '<(extra_header)',
686             '<@(sig_files)',
687           ],
688           'outputs': [
689             '<(intermediate_dir)/<(stubs_filename_root).cc',
690             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
691           ],
692           'action': ['python',
693                      '<(generate_stubs_script)',
694                      '-i', '<(intermediate_dir)',
695                      '-o', '<(output_root)/<(project_path)',
696                      '-t', '<(outfile_type)',
697                      '-e', '<(extra_header)',
698                      '-s', '<(stubs_filename_root)',
699                      '-p', '<(project_path)',
700                      '<@(_inputs)',
701           ],
702           'process_outputs_as_sources': 1,
703           'message': 'Generating VideoToolbox stubs for dynamic loading',
704         },
705       ],
706     }],
707     ['OS=="android"',{
708       'sources': [
709         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
710         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
711         'common/gpu/gpu_memory_buffer_factory_surface_texture.cc',
712         'common/gpu/gpu_memory_buffer_factory_surface_texture.h',
713       ],
714       'link_settings': {
715         'libraries': [
716           '-landroid',  # ANativeWindow
717         ],
718       },
719      'dependencies': [
720         'content.gyp:content_jni_headers',
721         'content.gyp:common_aidl',
722       ],
723     }],
724     ['use_pango == 1', {
725       'dependencies': [
726         '../build/linux/system.gyp:pangocairo',
727       ],
728       'sources!': [
729         'common/font_list_ozone.cc',
730       ],
731     }],
732     ['use_x11 == 1', {
733       'include_dirs': [
734         '<(DEPTH)/third_party/khronos',
735       ],
736       'dependencies': [
737          '<(DEPTH)/build/linux/system.gyp:xcomposite',
738       ],
739     }],
740     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
741       'sources': [
742         'common/gpu/x_util.h',
743       ],
744     }],
745     ['enable_plugins==1', {
746       'dependencies': [
747         '../ppapi/ppapi_internal.gyp:ppapi_shared',
748       ],
749     }, {  # enable_plugins == 0
750       'sources!': [
751         'common/pepper_file_util.cc',
752         'common/pepper_file_util.h',
753         'common/pepper_messages.h',
754         'common/pepper_plugin_list.cc',
755         'common/pepper_plugin_list.h',
756         'common/pepper_renderer_instance_data.cc',
757         'common/pepper_renderer_instance_data.h',
758         'common/plugin_list.cc',
759         'common/plugin_list.h',
760         'common/plugin_list_posix.cc',
761         'common/sandbox_util.cc',
762         'public/common/pepper_plugin_info.cc',
763         'public/common/pepper_plugin_info.h',
764       ],
765     }],
766     ['OS=="android"', {
767       'dependencies': [
768         '../media/media.gyp:media',
769       ],
770       'sources': [
771         'common/gpu/media/android_video_decode_accelerator.cc',
772         'common/gpu/media/android_video_decode_accelerator.h',
773       ],
774     }],
775     ['OS=="android" and enable_webrtc==1', {
776       'dependencies': [
777         '../third_party/libyuv/libyuv.gyp:libyuv',
778       ],
779       'sources': [
780         'common/gpu/media/android_video_encode_accelerator.cc',
781         'common/gpu/media/android_video_encode_accelerator.h',
782       ],
783     }],
784     ['enable_webrtc==1', {
785       'dependencies': [
786         '../third_party/libjingle/libjingle.gyp:libjingle',
787       ],
788     }],
789     ['use_v4lplugin==1 and chromeos==1', {
790       'defines': [
791         'USE_LIBV4L2'
792       ],
793       'variables': {
794         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
795         'extra_header': 'common/gpu/media/v4l2_stub_header.fragment',
796         'sig_files': ['common/gpu/media/v4l2.sig'],
797         'outfile_type': 'posix_stubs',
798         'stubs_filename_root': 'v4l2_stubs',
799         'project_path': 'content/common/gpu/media',
800         'intermediate_dir': '<(INTERMEDIATE_DIR)',
801         'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
802       },
803       'include_dirs': [
804         '<(output_root)',
805       ],
806       'actions': [
807         {
808           'action_name': 'generate_stubs',
809           'inputs': [
810             '<(generate_stubs_script)',
811             '<(extra_header)',
812             '<@(sig_files)',
813           ],
814           'outputs': [
815             '<(intermediate_dir)/<(stubs_filename_root).cc',
816             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
817           ],
818           'action': ['python',
819             '<(generate_stubs_script)',
820             '-i', '<(intermediate_dir)',
821             '-o', '<(output_root)/<(project_path)',
822             '-t', '<(outfile_type)',
823             '-e', '<(extra_header)',
824             '-s', '<(stubs_filename_root)',
825             '-p', '<(project_path)',
826             '<@(_inputs)',
827           ],
828           'process_outputs_as_sources': 1,
829           'message': 'Generating libv4l2 stubs for dynamic loading',
830         },
831       ],
832     }],
833     ['chromeos==1', {
834       'sources': [
835         'common/gpu/media/accelerated_video_decoder.h',
836         'common/gpu/media/h264_decoder.cc',
837         'common/gpu/media/h264_decoder.h',
838         'common/gpu/media/h264_dpb.cc',
839         'common/gpu/media/h264_dpb.h',
840         'common/gpu/media/vp8_decoder.cc',
841         'common/gpu/media/vp8_decoder.h',
842         'common/gpu/media/vp8_picture.cc',
843         'common/gpu/media/vp8_picture.h',
844       ],
845     }],
846     ['chromeos==1 and use_v4l2_codec==1', {
847       'direct_dependent_settings': {
848         'defines': [
849           'USE_V4L2_CODEC'
850         ],
851       },
852       'defines': [
853         'USE_V4L2_CODEC'
854       ],
855       'dependencies': [
856         '../media/media.gyp:media',
857       ],
858       'sources': [
859         'common/gpu/media/generic_v4l2_device.cc',
860         'common/gpu/media/generic_v4l2_device.h',
861         'common/gpu/media/v4l2_device.cc',
862         'common/gpu/media/v4l2_device.h',
863         'common/gpu/media/v4l2_image_processor.cc',
864         'common/gpu/media/v4l2_image_processor.h',
865         'common/gpu/media/v4l2_slice_video_decode_accelerator.cc',
866         'common/gpu/media/v4l2_slice_video_decode_accelerator.h',
867         'common/gpu/media/v4l2_video_decode_accelerator.cc',
868         'common/gpu/media/v4l2_video_decode_accelerator.h',
869         'common/gpu/media/v4l2_video_encode_accelerator.cc',
870         'common/gpu/media/v4l2_video_encode_accelerator.h',
871       ],
872       'include_dirs': [
873         '<(DEPTH)/third_party/khronos',
874       ],
875     }],
876     ['target_arch == "arm" and chromeos == 1', {
877       'sources': [
878         'common/gpu/media/tegra_v4l2_device.cc',
879         'common/gpu/media/tegra_v4l2_device.h',
880       ],
881     }],
882     ['target_arch != "arm" and chromeos == 1', {
883       'dependencies': [
884         '../media/media.gyp:media',
885         '../third_party/libyuv/libyuv.gyp:libyuv',
886       ],
887       'sources': [
888         'common/gpu/media/va_surface.h',
889         'common/gpu/media/vaapi_jpeg_decoder.cc',
890         'common/gpu/media/vaapi_jpeg_decoder.h',
891         'common/gpu/media/vaapi_picture.cc',
892         'common/gpu/media/vaapi_picture.h',
893         'common/gpu/media/vaapi_video_decode_accelerator.cc',
894         'common/gpu/media/vaapi_video_decode_accelerator.h',
895         'common/gpu/media/vaapi_video_encode_accelerator.cc',
896         'common/gpu/media/vaapi_video_encode_accelerator.h',
897         'common/gpu/media/vaapi_wrapper.cc',
898         'common/gpu/media/vaapi_wrapper.h',
899       ],
900       'conditions': [
901         ['use_x11 == 1', {
902           'variables': {
903             'sig_files': [
904               'common/gpu/media/va.sigs',
905               'common/gpu/media/va_x11.sigs',
906             ],
907           },
908           'sources': [
909             'common/gpu/media/vaapi_tfp_picture.cc',
910             'common/gpu/media/vaapi_tfp_picture.h',
911           ],
912         }, {
913           'variables': {
914             'sig_files': [
915               'common/gpu/media/va.sigs',
916               'common/gpu/media/va_drm.sigs',
917             ],
918           },
919           'sources': [
920             'common/gpu/media/vaapi_drm_picture.cc',
921             'common/gpu/media/vaapi_drm_picture.h',
922           ],
923         }],
924       ],
925       'variables': {
926         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
927         'extra_header': 'common/gpu/media/va_stub_header.fragment',
928         'outfile_type': 'posix_stubs',
929         'stubs_filename_root': 'va_stubs',
930         'project_path': 'content/common/gpu/media',
931         'intermediate_dir': '<(INTERMEDIATE_DIR)',
932         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
933       },
934       'include_dirs': [
935         '<(DEPTH)/third_party/libva',
936         '<(DEPTH)/third_party/libyuv',
937         '<(output_root)',
938       ],
939       'actions': [
940         {
941           'action_name': 'generate_stubs',
942           'inputs': [
943             '<(generate_stubs_script)',
944             '<(extra_header)',
945             '<@(sig_files)',
946           ],
947           'outputs': [
948             '<(intermediate_dir)/<(stubs_filename_root).cc',
949             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
950           ],
951           'action': ['python',
952                      '<(generate_stubs_script)',
953                      '-i', '<(intermediate_dir)',
954                      '-o', '<(output_root)/<(project_path)',
955                      '-t', '<(outfile_type)',
956                      '-e', '<(extra_header)',
957                      '-s', '<(stubs_filename_root)',
958                      '-p', '<(project_path)',
959                      '<@(_inputs)',
960           ],
961           'process_outputs_as_sources': 1,
962           'message': 'Generating libva stubs for dynamic loading',
963         },
964      ]
965     }],
966     ['OS=="win"', {
967       'dependencies': [
968         '../media/media.gyp:media',
969         '../ui/gl/gl.gyp:gl',
970       ],
971       'link_settings': {
972         'libraries': [
973            '-ld3d9.lib',
974            '-ld3d11.lib',
975            '-ldxva2.lib',
976            '-lstrmiids.lib',
977            '-lmf.lib',
978            '-lmfplat.lib',
979            '-lmfuuid.lib',
980         ],
981         'msvs_settings': {
982           'VCLinkerTool': {
983             'DelayLoadDLLs': [
984               'd3d9.dll',
985                           'd3d11.dll',
986               'dxva2.dll',
987               'mf.dll',
988               'mfplat.dll',
989             ],
990           },
991         },
992       },
993       'sources': [
994         'common/gpu/media/dxva_video_decode_accelerator.cc',
995         'common/gpu/media/dxva_video_decode_accelerator.h',
996       ],
997       'include_dirs': [
998         '<(DEPTH)/third_party/khronos',
999       ],
1000     }],
1001     ['OS=="win" and directxsdk_exists=="True"', {
1002       'actions': [
1003       {
1004         'action_name': 'extract_xinput',
1005         'variables': {
1006           'input': 'APR2007_xinput_<(winsdk_arch).cab',
1007           'output': 'xinput1_3.dll',
1008         },
1009         'inputs': [
1010           '../third_party/directxsdk/files/Redist/<(input)',
1011         ],
1012         'outputs': [
1013           '<(PRODUCT_DIR)/<(output)',
1014         ],
1015         'action': [
1016           'python',
1017         '../build/extract_from_cab.py',
1018         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
1019         '<(output)',
1020         '<(PRODUCT_DIR)',
1021         ],
1022       },
1023      ]
1024     }],
1025     ['use_seccomp_bpf==0', {
1026       'sources!': [
1027         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
1028         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
1029         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
1030         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
1031         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
1032         'common/sandbox_linux/bpf_gpu_policy_linux.h',
1033         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
1034         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
1035         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
1036         'common/sandbox_linux/bpf_renderer_policy_linux.h',
1037         'common/sandbox_linux/bpf_utility_policy_linux.cc',
1038         'common/sandbox_linux/bpf_utility_policy_linux.h',
1039         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
1040         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
1041       ],
1042     }, {
1043       'defines': ['USE_SECCOMP_BPF'],
1044     }],
1045     ['use_ozone==1', {
1046       'dependencies': [
1047         '../ui/ozone/ozone.gyp:ozone',
1048         '../ui/ozone/ozone.gyp:ozone_base',
1049         '../ui/ozone/gpu/ozone_gpu.gyp:ozone_gpu',
1050       ],
1051       'sources!': [
1052         'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
1053         'common/gpu/gpu_memory_buffer_factory_linux.cc',
1054       ],
1055     }, {  # use_ozone!=1
1056       'sources!': [
1057         'common/cursors/webcursor_ozone.cc',
1058         'common/font_list_ozone.cc',
1059         'common/gpu/client/gpu_memory_buffer_impl_ozone.cc',
1060         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
1061         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
1062         'common/gpu/gpu_memory_buffer_factory_ozone.cc',
1063         'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
1064         'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
1065       ],
1066     }],
1067   ],