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