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