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