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