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