Move more string_util functions to base namespace.
[chromium-blink-merge.git] / content / content_common.gypi
blob3bf73a45eca95ec2d82724811fd4cffc85ed9b85
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_jpeg_decode_accelerator_host.cc',
289       'common/gpu/client/gpu_jpeg_decode_accelerator_host.h',
290       'common/gpu/client/gpu_memory_buffer_impl.cc',
291       'common/gpu/client/gpu_memory_buffer_impl.h',
292       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
293       'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
294       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc',
295       'common/gpu/client/gpu_memory_buffer_impl_shared_memory.h',
296       'common/gpu/client/gpu_video_decode_accelerator_host.cc',
297       'common/gpu/client/gpu_video_decode_accelerator_host.h',
298       'common/gpu/client/gpu_video_encode_accelerator_host.cc',
299       'common/gpu/client/gpu_video_encode_accelerator_host.h',
300       'common/gpu/client/grcontext_for_webgraphicscontext3d.cc',
301       'common/gpu/client/grcontext_for_webgraphicscontext3d.h',
302       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
303       'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
304       'common/gpu/gpu_channel.cc',
305       'common/gpu/gpu_channel.h',
306       'common/gpu/gpu_channel_manager.cc',
307       'common/gpu/gpu_channel_manager.h',
308       'common/gpu/gpu_command_buffer_stub.cc',
309       'common/gpu/gpu_command_buffer_stub.h',
310       'common/gpu/gpu_config.h',
311       'common/gpu/gpu_memory_buffer_factory.cc',
312       'common/gpu/gpu_memory_buffer_factory.h',
313       'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
314       'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
315       'common/gpu/gpu_memory_buffer_factory_shared_memory.cc',
316       'common/gpu/gpu_memory_buffer_factory_shared_memory.h',
317       'common/gpu/gpu_memory_manager.cc',
318       'common/gpu/gpu_memory_manager.h',
319       'common/gpu/gpu_memory_manager_client.cc',
320       'common/gpu/gpu_memory_manager_client.h',
321       'common/gpu/gpu_memory_tracking.cc',
322       'common/gpu/gpu_memory_tracking.h',
323       'common/gpu/gpu_memory_uma_stats.h',
324       'common/gpu/gpu_messages.h',
325       'common/gpu/gpu_process_launch_causes.h',
326       'common/gpu/gpu_result_codes.h',
327       'common/gpu/gpu_surface_lookup.cc',
328       'common/gpu/gpu_surface_lookup.h',
329       'common/gpu/gpu_watchdog.h',
330       'common/gpu/image_transport_surface.cc',
331       'common/gpu/image_transport_surface.h',
332       'common/gpu/image_transport_surface_android.cc',
333       'common/gpu/image_transport_surface_calayer_mac.h',
334       'common/gpu/image_transport_surface_calayer_mac.mm',
335       'common/gpu/image_transport_surface_fbo_mac.h',
336       'common/gpu/image_transport_surface_fbo_mac.mm',
337       'common/gpu/image_transport_surface_iosurface_mac.cc',
338       'common/gpu/image_transport_surface_iosurface_mac.h',
339       'common/gpu/image_transport_surface_linux.cc',
340       'common/gpu/image_transport_surface_mac.mm',
341       'common/gpu/image_transport_surface_win.cc',
342       'common/gpu/media/fake_video_decode_accelerator.cc',
343       'common/gpu/media/fake_video_decode_accelerator.h',
344       'common/gpu/media/gpu_jpeg_decode_accelerator.cc',
345       'common/gpu/media/gpu_jpeg_decode_accelerator.h',
346       'common/gpu/media/gpu_video_accelerator_util.cc',
347       'common/gpu/media/gpu_video_accelerator_util.h',
348       'common/gpu/media/gpu_video_decode_accelerator.cc',
349       'common/gpu/media/gpu_video_decode_accelerator.h',
350       'common/gpu/media/gpu_video_encode_accelerator.cc',
351       'common/gpu/media/gpu_video_encode_accelerator.h',
352       'common/gpu/null_transport_surface.cc',
353       'common/gpu/null_transport_surface.h',
354       'common/gpu/stream_texture_android.cc',
355       'common/gpu/stream_texture_android.h',
356       'common/host_discardable_shared_memory_manager.cc',
357       'common/host_discardable_shared_memory_manager.h',
358       'common/host_shared_bitmap_manager.cc',
359       'common/host_shared_bitmap_manager.h',
360       'common/image_messages.h',
361       'common/indexed_db/indexed_db_constants.h',
362       'common/indexed_db/indexed_db_key.cc',
363       'common/indexed_db/indexed_db_key.h',
364       'common/indexed_db/indexed_db_key_path.cc',
365       'common/indexed_db/indexed_db_key_path.h',
366       'common/indexed_db/indexed_db_key_range.cc',
367       'common/indexed_db/indexed_db_key_range.h',
368       'common/indexed_db/indexed_db_messages.h',
369       'common/indexed_db/indexed_db_param_traits.cc',
370       'common/indexed_db/indexed_db_param_traits.h',
371       'common/input/did_overscroll_params.cc',
372       'common/input/did_overscroll_params.h',
373       'common/input/gesture_event_stream_validator.cc',
374       'common/input/gesture_event_stream_validator.h',
375       'common/input/input_event.cc',
376       'common/input/input_event.h',
377       'common/input/input_event_ack.cc',
378       'common/input/input_event_ack.h',
379       'common/input/input_event_stream_validator.cc',
380       'common/input/input_event_stream_validator.h',
381       'common/input/input_param_traits.cc',
382       'common/input/input_param_traits.h',
383       'common/input/scoped_web_input_event.cc',
384       'common/input/scoped_web_input_event.h',
385       'common/input/synthetic_gesture_packet.cc',
386       'common/input/synthetic_gesture_packet.h',
387       'common/input/synthetic_gesture_params.cc',
388       'common/input/synthetic_gesture_params.h',
389       'common/input/synthetic_pinch_gesture_params.cc',
390       'common/input/synthetic_pinch_gesture_params.h',
391       'common/input/synthetic_smooth_drag_gesture_params.cc',
392       'common/input/synthetic_smooth_drag_gesture_params.h',
393       'common/input/synthetic_smooth_scroll_gesture_params.cc',
394       'common/input/synthetic_smooth_scroll_gesture_params.h',
395       'common/input/synthetic_tap_gesture_params.cc',
396       'common/input/synthetic_tap_gesture_params.h',
397       'common/input/synthetic_web_input_event_builders.cc',
398       'common/input/synthetic_web_input_event_builders.h',
399       'common/input/touch_event_stream_validator.cc',
400       'common/input/touch_event_stream_validator.h',
401       'common/input/web_input_event_traits.cc',
402       'common/input/web_input_event_traits.h',
403       'common/input/web_touch_event_traits.cc',
404       'common/input/web_touch_event_traits.h',
405       'common/input_messages.h',
406       'common/inter_process_time_ticks_converter.cc',
407       'common/inter_process_time_ticks_converter.h',
408       'common/in_process_child_thread_params.cc',
409       'common/in_process_child_thread_params.h',
410       'common/mac/attributed_string_coder.h',
411       'common/mac/attributed_string_coder.mm',
412       'common/mac/font_descriptor.h',
413       'common/mac/font_descriptor.mm',
414       'common/mac/font_loader.h',
415       'common/mac/font_loader.mm',
416       'common/mac/io_surface_manager.cc',
417       'common/mac/io_surface_manager.h',
418       'common/mac/io_surface_manager_messages.h',
419       'common/mac/io_surface_manager_token.h',
420       'common/manifest_manager_messages.h',
421       'common/media/aec_dump_messages.h',
422       'common/media/audio_messages.h',
423       'common/media/cdm_messages.h',
424       'common/media/cdm_messages_enums.h',
425       'common/media/media_param_traits.cc',
426       'common/media/media_param_traits.h',
427       'common/media/media_player_messages_android.h',
428       'common/media/media_player_messages_enums_android.h',
429       'common/media/media_stream_messages.h',
430       'common/media/media_stream_options.cc',
431       'common/media/media_stream_options.h',
432       'common/media/media_stream_track_metrics_host_messages.h',
433       'common/media/midi_messages.h',
434       'common/media/video_capture.h',
435       'common/media/video_capture_messages.h',
436       'common/media/webrtc_identity_messages.h',
437       'common/memory_benchmark_messages.h',
438       'common/message_port_messages.h',
439       'common/message_router.cc',
440       'common/message_router.h',
441       'common/mime_registry_messages.h',
442       'common/mojo/channel_init.cc',
443       'common/mojo/channel_init.h',
444       'common/mojo/mojo_messages.h',
445       'common/mojo/service_registry_impl.cc',
446       'common/mojo/service_registry_impl.h',
447       'common/navigation_gesture.h',
448       'common/navigation_params.cc',
449       'common/navigation_params.h',
450       'common/navigator_connect_messages.h',
451       'common/net/url_fetcher.cc',
452       'common/net/url_request_user_data.cc',
453       'common/net/url_request_user_data.h',
454       'common/one_writer_seqlock.cc',
455       'common/one_writer_seqlock.h',
456       'common/p2p_messages.h',
457       'common/origin_util.cc',
458       'common/page_state_serialization.cc',
459       'common/page_state_serialization.h',
460       'common/page_zoom.cc',
461       'common/pepper_file_util.cc',
462       'common/pepper_file_util.h',
463       'common/pepper_messages.h',
464       'common/pepper_plugin_list.cc',
465       'common/pepper_plugin_list.h',
466       'common/pepper_renderer_instance_data.cc',
467       'common/pepper_renderer_instance_data.h',
468       'common/platform_notification_messages.h',
469       'common/plugin_constants_win.cc',
470       'common/plugin_constants_win.h',
471       'common/plugin_list.cc',
472       'common/plugin_list.h',
473       'common/plugin_list_mac.mm',
474       'common/plugin_list_posix.cc',
475       'common/plugin_list_win.cc',
476       'common/plugin_process_messages.h',
477       'common/power_monitor_messages.h',
478       'common/process_type.cc',
479       'common/push_messaging_messages.h',
480       'common/quota_messages.h',
481       'common/resource_messages.cc',
482       'common/resource_messages.h',
483       'common/resource_request_body.cc',
484       'common/resource_request_body.h',
485       'common/sandbox_init_mac.cc',
486       'common/sandbox_init_mac.h',
487       'common/sandbox_init_win.cc',
488       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
489       'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
490       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
491       'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
492       'common/sandbox_linux/bpf_gpu_policy_linux.cc',
493       'common/sandbox_linux/bpf_gpu_policy_linux.h',
494       'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
495       'common/sandbox_linux/bpf_ppapi_policy_linux.h',
496       'common/sandbox_linux/bpf_renderer_policy_linux.cc',
497       'common/sandbox_linux/bpf_renderer_policy_linux.h',
498       'common/sandbox_linux/bpf_utility_policy_linux.cc',
499       'common/sandbox_linux/bpf_utility_policy_linux.h',
500       'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
501       'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
502       'common/sandbox_linux/sandbox_debug_handling_linux.cc',
503       'common/sandbox_linux/sandbox_debug_handling_linux.h',
504       'common/sandbox_linux/sandbox_init_linux.cc',
505       'common/sandbox_linux/sandbox_linux.cc',
506       'common/sandbox_linux/sandbox_linux.h',
507       'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
508       'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
509       'common/sandbox_mac.h',
510       'common/sandbox_mac.mm',
511       'common/sandbox_util.cc',
512       'common/sandbox_util.h',
513       'common/sandbox_win.cc',
514       'common/sandbox_win.h',
515       'common/savable_url_schemes.cc',
516       'common/savable_url_schemes.h',
517       'common/screen_orientation_messages.h',
518       'common/send_zygote_child_ping_linux.cc',
519       'common/service_worker/embedded_worker_messages.h',
520       'common/service_worker/service_worker_client_info.cc',
521       'common/service_worker/service_worker_client_info.h',
522       'common/service_worker/service_worker_messages.h',
523       'common/service_worker/service_worker_status_code.cc',
524       'common/service_worker/service_worker_status_code.h',
525       'common/service_worker/service_worker_types.cc',
526       'common/service_worker/service_worker_types.h',
527       'common/set_process_title.cc',
528       'common/set_process_title.h',
529       'common/set_process_title_linux.cc',
530       'common/set_process_title_linux.h',
531       'common/speech_recognition_messages.h',
532       'common/ssl_status_serialization.cc',
533       'common/ssl_status_serialization.h',
534       'common/swapped_out_messages.cc',
535       'common/swapped_out_messages.h',
536       'common/text_input_client_messages.h',
537       'common/url_schemes.cc',
538       'common/url_schemes.h',
539       'common/user_agent.cc',
540       'common/utility_messages.h',
541       'common/view_message_enums.h',
542       'common/view_messages.h',
543       'common/webplugin_geometry.cc',
544       'common/webplugin_geometry.h',
545       'common/websocket.cc',
546       'common/websocket.h',
547       'common/websocket_messages.h',
548       'common/worker_messages.h',
549       'common/zygote_commands_linux.h',
550     ],
551   },
552   'sources': [
553     '<@(public_common_sources)',
554     '<@(private_common_sources)',
555   ],
556   'target_conditions': [
557     ['OS=="android" and <(use_seccomp_bpf)==1', {
558       'sources/': [
559         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.cc$'],
560         ['include', '^common/sandbox_linux/sandbox_bpf_base_policy_linux\\.h$'],
561       ],
562     }],
563   ],
564   'conditions': [
565     ['OS=="ios"', {
566       # iOS has different user-agent construction utilities, since the
567       # version strings is not derived from webkit_version, and follows
568       # a different format.
569       'sources!': [
570         'common/user_agent.cc',
571       ],
572       'sources/': [
573         # iOS only needs a small portion of content; exclude all the
574         # implementation, and re-include what is used.
575         ['exclude', '\\.(cc|mm)$'],
576         ['include', '_ios\\.(cc|mm)$'],
577         ['include', '^public/common/content_client\\.cc$'],
578         ['include', '^public/common/content_constants\\.cc$'],
579         ['include', '^public/common/content_switches\\.cc$'],
580         ['include', '^public/common/frame_navigate_params\\.cc$'],
581         ['include', '^public/common/media_stream_request\\.cc$'],
582         ['include', '^public/common/page_state\\.cc$'],
583         ['include', '^public/common/password_form\\.cc$'],
584         ['include', '^public/common/signed_certificate_timestamp_id_and_status\\.cc$'],
585         ['include', '^public/common/speech_recognition_result\\.cc$'],
586         ['include', '^public/common/ssl_status\\.cc$'],
587         ['include', '^public/common/url_constants\\.cc$'],
588         ['include', '^common/content_paths\\.cc$'],
589         ['include', '^common/media/media_stream_options\\.cc$'],
590         ['include', '^common/net/url_fetcher\\.cc$'],
591         ['include', '^common/net/url_request_user_data\\.cc$'],
592         ['include', '^common/page_state_serialization\\.cc$'],
593         ['include', '^common/savable_url_schemes\\.cc$'],
594         ['include', '^common/url_schemes\\.cc$'],
595       ],
596     }, {  # OS!="ios"
597       'dependencies': [
598         '../cc/cc.gyp:cc',
599         '../gpu/blink/gpu_blink.gyp:gpu_blink',
600         '../gpu/gpu.gyp:command_buffer_service',
601         '../gpu/gpu.gyp:gles2_c_lib',
602         '../gpu/gpu.gyp:gles2_implementation',
603         # TODO: the dependency on gl_in_process_context should be decoupled from
604         # content and moved to android_webview. See crbug.com/365797.
605         '../gpu/gpu.gyp:gl_in_process_context',
606         '../gpu/gpu.gyp:gpu_ipc',
607         '../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings',
608         '../ipc/ipc.gyp:ipc',
609         '../ipc/mojo/ipc_mojo.gyp:ipc_mojo',
610         '../media/media.gyp:media',
611         '../media/media.gyp:shared_memory_support',
612         '../media/midi/midi.gyp:midi',
613         '../mojo/mojo_base.gyp:mojo_application_bindings',
614         '../mojo/mojo_base.gyp:mojo_environment_chromium',
615         '../storage/storage_common.gyp:storage_common',
616         '../third_party/WebKit/public/blink.gyp:blink',
617         '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
618         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
619         '../ui/gl/gl.gyp:gl',
620       ],
621       'export_dependent_settings' : [
622         '../mojo/mojo_base.gyp:mojo_application_bindings',
623         '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
624       ],
625       'actions': [
626         {
627           'action_name': 'generate_webkit_version',
628           'inputs': [
629             '<(script)',
630             '<(lastchange)',
631             '<(template)',
632           ],
633           'outputs': [
634             '<(SHARED_INTERMEDIATE_DIR)/webkit_version.h',
635           ],
636           'action': ['python',
637                      '<(script)',
638                      '-f', '<(lastchange)',
639                      '<(template)',
640                      '<@(_outputs)',
641           ],
642           'variables': {
643             'script': '<(DEPTH)/build/util/version.py',
644             'lastchange': '<(DEPTH)/build/util/LASTCHANGE.blink',
645             'template': 'webkit_version.h.in',
646           },
647         },
648       ],
649     }],
650     ['OS=="mac"', {
651       'dependencies': [
652         '../media/media.gyp:media',
653         'app/resources/content_resources.gyp:content_resources',
654         '../ui/accelerated_widget_mac/accelerated_widget_mac.gyp:accelerated_widget_mac'
655       ],
656       'sources': [
657         'common/gpu/client/gpu_memory_buffer_impl_io_surface.cc',
658         'common/gpu/client/gpu_memory_buffer_impl_io_surface.h',
659         'common/gpu/gpu_memory_buffer_factory_io_surface.cc',
660         'common/gpu/gpu_memory_buffer_factory_io_surface.h',
661         'common/gpu/media/vt.h',
662         'common/gpu/media/vt_video_decode_accelerator.cc',
663         'common/gpu/media/vt_video_decode_accelerator.h',
664       ],
665       'sources!': [
666         'common/plugin_list_posix.cc',
667       ],
668       'link_settings': {
669         'libraries': [
670           '$(SDKROOT)/System/Library/Frameworks/IOSurface.framework',
671           '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework',
672         ],
673       },
674       'variables': {
675         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
676         'extra_header': 'common/gpu/media/vt_stubs_header.fragment',
677         'sig_files': ['common/gpu/media/vt.sig'],
678         'outfile_type': 'posix_stubs',
679         'stubs_filename_root': 'vt_stubs',
680         'project_path': 'content/common/gpu/media',
681         'intermediate_dir': '<(INTERMEDIATE_DIR)',
682         'output_root': '<(SHARED_INTERMEDIATE_DIR)/vt_stubs',
683       },
684       'include_dirs': [
685         '<(output_root)',
686       ],
687       'actions': [
688         {
689           'action_name': 'generate_stubs',
690           'inputs': [
691             '<(generate_stubs_script)',
692             '<(extra_header)',
693             '<@(sig_files)',
694           ],
695           'outputs': [
696             '<(intermediate_dir)/<(stubs_filename_root).cc',
697             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
698           ],
699           'action': ['python',
700                      '<(generate_stubs_script)',
701                      '-i', '<(intermediate_dir)',
702                      '-o', '<(output_root)/<(project_path)',
703                      '-t', '<(outfile_type)',
704                      '-e', '<(extra_header)',
705                      '-s', '<(stubs_filename_root)',
706                      '-p', '<(project_path)',
707                      '<@(_inputs)',
708           ],
709           'process_outputs_as_sources': 1,
710           'message': 'Generating VideoToolbox stubs for dynamic loading',
711         },
712       ],
713     }],
714     ['OS=="android"',{
715       'sources': [
716         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc',
717         'common/gpu/client/gpu_memory_buffer_impl_surface_texture.h',
718         'common/gpu/gpu_memory_buffer_factory_surface_texture.cc',
719         'common/gpu/gpu_memory_buffer_factory_surface_texture.h',
720       ],
721       'link_settings': {
722         'libraries': [
723           '-landroid',  # ANativeWindow
724         ],
725       },
726      'dependencies': [
727         'content.gyp:content_jni_headers',
728         'content.gyp:common_aidl',
729       ],
730     }],
731     ['use_pango == 1', {
732       'dependencies': [
733         '../build/linux/system.gyp:pangocairo',
734       ],
735       'sources!': [
736         'common/font_list_ozone.cc',
737       ],
738     }],
739     ['use_x11 == 1', {
740       'include_dirs': [
741         '<(DEPTH)/third_party/khronos',
742       ],
743       'dependencies': [
744          '<(DEPTH)/build/linux/system.gyp:xcomposite',
745       ],
746     }],
747     ['use_x11 == 1 and (target_arch != "arm" or chromeos == 0)', {
748       'sources': [
749         'common/gpu/x_util.h',
750       ],
751     }],
752     ['enable_plugins==1', {
753       'dependencies': [
754         '../ppapi/ppapi_internal.gyp:ppapi_shared',
755       ],
756     }, {  # enable_plugins == 0
757       'sources!': [
758         'common/pepper_file_util.cc',
759         'common/pepper_file_util.h',
760         'common/pepper_messages.h',
761         'common/pepper_plugin_list.cc',
762         'common/pepper_plugin_list.h',
763         'common/pepper_renderer_instance_data.cc',
764         'common/pepper_renderer_instance_data.h',
765         'common/plugin_list.cc',
766         'common/plugin_list.h',
767         'common/plugin_list_posix.cc',
768         'common/sandbox_util.cc',
769         'public/common/pepper_plugin_info.cc',
770         'public/common/pepper_plugin_info.h',
771       ],
772     }],
773     ['OS=="android"', {
774       'dependencies': [
775         '../media/media.gyp:media',
776       ],
777       'sources': [
778         'common/gpu/media/android_video_decode_accelerator.cc',
779         'common/gpu/media/android_video_decode_accelerator.h',
780       ],
781     }],
782     ['OS=="android" and enable_webrtc==1', {
783       'dependencies': [
784         '../third_party/libyuv/libyuv.gyp:libyuv',
785       ],
786       'sources': [
787         'common/gpu/media/android_video_encode_accelerator.cc',
788         'common/gpu/media/android_video_encode_accelerator.h',
789       ],
790     }],
791     ['enable_webrtc==1', {
792       'dependencies': [
793         '../third_party/libjingle/libjingle.gyp:libjingle',
794       ],
795     }],
796     ['use_v4lplugin==1 and chromeos==1', {
797       'defines': [
798         'USE_LIBV4L2'
799       ],
800       'variables': {
801         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
802         'extra_header': 'common/gpu/media/v4l2_stub_header.fragment',
803         'sig_files': ['common/gpu/media/v4l2.sig'],
804         'outfile_type': 'posix_stubs',
805         'stubs_filename_root': 'v4l2_stubs',
806         'project_path': 'content/common/gpu/media',
807         'intermediate_dir': '<(INTERMEDIATE_DIR)',
808         'output_root': '<(SHARED_INTERMEDIATE_DIR)/v4l2',
809       },
810       'include_dirs': [
811         '<(output_root)',
812       ],
813       'actions': [
814         {
815           'action_name': 'generate_stubs',
816           'inputs': [
817             '<(generate_stubs_script)',
818             '<(extra_header)',
819             '<@(sig_files)',
820           ],
821           'outputs': [
822             '<(intermediate_dir)/<(stubs_filename_root).cc',
823             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
824           ],
825           'action': ['python',
826             '<(generate_stubs_script)',
827             '-i', '<(intermediate_dir)',
828             '-o', '<(output_root)/<(project_path)',
829             '-t', '<(outfile_type)',
830             '-e', '<(extra_header)',
831             '-s', '<(stubs_filename_root)',
832             '-p', '<(project_path)',
833             '<@(_inputs)',
834           ],
835           'process_outputs_as_sources': 1,
836           'message': 'Generating libv4l2 stubs for dynamic loading',
837         },
838       ],
839     }],
840     ['chromeos==1', {
841       'sources': [
842         'common/gpu/media/accelerated_video_decoder.h',
843         'common/gpu/media/h264_decoder.cc',
844         'common/gpu/media/h264_decoder.h',
845         'common/gpu/media/h264_dpb.cc',
846         'common/gpu/media/h264_dpb.h',
847         'common/gpu/media/vp8_decoder.cc',
848         'common/gpu/media/vp8_decoder.h',
849         'common/gpu/media/vp8_picture.cc',
850         'common/gpu/media/vp8_picture.h',
851       ],
852     }],
853     ['chromeos==1 and use_v4l2_codec==1', {
854       'direct_dependent_settings': {
855         'defines': [
856           'USE_V4L2_CODEC'
857         ],
858       },
859       'defines': [
860         'USE_V4L2_CODEC'
861       ],
862       'dependencies': [
863         '../media/media.gyp:media',
864       ],
865       'sources': [
866         'common/gpu/media/generic_v4l2_device.cc',
867         'common/gpu/media/generic_v4l2_device.h',
868         'common/gpu/media/v4l2_device.cc',
869         'common/gpu/media/v4l2_device.h',
870         'common/gpu/media/v4l2_image_processor.cc',
871         'common/gpu/media/v4l2_image_processor.h',
872         'common/gpu/media/v4l2_slice_video_decode_accelerator.cc',
873         'common/gpu/media/v4l2_slice_video_decode_accelerator.h',
874         'common/gpu/media/v4l2_video_decode_accelerator.cc',
875         'common/gpu/media/v4l2_video_decode_accelerator.h',
876         'common/gpu/media/v4l2_video_encode_accelerator.cc',
877         'common/gpu/media/v4l2_video_encode_accelerator.h',
878       ],
879       'include_dirs': [
880         '<(DEPTH)/third_party/khronos',
881       ],
882     }],
883     ['target_arch == "arm" and chromeos == 1', {
884       'sources': [
885         'common/gpu/media/tegra_v4l2_device.cc',
886         'common/gpu/media/tegra_v4l2_device.h',
887       ],
888     }],
889     ['target_arch != "arm" and chromeos == 1', {
890       'dependencies': [
891         '../media/media.gyp:media',
892         '../third_party/libyuv/libyuv.gyp:libyuv',
893       ],
894       'sources': [
895         'common/gpu/media/va_surface.h',
896         'common/gpu/media/vaapi_jpeg_decode_accelerator.cc',
897         'common/gpu/media/vaapi_jpeg_decode_accelerator.h',
898         'common/gpu/media/vaapi_jpeg_decoder.cc',
899         'common/gpu/media/vaapi_jpeg_decoder.h',
900         'common/gpu/media/vaapi_picture.cc',
901         'common/gpu/media/vaapi_picture.h',
902         'common/gpu/media/vaapi_video_decode_accelerator.cc',
903         'common/gpu/media/vaapi_video_decode_accelerator.h',
904         'common/gpu/media/vaapi_video_encode_accelerator.cc',
905         'common/gpu/media/vaapi_video_encode_accelerator.h',
906         'common/gpu/media/vaapi_wrapper.cc',
907         'common/gpu/media/vaapi_wrapper.h',
908       ],
909       'conditions': [
910         ['use_x11 == 1', {
911           'variables': {
912             'sig_files': [
913               'common/gpu/media/va.sigs',
914               'common/gpu/media/va_x11.sigs',
915             ],
916           },
917           'sources': [
918             'common/gpu/media/vaapi_tfp_picture.cc',
919             'common/gpu/media/vaapi_tfp_picture.h',
920           ],
921         }, {
922           'variables': {
923             'sig_files': [
924               'common/gpu/media/va.sigs',
925               'common/gpu/media/va_drm.sigs',
926             ],
927           },
928           'sources': [
929             'common/gpu/media/vaapi_drm_picture.cc',
930             'common/gpu/media/vaapi_drm_picture.h',
931           ],
932         }],
933       ],
934       'variables': {
935         'generate_stubs_script': '../tools/generate_stubs/generate_stubs.py',
936         'extra_header': 'common/gpu/media/va_stub_header.fragment',
937         'outfile_type': 'posix_stubs',
938         'stubs_filename_root': 'va_stubs',
939         'project_path': 'content/common/gpu/media',
940         'intermediate_dir': '<(INTERMEDIATE_DIR)',
941         'output_root': '<(SHARED_INTERMEDIATE_DIR)/va',
942       },
943       'include_dirs': [
944         '<(DEPTH)/third_party/libva',
945         '<(DEPTH)/third_party/libyuv',
946         '<(output_root)',
947       ],
948       'actions': [
949         {
950           'action_name': 'generate_stubs',
951           'inputs': [
952             '<(generate_stubs_script)',
953             '<(extra_header)',
954             '<@(sig_files)',
955           ],
956           'outputs': [
957             '<(intermediate_dir)/<(stubs_filename_root).cc',
958             '<(output_root)/<(project_path)/<(stubs_filename_root).h',
959           ],
960           'action': ['python',
961                      '<(generate_stubs_script)',
962                      '-i', '<(intermediate_dir)',
963                      '-o', '<(output_root)/<(project_path)',
964                      '-t', '<(outfile_type)',
965                      '-e', '<(extra_header)',
966                      '-s', '<(stubs_filename_root)',
967                      '-p', '<(project_path)',
968                      '<@(_inputs)',
969           ],
970           'process_outputs_as_sources': 1,
971           'message': 'Generating libva stubs for dynamic loading',
972         },
973      ]
974     }],
975     ['OS=="win"', {
976       'dependencies': [
977         '../media/media.gyp:media',
978         '../ui/gl/gl.gyp:gl',
979       ],
980       'link_settings': {
981         'libraries': [
982            '-ld3d9.lib',
983            '-ld3d11.lib',
984            '-ldxva2.lib',
985            '-lstrmiids.lib',
986            '-lmf.lib',
987            '-lmfplat.lib',
988            '-lmfuuid.lib',
989         ],
990         'msvs_settings': {
991           'VCLinkerTool': {
992             'DelayLoadDLLs': [
993               'd3d9.dll',
994                           'd3d11.dll',
995               'dxva2.dll',
996               'mf.dll',
997               'mfplat.dll',
998             ],
999           },
1000         },
1001       },
1002       'sources': [
1003         'common/gpu/media/dxva_video_decode_accelerator.cc',
1004         'common/gpu/media/dxva_video_decode_accelerator.h',
1005       ],
1006       'include_dirs': [
1007         '<(DEPTH)/third_party/khronos',
1008       ],
1009     }],
1010     ['OS=="win" and directxsdk_exists=="True"', {
1011       'actions': [
1012       {
1013         'action_name': 'extract_xinput',
1014         'variables': {
1015           'input': 'APR2007_xinput_<(winsdk_arch).cab',
1016           'output': 'xinput1_3.dll',
1017         },
1018         'inputs': [
1019           '../third_party/directxsdk/files/Redist/<(input)',
1020         ],
1021         'outputs': [
1022           '<(PRODUCT_DIR)/<(output)',
1023         ],
1024         'action': [
1025           'python',
1026         '../build/extract_from_cab.py',
1027         '..\\third_party\\directxsdk\\files\\Redist\\<(input)',
1028         '<(output)',
1029         '<(PRODUCT_DIR)',
1030         ],
1031       },
1032      ]
1033     }],
1034     ['use_seccomp_bpf==0', {
1035       'sources!': [
1036         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
1037         'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
1038         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
1039         'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
1040         'common/sandbox_linux/bpf_gpu_policy_linux.cc',
1041         'common/sandbox_linux/bpf_gpu_policy_linux.h',
1042         'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
1043         'common/sandbox_linux/bpf_ppapi_policy_linux.h',
1044         'common/sandbox_linux/bpf_renderer_policy_linux.cc',
1045         'common/sandbox_linux/bpf_renderer_policy_linux.h',
1046         'common/sandbox_linux/bpf_utility_policy_linux.cc',
1047         'common/sandbox_linux/bpf_utility_policy_linux.h',
1048         'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
1049         'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
1050       ],
1051     }, {
1052       'defines': ['USE_SECCOMP_BPF'],
1053     }],
1054     ['use_ozone==1', {
1055       'dependencies': [
1056         '../ui/ozone/ozone.gyp:ozone',
1057         '../ui/ozone/ozone.gyp:ozone_base',
1058         '../ui/ozone/gpu/ozone_gpu.gyp:ozone_gpu',
1059       ],
1060       'sources!': [
1061         'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
1062         'common/gpu/gpu_memory_buffer_factory_linux.cc',
1063       ],
1064     }, {  # use_ozone!=1
1065       'sources!': [
1066         'common/cursors/webcursor_ozone.cc',
1067         'common/font_list_ozone.cc',
1068         'common/gpu/client/gpu_memory_buffer_impl_ozone.cc',
1069         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc',
1070         'common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h',
1071         'common/gpu/gpu_memory_buffer_factory_ozone.cc',
1072         'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc',
1073         'common/gpu/gpu_memory_buffer_factory_ozone_native_buffer.h',
1074       ],
1075     }],
1076   ],