Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / content_renderer.gypi
blob99108c38c7d4e359ef343fb20906434090f6c7f7
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     '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
9     '../cc/cc.gyp:cc',
10     '../cc/blink/cc_blink.gyp:cc_blink',
11     '../components/scheduler/scheduler.gyp:scheduler',
12     '../device/battery/battery.gyp:device_battery',
13     '../device/battery/battery.gyp:device_battery_mojo_bindings',
14     '../device/vibration/vibration.gyp:device_vibration',
15     '../device/vibration/vibration.gyp:device_vibration_mojo_bindings',
16     '../gin/gin.gyp:gin',
17     '../gpu/gpu.gyp:gpu',
18     '../jingle/jingle.gyp:jingle_glue',
19     '../media/blink/media_blink.gyp:media_blink',
20     '../media/media.gyp:media',
21     '../mojo/mojo_base.gyp:mojo_environment_chromium',
22     '../mojo/mojo_base.gyp:mojo_geometry_lib',
23     '../mojo/mojo_base.gyp:mojo_url_type_converters',
24     '../net/net.gyp:net',
25     '../skia/skia.gyp:skia',
26     '../skia/skia.gyp:skia_mojo',
27     '../storage/storage_common.gyp:storage_common',
28     '../third_party/WebKit/public/blink.gyp:blink',
29     '../third_party/icu/icu.gyp:icui18n',
30     '../third_party/icu/icu.gyp:icuuc',
31     '../third_party/libjingle/libjingle.gyp:libjingle',
32     '../third_party/mojo/mojo_edk.gyp:mojo_js_lib',
33     '../third_party/npapi/npapi.gyp:npapi',
34     '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
35     '../ui/accessibility/accessibility.gyp:accessibility',
36     '../ui/events/events.gyp:dom_keycode_converter',
37     '../ui/gfx/gfx.gyp:gfx',
38     '../ui/gfx/gfx.gyp:gfx_geometry',
39     '../ui/native_theme/native_theme.gyp:native_theme',
40     '../ui/surface/surface.gyp:surface',
41     '../v8/tools/gyp/v8.gyp:v8',
42     'content_common_mojo_bindings.gyp:content_common_mojo_bindings',
43   ],
44   'include_dirs': [
45     '..',
46     '<(SHARED_INTERMEDIATE_DIR)',  # Needed by key_systems.cc.
47   ],
48   'variables': {
49     'public_renderer_sources': [
50       'public/renderer/android_content_detection_prefixes.cc',
51       'public/renderer/android_content_detection_prefixes.h',
52       'public/renderer/browser_plugin_delegate.cc',
53       'public/renderer/browser_plugin_delegate.h',
54       'public/renderer/content_renderer_client.cc',
55       'public/renderer/content_renderer_client.h',
56       'public/renderer/context_menu_client.h',
57       'public/renderer/document_state.cc',
58       'public/renderer/document_state.h',
59       'public/renderer/media_stream_audio_renderer.h',
60       'public/renderer/navigation_state.cc',
61       'public/renderer/navigation_state.h',
62       'public/renderer/pepper_plugin_instance.h',
63       'public/renderer/platform_event_observer.h',
64       'public/renderer/render_font_warmup_win.h',
65       'public/renderer/render_frame.h',
66       'public/renderer/render_frame_observer.cc',
67       'public/renderer/render_frame_observer.h',
68       'public/renderer/render_frame_observer_tracker.h',
69       'public/renderer/render_process_observer.cc',
70       'public/renderer/render_process_observer.h',
71       'public/renderer/render_thread.cc',
72       'public/renderer/render_thread.h',
73       'public/renderer/render_view.h',
74       'public/renderer/render_view_observer.cc',
75       'public/renderer/render_view_observer.h',
76       'public/renderer/render_view_observer_tracker.h',
77       'public/renderer/render_view_visitor.h',
78       'public/renderer/renderer_ppapi_host.h',
79       'public/renderer/resource_fetcher.h',
80       'public/renderer/video_encode_accelerator.cc',
81       'public/renderer/video_encode_accelerator.h',
82       'public/renderer/video_frame_provider.h',
83     ],
84     'public_renderer_plugin_sources': [
85       'public/renderer/plugin_instance_throttler.h',
86     ],
87     'private_renderer_sources': [
88       'renderer/accessibility/blink_ax_enum_conversion.cc',
89       'renderer/accessibility/blink_ax_enum_conversion.h',
90       'renderer/accessibility/blink_ax_tree_source.cc',
91       'renderer/accessibility/blink_ax_tree_source.h',
92       'renderer/accessibility/renderer_accessibility.cc',
93       'renderer/accessibility/renderer_accessibility.h',
94       'renderer/android/address_detector.cc',
95       'renderer/android/address_detector.h',
96       'renderer/android/content_detector.cc',
97       'renderer/android/content_detector.h',
98       'renderer/android/email_detector.cc',
99       'renderer/android/email_detector.h',
100       'renderer/android/phone_number_detector.cc',
101       'renderer/android/phone_number_detector.h',
102       'renderer/android/renderer_date_time_picker.cc',
103       'renderer/android/renderer_date_time_picker.h',
104       'renderer/android/synchronous_compositor_factory.cc',
105       'renderer/android/synchronous_compositor_factory.h',
106       'renderer/background_sync/background_sync_client_impl.cc',
107       'renderer/background_sync/background_sync_client_impl.h',
108       'renderer/battery_status/battery_status_dispatcher.cc',
109       'renderer/battery_status/battery_status_dispatcher.h',
110       'renderer/bluetooth/bluetooth_dispatcher.cc',
111       'renderer/bluetooth/bluetooth_dispatcher.h',
112       'renderer/bluetooth/bluetooth_message_filter.cc',
113       'renderer/bluetooth/bluetooth_message_filter.h',
114       'renderer/bluetooth/web_bluetooth_impl.cc',
115       'renderer/bluetooth/web_bluetooth_impl.h',
116       'renderer/browser_plugin/browser_plugin.cc',
117       'renderer/browser_plugin/browser_plugin.h',
118       'renderer/browser_plugin/browser_plugin_manager.cc',
119       'renderer/browser_plugin/browser_plugin_manager.h',
120       'renderer/cache_storage/cache_storage_dispatcher.cc',
121       'renderer/cache_storage/cache_storage_dispatcher.h',
122       'renderer/cache_storage/cache_storage_message_filter.cc',
123       'renderer/cache_storage/cache_storage_message_filter.h',
124       'renderer/cache_storage/webserviceworkercachestorage_impl.cc',
125       'renderer/cache_storage/webserviceworkercachestorage_impl.h',
126       'renderer/child_frame_compositing_helper.cc',
127       'renderer/child_frame_compositing_helper.h',
128       'renderer/chrome_object_extensions_utils.cc',
129       'renderer/chrome_object_extensions_utils.h',
130       'renderer/clipboard_utils.cc',
131       'renderer/clipboard_utils.h',
132       'renderer/context_menu_params_builder.cc',
133       'renderer/context_menu_params_builder.h',
134       'renderer/cursor_utils.cc',
135       'renderer/cursor_utils.h',
136       'renderer/date_time_suggestion_builder.cc',
137       'renderer/date_time_suggestion_builder.h',
138       'renderer/device_sensors/device_light_event_pump.cc',
139       'renderer/device_sensors/device_light_event_pump.h',
140       'renderer/device_sensors/device_motion_event_pump.cc',
141       'renderer/device_sensors/device_motion_event_pump.h',
142       'renderer/device_sensors/device_orientation_event_pump.cc',
143       'renderer/device_sensors/device_orientation_event_pump.h',
144       'renderer/device_sensors/device_sensor_event_pump.h',
145       'renderer/devtools/devtools_agent.cc',
146       'renderer/devtools/devtools_agent.h',
147       'renderer/devtools/devtools_agent_filter.cc',
148       'renderer/devtools/devtools_agent_filter.h',
149       'renderer/devtools/devtools_client.cc',
150       'renderer/devtools/devtools_client.h',
151       'renderer/devtools/lock_free_circular_queue.h',
152       'renderer/devtools/v8_sampling_profiler.cc',
153       'renderer/devtools/v8_sampling_profiler.h',
154       'renderer/disambiguation_popup_helper.cc',
155       'renderer/disambiguation_popup_helper.h',
156       'renderer/dom_automation_controller.cc',
157       'renderer/dom_automation_controller.h',
158       'renderer/dom_storage/dom_storage_cached_area.cc',
159       'renderer/dom_storage/dom_storage_cached_area.h',
160       'renderer/dom_storage/dom_storage_dispatcher.cc',
161       'renderer/dom_storage/dom_storage_dispatcher.h',
162       'renderer/dom_storage/dom_storage_proxy.h',
163       'renderer/dom_storage/webstoragearea_impl.cc',
164       'renderer/dom_storage/webstoragearea_impl.h',
165       'renderer/dom_storage/webstoragenamespace_impl.cc',
166       'renderer/dom_storage/webstoragenamespace_impl.h',
167       'renderer/drop_data_builder.cc',
168       'renderer/drop_data_builder.h',
169       'renderer/fetchers/manifest_fetcher.cc',
170       'renderer/fetchers/manifest_fetcher.h',
171       'renderer/fetchers/multi_resolution_image_resource_fetcher.cc',
172       'renderer/fetchers/multi_resolution_image_resource_fetcher.h',
173       'renderer/fetchers/resource_fetcher_impl.cc',
174       'renderer/fetchers/resource_fetcher_impl.h',
175       'renderer/fetchers/web_url_loader_client_impl.cc',
176       'renderer/fetchers/web_url_loader_client_impl.h',
177       'renderer/gamepad_shared_memory_reader.cc',
178       'renderer/gamepad_shared_memory_reader.h',
179       'renderer/geolocation_dispatcher.cc',
180       'renderer/geolocation_dispatcher.h',
181       'renderer/gpu/compositor_dependencies.h',
182       'renderer/gpu/compositor_external_begin_frame_source.cc',
183       'renderer/gpu/compositor_external_begin_frame_source.h',
184       'renderer/gpu/compositor_forwarding_message_filter.cc',
185       'renderer/gpu/compositor_forwarding_message_filter.h',
186       'renderer/gpu/compositor_output_surface.cc',
187       'renderer/gpu/compositor_output_surface.h',
188       'renderer/gpu/delegated_compositor_output_surface.cc',
189       'renderer/gpu/delegated_compositor_output_surface.h',
190       'renderer/gpu/frame_swap_message_queue.cc',
191       'renderer/gpu/frame_swap_message_queue.h',
192       'renderer/gpu/gpu_benchmarking_extension.cc',
193       'renderer/gpu/gpu_benchmarking_extension.h',
194       'renderer/gpu/mailbox_output_surface.cc',
195       'renderer/gpu/mailbox_output_surface.h',
196       'renderer/gpu/queue_message_swap_promise.cc',
197       'renderer/gpu/queue_message_swap_promise.h',
198       'renderer/gpu/render_widget_compositor.cc',
199       'renderer/gpu/render_widget_compositor.h',
200       'renderer/gpu/stream_texture_host_android.cc',
201       'renderer/gpu/stream_texture_host_android.h',
202       'renderer/history_controller.cc',
203       'renderer/history_controller.h',
204       'renderer/history_entry.cc',
205       'renderer/history_entry.h',
206       'renderer/history_serialization.cc',
207       'renderer/history_serialization.h',
208       'renderer/idle_user_detector.cc',
209       'renderer/idle_user_detector.h',
210       'renderer/image_downloader/image_downloader_impl.cc',
211       'renderer/image_downloader/image_downloader_impl.h',
212       'renderer/ime_event_guard.cc',
213       'renderer/ime_event_guard.h',
214       'renderer/in_process_renderer_thread.cc',
215       'renderer/in_process_renderer_thread.h',
216       'renderer/input/input_event_filter.cc',
217       'renderer/input/input_event_filter.h',
218       'renderer/input/input_handler_manager.cc',
219       'renderer/input/input_handler_manager.h',
220       'renderer/input/input_handler_manager_client.h',
221       'renderer/input/input_handler_proxy.cc',
222       'renderer/input/input_handler_proxy.h',
223       'renderer/input/input_handler_wrapper.cc',
224       'renderer/input/input_handler_wrapper.h',
225       'renderer/input/input_scroll_elasticity_controller.cc',
226       'renderer/input/input_scroll_elasticity_controller.h',
227       'renderer/input/main_thread_input_event_filter.cc',
228       'renderer/input/main_thread_input_event_filter.h',
229       'renderer/internal_document_state_data.cc',
230       'renderer/internal_document_state_data.h',
231       'renderer/java/gin_java_bridge_dispatcher.cc',
232       'renderer/java/gin_java_bridge_dispatcher.h',
233       'renderer/java/gin_java_bridge_object.cc',
234       'renderer/java/gin_java_bridge_object.h',
235       'renderer/java/gin_java_bridge_value_converter.cc',
236       'renderer/java/gin_java_bridge_value_converter.h',
237       'renderer/java/gin_java_function_invocation_helper.cc',
238       'renderer/java/gin_java_function_invocation_helper.h',
239       'renderer/manifest/manifest_manager.cc',
240       'renderer/manifest/manifest_manager.h',
241       'renderer/manifest/manifest_parser.cc',
242       'renderer/manifest/manifest_parser.h',
243       'renderer/manifest/manifest_uma_util.cc',
244       'renderer/manifest/manifest_uma_util.h',
245       'renderer/media/aec_dump_message_filter.cc',
246       'renderer/media/aec_dump_message_filter.h',
247       'renderer/media/android/audio_decoder_android.cc',
248       'renderer/media/android/audio_decoder_android.h',
249       'renderer/media/android/media_info_loader.cc',
250       'renderer/media/android/media_info_loader.h',
251       'renderer/media/android/media_source_delegate.cc',
252       'renderer/media/android/media_source_delegate.h',
253       'renderer/media/android/renderer_demuxer_android.cc',
254       'renderer/media/android/renderer_demuxer_android.h',
255       'renderer/media/android/renderer_media_player_manager.cc',
256       'renderer/media/android/renderer_media_player_manager.h',
257       'renderer/media/android/stream_texture_factory.h',
258       'renderer/media/android/stream_texture_factory_impl.cc',
259       'renderer/media/android/stream_texture_factory_impl.h',
260       'renderer/media/android/stream_texture_factory_synchronous_impl.cc',
261       'renderer/media/android/stream_texture_factory_synchronous_impl.h',
262       'renderer/media/android/webmediaplayer_android.cc',
263       'renderer/media/android/webmediaplayer_android.h',
264       'renderer/media/audio_decoder.cc',
265       'renderer/media/audio_decoder.h',
266       'renderer/media/audio_device_factory.cc',
267       'renderer/media/audio_device_factory.h',
268       'renderer/media/audio_input_message_filter.cc',
269       'renderer/media/audio_input_message_filter.h',
270       'renderer/media/audio_message_filter.cc',
271       'renderer/media/audio_message_filter.h',
272       'renderer/media/audio_renderer_mixer_manager.cc',
273       'renderer/media/audio_renderer_mixer_manager.h',
274       'renderer/media/crypto/pepper_cdm_wrapper.h',
275       'renderer/media/crypto/pepper_cdm_wrapper_impl.cc',
276       'renderer/media/crypto/pepper_cdm_wrapper_impl.h',
277       'renderer/media/crypto/ppapi_decryptor.cc',
278       'renderer/media/crypto/ppapi_decryptor.h',
279       'renderer/media/crypto/render_cdm_factory.cc',
280       'renderer/media/crypto/render_cdm_factory.h',
281       'renderer/media/media_permission_dispatcher.cc',
282       'renderer/media/media_permission_dispatcher.h',
283       'renderer/media/media_stream_audio_level_calculator.cc',
284       'renderer/media/media_stream_audio_level_calculator.h',
285       'renderer/media/media_stream_center.h',
286       'renderer/media/media_stream_constraints_util.cc',
287       'renderer/media/media_stream_constraints_util.h',
288       'renderer/media/media_stream_dispatcher.h',
289       'renderer/media/media_stream_dispatcher_eventhandler.h',
290       'renderer/media/media_stream_track.cc',
291       'renderer/media/media_stream_track.h',
292       'renderer/media/midi_dispatcher.cc',
293       'renderer/media/midi_dispatcher.h',
294       'renderer/media/midi_message_filter.cc',
295       'renderer/media/midi_message_filter.h',
296       'renderer/media/render_media_client.cc',
297       'renderer/media/render_media_client.h',
298       'renderer/media/render_media_log.cc',
299       'renderer/media/render_media_log.h',
300       'renderer/media/renderer_gpu_video_accelerator_factories.cc',
301       'renderer/media/renderer_gpu_video_accelerator_factories.h',
302       'renderer/media/renderer_webaudiodevice_impl.cc',
303       'renderer/media/renderer_webaudiodevice_impl.h',
304       'renderer/media/renderer_webmidiaccessor_impl.cc',
305       'renderer/media/renderer_webmidiaccessor_impl.h',
306       'renderer/media/video_capture_impl.cc',
307       'renderer/media/video_capture_impl.h',
308       'renderer/media/video_capture_impl_manager.cc',
309       'renderer/media/video_capture_impl_manager.h',
310       'renderer/media/video_capture_message_filter.cc',
311       'renderer/media/video_capture_message_filter.h',
312       'renderer/media/webmediaplayer_ms.cc',
313       'renderer/media/webmediaplayer_ms.h',
314       'renderer/memory_benchmarking_extension.cc',
315       'renderer/memory_benchmarking_extension.h',
316       'renderer/menu_item_builder.cc',
317       'renderer/menu_item_builder.h',
318       'renderer/mhtml_generator.cc',
319       'renderer/mhtml_generator.h',
320       'renderer/mojo/service_registry_js_wrapper.cc',
321       'renderer/mojo/service_registry_js_wrapper.h',
322       'renderer/mouse_lock_dispatcher.cc',
323       'renderer/mouse_lock_dispatcher.h',
324       'renderer/navigation_state_impl.cc',
325       'renderer/navigation_state_impl.h',
326       'renderer/net_info_helper.cc',
327       'renderer/net_info_helper.h',
328       'renderer/notification_permission_dispatcher.cc',
329       'renderer/notification_permission_dispatcher.h',
330       'renderer/presentation/presentation_dispatcher.cc',
331       'renderer/presentation/presentation_dispatcher.h',
332       'renderer/presentation/presentation_session_client.cc',
333       'renderer/presentation/presentation_session_client.h',
334       'renderer/push_messaging/push_messaging_dispatcher.cc',
335       'renderer/push_messaging/push_messaging_dispatcher.h',
336       'renderer/raster_worker_pool.cc',
337       'renderer/raster_worker_pool.h',
338       'renderer/render_font_warmup_win.cc',
339       'renderer/render_frame_impl.cc',
340       'renderer/render_frame_impl.h',
341       'renderer/render_frame_proxy.cc',
342       'renderer/render_frame_proxy.h',
343       'renderer/render_process.h',
344       'renderer/render_process_impl.cc',
345       'renderer/render_process_impl.h',
346       'renderer/render_thread_impl.cc',
347       'renderer/render_thread_impl.h',
348       'renderer/render_view_impl.cc',
349       'renderer/render_view_impl.h',
350       'renderer/render_view_impl_android.cc',
351       'renderer/render_view_linux.cc',
352       'renderer/render_view_mouse_lock_dispatcher.cc',
353       'renderer/render_view_mouse_lock_dispatcher.h',
354       'renderer/render_view_win.cc',
355       'renderer/render_widget.cc',
356       'renderer/render_widget.h',
357       'renderer/render_widget_fullscreen.cc',
358       'renderer/render_widget_fullscreen.h',
359       'renderer/renderer_blink_platform_impl.cc',
360       'renderer/renderer_blink_platform_impl.h',
361       'renderer/renderer_clipboard_delegate.cc',
362       'renderer/renderer_clipboard_delegate.h',
363       'renderer/renderer_main.cc',
364       'renderer/renderer_main_platform_delegate.h',
365       'renderer/renderer_main_platform_delegate_android.cc',
366       'renderer/renderer_main_platform_delegate_linux.cc',
367       'renderer/renderer_main_platform_delegate_mac.mm',
368       'renderer/renderer_main_platform_delegate_win.cc',
369       'renderer/renderer_webapplicationcachehost_impl.cc',
370       'renderer/renderer_webapplicationcachehost_impl.h',
371       'renderer/renderer_webcolorchooser_impl.cc',
372       'renderer/renderer_webcolorchooser_impl.h',
373       'renderer/renderer_webcookiejar_impl.cc',
374       'renderer/renderer_webcookiejar_impl.h',
375       'renderer/resizing_mode_selector.cc',
376       'renderer/resizing_mode_selector.h',
377       'renderer/sad_plugin.cc',
378       'renderer/sad_plugin.h',
379       'renderer/savable_resources.cc',
380       'renderer/savable_resources.h',
381       'renderer/scheduler/resource_dispatch_throttler.cc',
382       'renderer/scheduler/resource_dispatch_throttler.h',
383       'renderer/screen_orientation/screen_orientation_dispatcher.cc',
384       'renderer/screen_orientation/screen_orientation_dispatcher.h',
385       'renderer/screen_orientation/screen_orientation_observer.cc',
386       'renderer/screen_orientation/screen_orientation_observer.h',
387       'renderer/service_worker/embedded_worker_devtools_agent.cc',
388       'renderer/service_worker/embedded_worker_devtools_agent.h',
389       'renderer/service_worker/embedded_worker_dispatcher.cc',
390       'renderer/service_worker/embedded_worker_dispatcher.h',
391       'renderer/service_worker/service_worker_context_client.cc',
392       'renderer/service_worker/service_worker_context_client.h',
393       'renderer/service_worker/service_worker_context_message_filter.cc',
394       'renderer/service_worker/service_worker_context_message_filter.h',
395       'renderer/service_worker/service_worker_type_util.cc',
396       'renderer/service_worker/service_worker_type_util.h',
397       'renderer/shared_memory_seqlock_reader.cc',
398       'renderer/shared_memory_seqlock_reader.h',
399       'renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.cc',
400       'renderer/shared_worker/embedded_shared_worker_content_settings_client_proxy.h',
401       'renderer/shared_worker/embedded_shared_worker_stub.cc',
402       'renderer/shared_worker/embedded_shared_worker_stub.h',
403       'renderer/shared_worker_repository.cc',
404       'renderer/shared_worker_repository.h',
405       'renderer/skia_benchmarking_extension.cc',
406       'renderer/skia_benchmarking_extension.h',
407       'renderer/speech_recognition_dispatcher.cc',
408       'renderer/speech_recognition_dispatcher.h',
409       'renderer/stats_collection_controller.cc',
410       'renderer/stats_collection_controller.h',
411       'renderer/stats_collection_observer.cc',
412       'renderer/stats_collection_observer.h',
413       'renderer/text_input_client_observer.cc',
414       'renderer/text_input_client_observer.h',
415       'renderer/web_ui_extension.cc',
416       'renderer/web_ui_extension.h',
417       'renderer/web_ui_extension_data.cc',
418       'renderer/web_ui_extension_data.h',
419       'renderer/web_ui_mojo.cc',
420       'renderer/web_ui_mojo.h',
421       'renderer/web_ui_mojo_context_state.cc',
422       'renderer/web_ui_mojo_context_state.h',
423       'renderer/web_ui_runner.cc',
424       'renderer/web_ui_runner.h',
425       'renderer/webclipboard_impl.cc',
426       'renderer/webclipboard_impl.h',
427       'renderer/webgraphicscontext3d_provider_impl.cc',
428       'renderer/webgraphicscontext3d_provider_impl.h',
429       'renderer/webpublicsuffixlist_impl.cc',
430       'renderer/webpublicsuffixlist_impl.h',
431       'renderer/webscrollbarbehavior_impl_gtkoraura.cc',
432       'renderer/webscrollbarbehavior_impl_gtkoraura.h',
433       'renderer/webscrollbarbehavior_impl_mac.h',
434       'renderer/webscrollbarbehavior_impl_mac.mm',
435       'renderer/websharedworker_proxy.cc',
436       'renderer/websharedworker_proxy.h',
437     ],
438     # Put WebRTC-related sources in the plugin+WebRTC section below.
439     'private_renderer_plugin_sources': [
440       'renderer/npapi/plugin_channel_host.cc',
441       'renderer/npapi/plugin_channel_host.h',
442       'renderer/npapi/webplugin_delegate_proxy.cc',
443       'renderer/npapi/webplugin_delegate_proxy.h',
444       'renderer/npapi/webplugin_impl.cc',
445       'renderer/npapi/webplugin_impl.h',
446       'renderer/pepper/audio_helper.cc',
447       'renderer/pepper/audio_helper.h',
448       'renderer/pepper/content_decryptor_delegate.cc',
449       'renderer/pepper/content_decryptor_delegate.h',
450       'renderer/pepper/content_renderer_pepper_host_factory.cc',
451       'renderer/pepper/content_renderer_pepper_host_factory.h',
452       'renderer/pepper/event_conversion.cc',
453       'renderer/pepper/event_conversion.h',
454       'renderer/pepper/fullscreen_container.h',
455       'renderer/pepper/gfx_conversion.h',
456       'renderer/pepper/host_array_buffer_var.cc',
457       'renderer/pepper/host_array_buffer_var.h',
458       'renderer/pepper/host_dispatcher_wrapper.cc',
459       'renderer/pepper/host_dispatcher_wrapper.h',
460       'renderer/pepper/host_globals.cc',
461       'renderer/pepper/host_globals.h',
462       'renderer/pepper/host_resource_var.cc',
463       'renderer/pepper/host_resource_var.h',
464       'renderer/pepper/host_var_tracker.cc',
465       'renderer/pepper/host_var_tracker.h',
466       'renderer/pepper/message_channel.cc',
467       'renderer/pepper/message_channel.h',
468       'renderer/pepper/pepper_audio_input_host.cc',
469       'renderer/pepper/pepper_audio_input_host.h',
470       'renderer/pepper/pepper_broker.cc',
471       'renderer/pepper/pepper_broker.h',
472       'renderer/pepper/pepper_browser_connection.cc',
473       'renderer/pepper/pepper_browser_connection.h',
474       'renderer/pepper/pepper_camera_device_host.cc',
475       'renderer/pepper/pepper_camera_device_host.h',
476       'renderer/pepper/pepper_compositor_host.cc',
477       'renderer/pepper/pepper_compositor_host.h',
478       'renderer/pepper/pepper_device_enumeration_host_helper.cc',
479       'renderer/pepper/pepper_device_enumeration_host_helper.h',
480       'renderer/pepper/pepper_file_chooser_host.cc',
481       'renderer/pepper/pepper_file_chooser_host.h',
482       'renderer/pepper/pepper_file_ref_renderer_host.cc',
483       'renderer/pepper/pepper_file_ref_renderer_host.h',
484       'renderer/pepper/pepper_file_system_host.cc',
485       'renderer/pepper/pepper_file_system_host.h',
486       'renderer/pepper/pepper_graphics_2d_host.cc',
487       'renderer/pepper/pepper_graphics_2d_host.h',
488       'renderer/pepper/pepper_hung_plugin_filter.cc',
489       'renderer/pepper/pepper_hung_plugin_filter.h',
490       'renderer/pepper/pepper_in_process_resource_creation.cc',
491       'renderer/pepper/pepper_in_process_resource_creation.h',
492       'renderer/pepper/pepper_in_process_router.cc',
493       'renderer/pepper/pepper_in_process_router.h',
494       'renderer/pepper/pepper_media_device_manager.cc',
495       'renderer/pepper/pepper_media_device_manager.h',
496       'renderer/pepper/pepper_platform_audio_input.cc',
497       'renderer/pepper/pepper_platform_audio_input.h',
498       'renderer/pepper/pepper_platform_audio_output.cc',
499       'renderer/pepper/pepper_platform_audio_output.h',
500       'renderer/pepper/pepper_platform_camera_device.cc',
501       'renderer/pepper/pepper_platform_camera_device.h',
502       'renderer/pepper/pepper_platform_video_capture.cc',
503       'renderer/pepper/pepper_platform_video_capture.h',
504       'renderer/pepper/pepper_plugin_instance_impl.cc',
505       'renderer/pepper/pepper_plugin_instance_impl.h',
506       'renderer/pepper/pepper_plugin_instance_metrics.cc',
507       'renderer/pepper/pepper_plugin_instance_metrics.h',
508       'renderer/pepper/pepper_plugin_registry.cc',
509       'renderer/pepper/pepper_plugin_registry.h',
510       'renderer/pepper/pepper_proxy_channel_delegate_impl.cc',
511       'renderer/pepper/pepper_proxy_channel_delegate_impl.h',
512       'renderer/pepper/pepper_try_catch.cc',
513       'renderer/pepper/pepper_try_catch.h',
514       'renderer/pepper/pepper_url_loader_host.cc',
515       'renderer/pepper/pepper_url_loader_host.h',
516       'renderer/pepper/pepper_video_capture_host.cc',
517       'renderer/pepper/pepper_video_capture_host.h',
518       'renderer/pepper/pepper_video_decoder_host.cc',
519       'renderer/pepper/pepper_video_decoder_host.h',
520       'renderer/pepper/pepper_video_encoder_host.cc',
521       'renderer/pepper/pepper_video_encoder_host.h',
522       'renderer/pepper/pepper_webplugin_impl.cc',
523       'renderer/pepper/pepper_webplugin_impl.h',
524       'renderer/pepper/pepper_websocket_host.cc',
525       'renderer/pepper/pepper_websocket_host.h',
526       'renderer/pepper/plugin_instance_throttler_impl.cc',
527       'renderer/pepper/plugin_instance_throttler_impl.h',
528       'renderer/pepper/plugin_module.cc',
529       'renderer/pepper/plugin_module.h',
530       'renderer/pepper/plugin_object.cc',
531       'renderer/pepper/plugin_object.h',
532       'renderer/pepper/plugin_power_saver_helper.cc',
533       'renderer/pepper/plugin_power_saver_helper.h',
534       'renderer/pepper/ppapi_preferences_builder.cc',
535       'renderer/pepper/ppapi_preferences_builder.h',
536       'renderer/pepper/ppb_audio_impl.cc',
537       'renderer/pepper/ppb_audio_impl.h',
538       'renderer/pepper/ppb_broker_impl.cc',
539       'renderer/pepper/ppb_broker_impl.h',
540       'renderer/pepper/ppb_buffer_impl.cc',
541       'renderer/pepper/ppb_buffer_impl.h',
542       'renderer/pepper/ppb_flash_message_loop_impl.cc',
543       'renderer/pepper/ppb_flash_message_loop_impl.h',
544       'renderer/pepper/ppb_graphics_3d_impl.cc',
545       'renderer/pepper/ppb_graphics_3d_impl.h',
546       'renderer/pepper/ppb_image_data_impl.cc',
547       'renderer/pepper/ppb_image_data_impl.h',
548       'renderer/pepper/ppb_proxy_impl.cc',
549       'renderer/pepper/ppb_proxy_impl.h',
550       'renderer/pepper/ppb_var_deprecated_impl.cc',
551       'renderer/pepper/ppb_var_deprecated_impl.h',
552       'renderer/pepper/ppb_video_decoder_impl.cc',
553       'renderer/pepper/ppb_video_decoder_impl.h',
554       'renderer/pepper/renderer_ppapi_host_impl.cc',
555       'renderer/pepper/renderer_ppapi_host_impl.h',
556       'renderer/pepper/renderer_restrict_dispatch_group.h',
557       'renderer/pepper/resource_converter.cc',
558       'renderer/pepper/resource_converter.h',
559       'renderer/pepper/resource_creation_impl.cc',
560       'renderer/pepper/resource_creation_impl.h',
561       'renderer/pepper/url_request_info_util.cc',
562       'renderer/pepper/url_request_info_util.h',
563       'renderer/pepper/url_response_info_util.cc',
564       'renderer/pepper/url_response_info_util.h',
565       'renderer/pepper/v8_var_converter.cc',
566       'renderer/pepper/v8_var_converter.h',
567       'renderer/pepper/v8object_var.cc',
568       'renderer/pepper/v8object_var.h',
569       'renderer/pepper/video_decoder_shim.cc',
570       'renderer/pepper/video_decoder_shim.h',
571       'renderer/pepper/video_encoder_shim.cc',
572       'renderer/pepper/video_encoder_shim.h',
573       'renderer/render_widget_fullscreen_pepper.cc',
574       'renderer/render_widget_fullscreen_pepper.h',
575     ],
576     'public_renderer_webrtc_sources': [
577       'public/renderer/media_stream_api.cc',
578       'public/renderer/media_stream_api.h',
579       'public/renderer/media_stream_audio_sink.cc',
580       'public/renderer/media_stream_audio_sink.h',
581       'public/renderer/media_stream_renderer_factory.h',
582       'public/renderer/media_stream_sink.h',
583       'public/renderer/media_stream_video_sink.cc',
584       'public/renderer/media_stream_video_sink.h',
585       'public/renderer/webrtc_log_message_delegate.h',
586     ],
587     # WebRTC-specific sources. Put WebRTC plugin-related stuff in the
588     # Plugin+WebRTC section below.
589     'private_renderer_webrtc_sources': [
590       'renderer/media/media_stream.cc',
591       'renderer/media/media_stream.h',
592       'renderer/media/media_stream_audio_processor.cc',
593       'renderer/media/media_stream_audio_processor.h',
594       'renderer/media/media_stream_audio_processor_options.cc',
595       'renderer/media/media_stream_audio_processor_options.h',
596       'renderer/media/media_stream_audio_sink_owner.cc',
597       'renderer/media/media_stream_audio_sink_owner.h',
598       'renderer/media/media_stream_audio_source.cc',
599       'renderer/media/media_stream_audio_source.h',
600       'renderer/media/media_stream_audio_track_sink.h',
601       'renderer/media/media_stream_center.cc',
602       'renderer/media/media_stream_dispatcher.cc',
603       'renderer/media/media_stream_registry_interface.h',
604       'renderer/media/media_stream_renderer_factory_impl.cc',
605       'renderer/media/media_stream_renderer_factory_impl.h',
606       'renderer/media/media_stream_source.cc',
607       'renderer/media/media_stream_source.h',
608       'renderer/media/media_stream_video_capturer_source.cc',
609       'renderer/media/media_stream_video_capturer_source.h',
610       'renderer/media/media_stream_video_source.cc',
611       'renderer/media/media_stream_video_source.h',
612       'renderer/media/media_stream_video_track.cc',
613       'renderer/media/media_stream_video_track.h',
614       'renderer/media/peer_connection_identity_service.cc',
615       'renderer/media/peer_connection_identity_service.h',
616       'renderer/media/peer_connection_tracker.cc',
617       'renderer/media/peer_connection_tracker.h',
618       'renderer/media/remote_media_stream_impl.cc',
619       'renderer/media/remote_media_stream_impl.h',
620       'renderer/media/rtc_data_channel_handler.cc',
621       'renderer/media/rtc_data_channel_handler.h',
622       'renderer/media/rtc_dtmf_sender_handler.cc',
623       'renderer/media/rtc_dtmf_sender_handler.h',
624       'renderer/media/rtc_media_constraints.cc',
625       'renderer/media/rtc_media_constraints.h',
626       'renderer/media/rtc_peer_connection_handler.cc',
627       'renderer/media/rtc_peer_connection_handler.h',
628       'renderer/media/rtc_video_decoder.cc',
629       'renderer/media/rtc_video_decoder.h',
630       'renderer/media/rtc_video_decoder_factory.cc',
631       'renderer/media/rtc_video_decoder_factory.h',
632       'renderer/media/rtc_video_encoder.cc',
633       'renderer/media/rtc_video_encoder.h',
634       'renderer/media/rtc_video_encoder_factory.cc',
635       'renderer/media/rtc_video_encoder_factory.h',
636       'renderer/media/rtc_video_renderer.cc',
637       'renderer/media/rtc_video_renderer.h',
638       'renderer/media/speech_recognition_audio_sink.cc',
639       'renderer/media/speech_recognition_audio_sink.h',
640       'renderer/media/user_media_client_impl.cc',
641       'renderer/media/video_source_handler.cc',
642       'renderer/media/video_source_handler.h',
643       'renderer/media/video_track_adapter.cc',
644       'renderer/media/video_track_adapter.h',
645       'renderer/media/webaudio_capturer_source.cc',
646       'renderer/media/webaudio_capturer_source.h',
647       'renderer/media/webrtc/media_stream_remote_video_source.cc',
648       'renderer/media/webrtc/media_stream_remote_video_source.h',
649       'renderer/media/webrtc/media_stream_track_metrics.cc',
650       'renderer/media/webrtc/media_stream_track_metrics.h',
651       'renderer/media/webrtc/peer_connection_dependency_factory.cc',
652       'renderer/media/webrtc/peer_connection_dependency_factory.h',
653       'renderer/media/webrtc/stun_field_trial.cc',
654       'renderer/media/webrtc/stun_field_trial.h',
655       'renderer/media/webrtc/track_observer.cc',
656       'renderer/media/webrtc/track_observer.h',
657       'renderer/media/webrtc/video_destination_handler.cc',
658       'renderer/media/webrtc/video_destination_handler.h',
659       'renderer/media/webrtc/webrtc_audio_sink_adapter.cc',
660       'renderer/media/webrtc/webrtc_audio_sink_adapter.h',
661       'renderer/media/webrtc/webrtc_local_audio_track_adapter.cc',
662       'renderer/media/webrtc/webrtc_local_audio_track_adapter.h',
663       'renderer/media/webrtc/webrtc_media_stream_adapter.cc',
664       'renderer/media/webrtc/webrtc_media_stream_adapter.h',
665       'renderer/media/webrtc/webrtc_video_capturer_adapter.cc',
666       'renderer/media/webrtc/webrtc_video_capturer_adapter.h',
667       'renderer/media/webrtc/webrtc_video_frame_adapter.cc',
668       'renderer/media/webrtc/webrtc_video_frame_adapter.h',
669       'renderer/media/webrtc/webrtc_video_track_adapter.cc',
670       'renderer/media/webrtc/webrtc_video_track_adapter.h',
671       'renderer/media/webrtc_audio_capturer.cc',
672       'renderer/media/webrtc_audio_capturer.h',
673       'renderer/media/webrtc_audio_device_impl.cc',
674       'renderer/media/webrtc_audio_device_impl.h',
675       'renderer/media/webrtc_audio_device_not_impl.cc',
676       'renderer/media/webrtc_audio_device_not_impl.h',
677       'renderer/media/webrtc_audio_renderer.cc',
678       'renderer/media/webrtc_audio_renderer.h',
679       'renderer/media/webrtc_identity_service.cc',
680       'renderer/media/webrtc_identity_service.h',
681       'renderer/media/webrtc_local_audio_renderer.cc',
682       'renderer/media/webrtc_local_audio_renderer.h',
683       'renderer/media/webrtc_local_audio_source_provider.cc',
684       'renderer/media/webrtc_local_audio_source_provider.h',
685       'renderer/media/webrtc_local_audio_track.cc',
686       'renderer/media/webrtc_local_audio_track.h',
687       'renderer/media/webrtc_logging.cc',
688       'renderer/media/webrtc_logging.h',
689       'renderer/media/webrtc_uma_histograms.cc',
690       'renderer/media/webrtc_uma_histograms.h',
691       'renderer/p2p/host_address_request.cc',
692       'renderer/p2p/host_address_request.h',
693       'renderer/p2p/ipc_network_manager.cc',
694       'renderer/p2p/ipc_network_manager.h',
695       'renderer/p2p/ipc_socket_factory.cc',
696       'renderer/p2p/ipc_socket_factory.h',
697       'renderer/p2p/network_list_observer.h',
698       'renderer/p2p/port_allocator.cc',
699       'renderer/p2p/port_allocator.h',
700       'renderer/p2p/socket_client_impl.cc',
701       'renderer/p2p/socket_client_impl.h',
702       'renderer/p2p/socket_dispatcher.cc',
703       'renderer/p2p/socket_dispatcher.h',
704     ],
705     # Stuff only used when both WebRTC and plugins are enabled.
706     'private_renderer_plugin_webrtc_sources': [
707       'renderer/pepper/pepper_media_stream_audio_track_host.cc',
708       'renderer/pepper/pepper_media_stream_audio_track_host.h',
709       'renderer/pepper/pepper_media_stream_track_host_base.cc',
710       'renderer/pepper/pepper_media_stream_track_host_base.h',
711       'renderer/pepper/pepper_media_stream_video_track_host.cc',
712       'renderer/pepper/pepper_media_stream_video_track_host.h',
713       'renderer/pepper/pepper_video_destination_host.cc',
714       'renderer/pepper/pepper_video_destination_host.h',
715       'renderer/pepper/pepper_video_source_host.cc',
716       'renderer/pepper/pepper_video_source_host.h',
717     ]
718   },
719   'sources': [
720     '<@(public_renderer_sources)',
721     '<@(private_renderer_sources)',
722   ],
723   'conditions': [
724     ['OS=="mac"', {
725       'sources!': [
726         'common/process_watcher_posix.cc',
727         'renderer/webscrollbarbehavior_impl_gtkoraura.cc',
728         'renderer/webscrollbarbehavior_impl_gtkoraura.h',
729       ],
730       'sources': [
731         'renderer/external_popup_menu.cc',
732         'renderer/external_popup_menu.h',
733       ],
734     }, {
735       'sources!': [
736         'renderer/webscrollbarbehavior_impl_mac.h',
737         'renderer/webscrollbarbehavior_impl_mac.mm',
738       ],
739     }],
740     ['OS=="win" and win_use_allocator_shim==1', {
741       'dependencies': [
742           '../base/allocator/allocator.gyp:allocator',
743       ],
744     }],
745     ['OS=="android"', {
746       'sources!': [
747         'renderer/media/audio_decoder.cc',
748       ],
749       'sources': [
750         'renderer/external_popup_menu.cc',
751         'renderer/external_popup_menu.h',
752       ],
753       'dependencies': [
754         '../build/android/ndk.gyp:cpu_features',
755         '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber',
756       ],
757     }, {
758       'sources!': [
759         'renderer/java/gin_java_bridge_dispatcher.cc',
760         'renderer/java/gin_java_bridge_dispatcher.h',
761         'renderer/java/gin_java_bridge_object.cc',
762         'renderer/java/gin_java_bridge_object.h',
763         'renderer/java/gin_java_bridge_value_converter.cc',
764         'renderer/java/gin_java_bridge_value_converter.h',
765         'renderer/java/gin_java_function_invocation_helper.cc',
766         'renderer/java/gin_java_function_invocation_helper.h',
767       ],
768       'dependencies': [
769         '../media/cast/cast.gyp:cast_sender',
770       ]
771     }],
772     # TODO(jrg): remove the OS=="android" section?
773     # http://crbug.com/113172
774     # Understand better how media_stream_ is tied into Chromium.
775     ['enable_webrtc==0 and OS=="android"', {
776       'sources/': [
777         ['exclude', '^renderer/media/media_stream_'],
778       ],
779     }],
780     ['enable_webrtc==1', {
781       'dependencies': [
782         '../third_party/libjingle/libjingle.gyp:libjingle_webrtc',
783         '../third_party/libjingle/libjingle.gyp:libpeerconnection',
784         '../third_party/libyuv/libyuv.gyp:libyuv',
785         '../third_party/webrtc/modules/modules.gyp:audio_device',
786         '../third_party/webrtc/modules/modules.gyp:audio_processing',
787         '../third_party/webrtc/p2p/p2p.gyp:libstunprober',
788         '<(DEPTH)/crypto/crypto.gyp:crypto',
789       ],
790       'sources': [
791         '<@(public_renderer_webrtc_sources)',
792         '<@(private_renderer_webrtc_sources)',
793       ],
794     },{  # enable_webrtc==0
795       'sources': [
796         'renderer/media/webrtc_logging.h',
797         'renderer/media/webrtc_logging_noop.cc',
798       ],
799     }],
800     ['enable_plugins==1', {
801       'sources': [
802         '<@(public_renderer_plugin_sources)',
803         '<@(private_renderer_plugin_sources)',
804       ],
805       'conditions': [
806         ['OS=="android"', {
807           'sources!': [
808             # Android does not build FFmpeg, which these depend on.
809             'renderer/pepper/video_decoder_shim.cc',
810             'renderer/pepper/video_decoder_shim.h',
811             'renderer/pepper/video_encoder_shim.cc',
812             'renderer/pepper/video_encoder_shim.h',
813           ],
814         }],
815       ],
816       'dependencies': [
817         '../ppapi/ppapi_internal.gyp:ppapi_host',
818         '../ppapi/ppapi_internal.gyp:ppapi_proxy',
819         '../ppapi/ppapi_internal.gyp:ppapi_shared',
820         '../third_party/libyuv/libyuv.gyp:libyuv',
821       ],
822     }, {  # enable_plugins==0
823       'sources!': [
824         # These are not in the plugins sources list since it also requires webrtc.
825         'renderer/media/webrtc/video_destination_handler.cc',
826         'renderer/media/webrtc/video_destination_handler.h',
827       ],
828     }],
829     ['enable_plugins==1 and enable_webrtc==1', {
830       'sources': [
831         '<@(private_renderer_plugin_webrtc_sources)',
832       ],
833     }],
834     ['enable_pepper_cdms != 1', {
835       'sources!': [
836         'renderer/media/crypto/pepper_cdm_wrapper.h',
837         'renderer/media/crypto/pepper_cdm_wrapper_impl.cc',
838         'renderer/media/crypto/pepper_cdm_wrapper_impl.h',
839         'renderer/media/crypto/ppapi_decryptor.cc',
840         'renderer/media/crypto/ppapi_decryptor.h',
841       ],
842     }],
843     ['enable_browser_cdms==1', {
844       'sources': [
845         'renderer/media/crypto/proxy_media_keys.cc',
846         'renderer/media/crypto/proxy_media_keys.h',
847         'renderer/media/crypto/renderer_cdm_manager.cc',
848         'renderer/media/crypto/renderer_cdm_manager.h',
849       ],
850     }],
851     ['use_seccomp_bpf==1', {
852       'defines': ['USE_SECCOMP_BPF'],
853     }],
854     ['enable_webvr==1', {
855       'sources': [
856         'renderer/vr/vr_dispatcher.cc',
857         'renderer/vr/vr_dispatcher.h',
858         'renderer/vr/vr_type_converters.cc',
859         'renderer/vr/vr_type_converters.h',
860       ]
861     }],
862   ],
863   'target_conditions': [
864     ['OS=="android"', {
865       'sources/': [
866         ['include', '^renderer/render_view_linux\\.cc$'],
867       ],
868     }],
869   ],