[safe browsing] Switch to independent cache lifetimes for gethash items.
[chromium-blink-merge.git] / content / content_child.gypi
blobe695981e3615ab8edcff44e279a9f77dbc00b4a7
1 # Copyright 2013 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     '../components/tracing.gyp:tracing',
9     '../mojo/mojo.gyp:mojo_environment_chromium',
10     '../mojo/mojo.gyp:mojo_shell_bindings',
11     '../skia/skia.gyp:skia',
12     '../ui/base/ui_base.gyp:ui_base',
13     '../ui/gfx/gfx.gyp:gfx',
14     '../ui/gfx/gfx.gyp:gfx_geometry',
15     '../url/url.gyp:url_lib',
16   ],
17   'include_dirs': [
18     '..',
19   ],
20   'export_dependent_settings': [
21     '../base/base.gyp:base',
22   ],
23   'sources': [
24     'child/appcache/appcache_backend_proxy.cc',
25     'child/appcache/appcache_backend_proxy.h',
26     'child/appcache/appcache_dispatcher.cc',
27     'child/appcache/appcache_dispatcher.h',
28     'child/appcache/appcache_frontend_impl.cc',
29     'child/appcache/appcache_frontend_impl.h',
30     'child/appcache/web_application_cache_host_impl.cc',
31     'child/appcache/web_application_cache_host_impl.h',
32     'child/blink_glue.cc',
33     'child/blink_glue.h',
34     'child/blink_platform_impl.cc',
35     'child/blink_platform_impl.h',
36     'child/browser_font_resource_trusted.cc',
37     'child/browser_font_resource_trusted.h',
38     'child/child_histogram_message_filter.cc',
39     'child/child_histogram_message_filter.h',
40     'child/child_message_filter.cc',
41     'child/child_message_filter.h',
42     'child/child_process.cc',
43     'child/child_process.h',
44     'child/child_resource_message_filter.cc',
45     'child/child_resource_message_filter.h',
46     'child/child_shared_bitmap_manager.cc',
47     'child/child_shared_bitmap_manager.h',
48     'child/child_thread.cc',
49     'child/child_thread.h',
50     'child/content_child_helpers.cc',
51     'child/content_child_helpers.h',
52     'child/database_util.cc',
53     'child/database_util.h',
54     'child/db_message_filter.cc',
55     'child/db_message_filter.h',
56     'child/fileapi/file_system_dispatcher.cc',
57     'child/fileapi/file_system_dispatcher.h',
58     'child/fileapi/webfilesystem_impl.cc',
59     'child/fileapi/webfilesystem_impl.h',
60     'child/fileapi/webfilewriter_base.cc',
61     'child/fileapi/webfilewriter_base.h',
62     'child/fileapi/webfilewriter_impl.cc',
63     'child/fileapi/webfilewriter_impl.h',
64     'child/fling_animator_impl_android.cc',
65     'child/fling_animator_impl_android.h',
66     'child/fling_curve_configuration.cc',
67     'child/fling_curve_configuration.h',
68     'child/ftp_directory_listing_response_delegate.cc',
69     'child/ftp_directory_listing_response_delegate.h',
70     'child/image_decoder.cc',
71     'child/image_decoder.h',
72     'child/indexed_db/indexed_db_dispatcher.cc',
73     'child/indexed_db/indexed_db_dispatcher.h',
74     'child/indexed_db/indexed_db_key_builders.cc',
75     'child/indexed_db/indexed_db_key_builders.h',
76     'child/indexed_db/indexed_db_message_filter.cc',
77     'child/indexed_db/indexed_db_message_filter.h',
78     'child/indexed_db/webidbcursor_impl.cc',
79     'child/indexed_db/webidbcursor_impl.h',
80     'child/indexed_db/webidbdatabase_impl.cc',
81     'child/indexed_db/webidbdatabase_impl.h',
82     'child/indexed_db/webidbfactory_impl.cc',
83     'child/indexed_db/webidbfactory_impl.h',
84     'child/mojo/mojo_application.cc',
85     'child/mojo/mojo_application.h',
86     'child/npapi/np_channel_base.cc',
87     'child/npapi/np_channel_base.h',
88     'child/npapi/npobject_base.h',
89     'child/npapi/npobject_proxy.cc',
90     'child/npapi/npobject_proxy.h',
91     'child/npapi/npobject_stub.cc',
92     'child/npapi/npobject_stub.h',
93     'child/npapi/npobject_util.cc',
94     'child/npapi/npobject_util.h',
95     'child/npapi/npruntime_util.cc',
96     'child/npapi/npruntime_util.h',
97     'child/npapi/plugin_host.cc',
98     'child/npapi/plugin_host.h',
99     'child/npapi/plugin_instance.cc',
100     'child/npapi/plugin_instance.h',
101     'child/npapi/plugin_instance_mac.mm',
102     'child/npapi/plugin_lib.cc',
103     'child/npapi/plugin_lib.h',
104     'child/npapi/plugin_stream.cc',
105     'child/npapi/plugin_stream.h',
106     'child/npapi/plugin_stream_posix.cc',
107     'child/npapi/plugin_stream_url.cc',
108     'child/npapi/plugin_stream_url.h',
109     'child/npapi/plugin_stream_win.cc',
110     'child/npapi/plugin_string_stream.cc',
111     'child/npapi/plugin_string_stream.h',
112     'child/npapi/plugin_url_fetcher.cc',
113     'child/npapi/plugin_url_fetcher.h',
114     'child/npapi/plugin_web_event_converter_mac.h',
115     'child/npapi/plugin_web_event_converter_mac.mm',
116     'child/npapi/webplugin.h',
117     'child/npapi/webplugin_accelerated_surface_mac.h',
118     'child/npapi/webplugin_delegate.h',
119     'child/npapi/webplugin_delegate_impl.cc',
120     'child/npapi/webplugin_delegate_impl.h',
121     'child/npapi/webplugin_delegate_impl_android.cc',
122     'child/npapi/webplugin_delegate_impl_aura.cc',
123     'child/npapi/webplugin_delegate_impl_mac.mm',
124     'child/npapi/webplugin_delegate_impl_win.cc',
125     'child/npapi/webplugin_ime_win.cc',
126     'child/npapi/webplugin_ime_win.h',
127     'child/npapi/webplugin_resource_client.h',
128     'child/plugin_message_generator.cc',
129     'child/plugin_message_generator.h',
130     'child/plugin_messages.h',
131     'child/plugin_param_traits.cc',
132     'child/plugin_param_traits.h',
133     'child/power_monitor_broadcast_source.cc',
134     'child/power_monitor_broadcast_source.h',
135     'child/quota_dispatcher.cc',
136     'child/quota_dispatcher.h',
137     'child/quota_message_filter.cc',
138     'child/quota_message_filter.h',
139     'child/request_extra_data.cc',
140     'child/request_extra_data.h',
141     'child/request_info.cc',
142     'child/request_info.h',
143     'child/resource_dispatcher.cc',
144     'child/resource_dispatcher.h',
145     'child/runtime_features.cc',
146     'child/runtime_features.h',
147     'child/scoped_child_process_reference.cc',
148     'child/scoped_child_process_reference.h',
149     'child/service_worker/service_worker_handle_reference.cc',
150     'child/service_worker/service_worker_handle_reference.h',
151     'child/service_worker/service_worker_dispatcher.cc',
152     'child/service_worker/service_worker_dispatcher.h',
153     'child/service_worker/service_worker_message_filter.cc',
154     'child/service_worker/service_worker_message_filter.h',
155     'child/service_worker/service_worker_network_provider.cc',
156     'child/service_worker/service_worker_network_provider.h',
157     'child/service_worker/service_worker_provider_context.cc',
158     'child/service_worker/service_worker_provider_context.h',
159     'child/service_worker/web_service_worker_impl.cc',
160     'child/service_worker/web_service_worker_impl.h',
161     'child/service_worker/web_service_worker_provider_impl.cc',
162     'child/service_worker/web_service_worker_provider_impl.h',
163     'child/shared_worker_devtools_agent.cc',
164     'child/shared_worker_devtools_agent.h',
165     'child/simple_webmimeregistry_impl.cc',
166     'child/simple_webmimeregistry_impl.h',
167     'child/site_isolation_policy.cc',
168     'child/site_isolation_policy.h',
169     'child/socket_stream_dispatcher.cc',
170     'child/socket_stream_dispatcher.h',
171     'child/sync_load_response.cc',
172     'child/sync_load_response.h',
173     'child/thread_safe_sender.cc',
174     'child/thread_safe_sender.h',
175     'child/touch_fling_gesture_curve.cc',
176     'child/touch_fling_gesture_curve.h',
177     'child/web_database_observer_impl.cc',
178     'child/web_database_observer_impl.h',
179     'child/web_discardable_memory_impl.cc',
180     'child/web_discardable_memory_impl.h',
181     'child/web_socket_stream_handle_bridge.h',
182     'child/web_socket_stream_handle_delegate.h',
183     'child/web_socket_stream_handle_impl.cc',
184     'child/web_socket_stream_handle_impl.h',
185     'child/web_url_loader_impl.cc',
186     'child/web_url_loader_impl.h',
187     'child/webblobregistry_impl.cc',
188     'child/webblobregistry_impl.h',
189     'child/webcrypto/crypto_data.cc',
190     'child/webcrypto/crypto_data.h',
191     'child/webcrypto/jwk.cc',
192     'child/webcrypto/jwk.h',
193     'child/webcrypto/platform_crypto.h',
194     'child/webcrypto/platform_crypto_nss.cc',
195     'child/webcrypto/platform_crypto_openssl.cc',
196     'child/webcrypto/shared_crypto.cc',
197     'child/webcrypto/shared_crypto.h',
198     'child/webcrypto/status.cc',
199     'child/webcrypto/status.h',
200     'child/webcrypto/webcrypto_impl.cc',
201     'child/webcrypto/webcrypto_impl.h',
202     'child/webcrypto/webcrypto_util.cc',
203     'child/webcrypto/webcrypto_util.h',
204     'child/webfallbackthemeengine_impl.cc',
205     'child/webfallbackthemeengine_impl.h',
206     'child/webfileutilities_impl.cc',
207     'child/webfileutilities_impl.h',
208     'child/webmessageportchannel_impl.cc',
209     'child/webmessageportchannel_impl.h',
210     'child/websocket_bridge.cc',
211     'child/websocket_bridge.h',
212     'child/websocket_dispatcher.cc',
213     'child/websocket_dispatcher.h',
214     'child/webthemeengine_impl_android.cc',
215     'child/webthemeengine_impl_android.h',
216     'child/webthemeengine_impl_default.cc',
217     'child/webthemeengine_impl_default.h',
218     'child/webthemeengine_impl_mac.cc',
219     'child/webthemeengine_impl_mac.h',
220     'child/webthread_impl.cc',
221     'child/webthread_impl.h',
222     'child/worker_task_runner.cc',
223     'child/worker_task_runner.h',
224     'child/worker_thread_task_runner.cc',
225     'child/worker_thread_task_runner.h',
226     'public/child/image_decoder_utils.h',
227     'public/child/request_peer.h',
228     'public/child/resource_dispatcher_delegate.h',
229   ],
230   'conditions': [
231     ['use_default_render_theme==0',
232       {
233         'sources/': [
234           ['exclude', 'child/webthemeengine_impl_default.cc'],
235           ['exclude', 'child/webthemeengine_impl_default.h'],
236         ],
237       }
238     ],
239     ['OS=="android"', {
240       'includes': [
241         '../build/android/cpufeatures.gypi',
242       ],
243     }],
244     ['enable_plugins==0', {
245       'sources!': [
246         'child/browser_font_resource_trusted.cc',
247       ],
248       'sources/': [
249         ['exclude', '^child/npapi/plugin_'],
250         ['exclude', '^child/npapi/webplugin_'],
251       ],
252     }],
253     ['OS=="ios"', {
254       'sources/': [
255         # iOS only needs a small portion of content; exclude all the
256         # implementation, and re-include what is used.
257         ['exclude', '\\.(cc|mm)$'],
258       ],
259     }, {  # OS!="ios"
260       'dependencies': [
261         '../third_party/WebKit/public/blink.gyp:blink',
262         '../third_party/npapi/npapi.gyp:npapi',
263         '../webkit/child/webkit_child.gyp:webkit_child',
264         '../webkit/common/webkit_common.gyp:webkit_common',
265         '../webkit/webkit_resources.gyp:webkit_resources',
266       ],
267     }],
268     ['use_aura==1', {
269       'sources!': [
270         'child/npapi/webplugin_delegate_impl_mac.mm',
271       ],
272     }],
273     ['OS=="win"', {
274       'sources!': [
275         'child/npapi/webplugin_delegate_impl_aura.cc',
276       ],
277     }],
278     ['use_openssl==1', {
279       'sources!': [
280         'child/webcrypto/platform_crypto_nss.cc',
281       ],
282       'dependencies': [
283         '../third_party/openssl/openssl.gyp:openssl',
284       ],
285     }, {
286       'sources!': [
287         'child/webcrypto/platform_crypto_openssl.cc',
288       ],
289       'conditions': [
290         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
291           'dependencies': [
292             '../build/linux/system.gyp:ssl',
293           ],
294         }, {
295           'dependencies': [
296             '../third_party/nss/nss.gyp:nspr',
297             '../third_party/nss/nss.gyp:nss',
298           ],
299         }],
300       ],
301     }],
302   ],