Updating trunk VERSION from 934.0 to 935.0
[chromium-blink-merge.git] / net / net.gyp
blob970a9e1e78e247129b10a8e52c43c341027de8a0
1 # Copyright (c) 2011 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   'variables': {
7     'chromium_code': 1,
9     'linux_link_kerberos%': 0,
10     'conditions': [
11       ['chromeos==1', {
12         # Disable Kerberos on ChromeOS, at least for now.
13         # It needs configuration (krb5.conf and so on).
14         'use_kerberos%': 0,
15       }, {  # chromeos == 0
16         'use_kerberos%': 1,
17       }],
18     ],
19   },
20   'includes': [
21     '../build/win_precompile.gypi',
22   ],
23   'targets': [
24     {
25       'target_name': 'net',
26       'type': '<(component)',
27       'dependencies': [
28         '../base/base.gyp:base',
29         '../base/base.gyp:base_i18n',
30         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
31         '../build/temp_gyp/googleurl.gyp:googleurl',
32         '../crypto/crypto.gyp:crypto',
33         '../sdch/sdch.gyp:sdch',
34         '../third_party/icu/icu.gyp:icui18n',
35         '../third_party/icu/icu.gyp:icuuc',
36         '../third_party/zlib/zlib.gyp:zlib',
37         '../v8/tools/gyp/v8.gyp:v8',
38         'net_resources',
39         'ssl_false_start_blacklist_process#host',
40       ],
41       'sources': [
42         'base/address_family.h',
43         'base/address_list.cc',
44         'base/address_list.h',
45         'base/address_list_net_log_param.cc',
46         'base/address_list_net_log_param.h',
47         'base/asn1_util.cc',
48         'base/asn1_util.h',
49         'base/auth.cc',
50         'base/auth.h',
51         'base/backoff_entry.cc',
52         'base/backoff_entry.h',
53         'base/bandwidth_metrics.cc',
54         'base/bandwidth_metrics.h',
55         'base/cache_type.h',
56         'base/capturing_net_log.cc',
57         'base/capturing_net_log.h',
58         'base/cert_database.cc',
59         'base/cert_database.h',
60         'base/cert_database_mac.cc',
61         'base/cert_database_nss.cc',
62         'base/cert_database_openssl.cc',
63         'base/cert_database_win.cc',
64         'base/cert_status_flags.cc',
65         'base/cert_status_flags.h',
66         'base/cert_verifier.cc',
67         'base/cert_verifier.h',
68         'base/cert_verify_result.cc',
69         'base/cert_verify_result.h',
70         'base/completion_callback.h',
71         'base/connection_type_histograms.cc',
72         'base/connection_type_histograms.h',
73         'base/cookie_monster.cc',
74         'base/cookie_monster.h',
75         'base/cookie_options.h',
76         'base/cookie_store.cc',
77         'base/cookie_store.h',
78         'base/crl_set.cc',
79         'base/crl_set.h',
80         'base/crypto_module.h',
81         'base/crypto_module_nss.cc',
82         'base/crypto_module_openssl.cc',
83         'base/data_url.cc',
84         'base/data_url.h',
85         'base/default_origin_bound_cert_store.cc',
86         'base/default_origin_bound_cert_store.h',
87         'base/directory_lister.cc',
88         'base/directory_lister.h',
89         'base/dns_reloader.cc',
90         'base/dns_reloader.h',
91         'base/dns_util.cc',
92         'base/dns_util.h',
93         'base/dnsrr_resolver.cc',
94         'base/dnsrr_resolver.h',
95         'base/dnssec_chain_verifier.cc',
96         'base/dnssec_chain_verifier.h',
97         'base/dnssec_keyset.cc',
98         'base/dnssec_keyset.h',
99         'base/escape.cc',
100         'base/escape.h',
101         'base/escape_icu.cc',
102         'base/ev_root_ca_metadata.cc',
103         'base/ev_root_ca_metadata.h',
104         'base/file_stream.h',
105         'base/file_stream_metrics.h',
106         'base/file_stream_metrics.cc',
107         'base/file_stream_metrics_posix.cc',
108         'base/file_stream_metrics_win.cc',
109         'base/file_stream_posix.cc',
110         'base/file_stream_win.cc',
111         'base/filter.cc',
112         'base/filter.h',
113         'base/gzip_filter.cc',
114         'base/gzip_filter.h',
115         'base/gzip_header.cc',
116         'base/gzip_header.h',
117         'base/host_cache.cc',
118         'base/host_cache.h',
119         'base/host_mapping_rules.cc',
120         'base/host_mapping_rules.h',
121         'base/host_port_pair.cc',
122         'base/host_port_pair.h',
123         'base/host_resolver.cc',
124         'base/host_resolver.h',
125         'base/host_resolver_impl.cc',
126         'base/host_resolver_impl.h',
127         'base/host_resolver_proc.cc',
128         'base/host_resolver_proc.h',
129         'base/io_buffer.cc',
130         'base/io_buffer.h',
131         'base/ip_endpoint.cc',
132         'base/ip_endpoint.h',
133         'base/keygen_handler.cc',
134         'base/keygen_handler.h',
135         'base/keygen_handler_mac.cc',
136         'base/keygen_handler_nss.cc',
137         'base/keygen_handler_openssl.cc',
138         'base/keygen_handler_win.cc',
139         'base/listen_socket.cc',
140         'base/listen_socket.h',
141         'base/load_flags.h',
142         'base/load_flags_list.h',
143         'base/load_states.h',
144         'base/mapped_host_resolver.cc',
145         'base/mapped_host_resolver.h',
146         'base/mime_sniffer.cc',
147         'base/mime_sniffer.h',
148         'base/mime_util.cc',
149         'base/mime_util.h',
150         'base/net_error_list.h',
151         'base/net_errors.cc',
152         'base/net_errors.h',
153         'base/net_errors_posix.cc',
154         'base/net_errors_win.cc',
155         'base/net_export.h',
156         'base/net_log.cc',
157         'base/net_log.h',
158         'base/net_log_event_type_list.h',
159         'base/net_log_source_type_list.h',
160         'base/net_module.cc',
161         'base/net_module.h',
162         'base/net_util.cc',
163         'base/net_util.h',
164         'base/net_util_posix.cc',
165         'base/net_util_win.cc',
166         'base/network_change_notifier.cc',
167         'base/network_change_notifier.h',
168         'base/network_change_notifier_factory.h',
169         'base/network_change_notifier_linux.cc',
170         'base/network_change_notifier_linux.h',
171         'base/network_change_notifier_mac.cc',
172         'base/network_change_notifier_mac.h',
173         'base/network_change_notifier_netlink_linux.cc',
174         'base/network_change_notifier_netlink_linux.h',
175         'base/network_change_notifier_win.cc',
176         'base/network_change_notifier_win.h',
177         'base/network_config_watcher_mac.cc',
178         'base/network_config_watcher_mac.h',
179         'base/network_delegate.cc',
180         'base/network_delegate.h',
181         'base/nss_memio.c',
182         'base/nss_memio.h',
183         'base/openssl_memory_private_key_store.cc',
184         'base/openssl_private_key_store.h',
185         'base/origin_bound_cert_service.cc',
186         'base/origin_bound_cert_service.h',
187         'base/origin_bound_cert_store.h',
188         'base/pem_tokenizer.cc',
189         'base/pem_tokenizer.h',
190         'base/platform_mime_util.h',
191         # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
192         'base/platform_mime_util_linux.cc',
193         'base/platform_mime_util_mac.cc',
194         'base/platform_mime_util_win.cc',
195         'base/rand_callback.h',
196         'base/registry_controlled_domain.cc',
197         'base/registry_controlled_domain.h',
198         'base/sdch_filter.cc',
199         'base/sdch_filter.h',
200         'base/sdch_manager.cc',
201         'base/sdch_manager.h',
202         'base/single_request_host_resolver.cc',
203         'base/single_request_host_resolver.h',
204         'base/ssl_cert_request_info.cc',
205         'base/ssl_cert_request_info.h',
206         'base/ssl_cipher_suite_names.cc',
207         'base/ssl_cipher_suite_names.h',
208         'base/ssl_client_auth_cache.cc',
209         'base/ssl_client_auth_cache.h',
210         'base/ssl_config_service.cc',
211         'base/ssl_config_service.h',
212         'base/ssl_config_service_defaults.cc',
213         'base/ssl_config_service_defaults.h',
214         'base/ssl_false_start_blacklist.cc',
215         'base/ssl_false_start_blacklist.h',
216         'base/ssl_info.cc',
217         'base/ssl_info.h',
218         'base/static_cookie_policy.cc',
219         'base/static_cookie_policy.h',
220         'base/sys_addrinfo.h',
221         'base/sys_byteorder.h',
222         'base/test_data_stream.cc',
223         'base/test_data_stream.h',
224         'base/test_root_certs.cc',
225         'base/test_root_certs.h',
226         'base/test_root_certs_mac.cc',
227         'base/test_root_certs_nss.cc',
228         'base/test_root_certs_openssl.cc',
229         'base/test_root_certs_win.cc',
230         'base/transport_security_state.cc',
231         'base/transport_security_state.h',
232         'base/upload_data.cc',
233         'base/upload_data.h',
234         'base/upload_data_stream.cc',
235         'base/upload_data_stream.h',
236         'base/winsock_init.cc',
237         'base/winsock_init.h',
238         'base/winsock_util.cc',
239         'base/winsock_util.h',
240         'base/x509_cert_types.cc',
241         'base/x509_cert_types.h',
242         'base/x509_cert_types_mac.cc',
243         'base/x509_certificate.cc',
244         'base/x509_certificate.h',
245         'base/x509_certificate_mac.cc',
246         'base/x509_certificate_net_log_param.cc',
247         'base/x509_certificate_net_log_param.h',
248         'base/x509_certificate_nss.cc',
249         'base/x509_certificate_openssl.cc',
250         'base/x509_certificate_win.cc',
251         'base/x509_util.h',
252         'base/x509_util_nss.cc',
253         'base/x509_util_nss.h',
254         'base/x509_util_openssl.cc',
255         'base/x509_util_openssl.h',
256         'base/zap.cc',
257         'base/zap.h',
258         'disk_cache/addr.cc',
259         'disk_cache/addr.h',
260         'disk_cache/backend_impl.cc',
261         'disk_cache/backend_impl.h',
262         'disk_cache/bitmap.cc',
263         'disk_cache/bitmap.h',
264         'disk_cache/block_files.cc',
265         'disk_cache/block_files.h',
266         'disk_cache/cache_util.h',
267         'disk_cache/cache_util_posix.cc',
268         'disk_cache/cache_util_win.cc',
269         'disk_cache/disk_cache.h',
270         'disk_cache/disk_format.cc',
271         'disk_cache/disk_format.h',
272         'disk_cache/entry_impl.cc',
273         'disk_cache/entry_impl.h',
274         'disk_cache/errors.h',
275         'disk_cache/eviction.cc',
276         'disk_cache/eviction.h',
277         'disk_cache/experiments.h',
278         'disk_cache/file.cc',
279         'disk_cache/file.h',
280         'disk_cache/file_block.h',
281         'disk_cache/file_lock.cc',
282         'disk_cache/file_lock.h',
283         'disk_cache/file_posix.cc',
284         'disk_cache/file_win.cc',
285         'disk_cache/hash.cc',
286         'disk_cache/hash.h',
287         'disk_cache/histogram_macros.h',
288         'disk_cache/in_flight_backend_io.cc',
289         'disk_cache/in_flight_backend_io.h',
290         'disk_cache/in_flight_io.cc',
291         'disk_cache/in_flight_io.h',
292         'disk_cache/mapped_file.h',
293         'disk_cache/mapped_file_posix.cc',
294         'disk_cache/mapped_file_win.cc',
295         'disk_cache/mem_backend_impl.cc',
296         'disk_cache/mem_backend_impl.h',
297         'disk_cache/mem_entry_impl.cc',
298         'disk_cache/mem_entry_impl.h',
299         'disk_cache/mem_rankings.cc',
300         'disk_cache/mem_rankings.h',
301         'disk_cache/net_log_parameters.cc',
302         'disk_cache/net_log_parameters.h',
303         'disk_cache/rankings.cc',
304         'disk_cache/rankings.h',
305         'disk_cache/sparse_control.cc',
306         'disk_cache/sparse_control.h',
307         'disk_cache/stats.cc',
308         'disk_cache/stats.h',
309         'disk_cache/stats_histogram.cc',
310         'disk_cache/stats_histogram.h',
311         'disk_cache/storage_block-inl.h',
312         'disk_cache/storage_block.h',
313         'disk_cache/stress_support.h',
314         'disk_cache/trace.cc',
315         'disk_cache/trace.h',
316         'dns/async_host_resolver.cc',
317         'dns/async_host_resolver.h',
318         'dns/dns_config_service.cc',
319         'dns/dns_config_service.h',
320         'dns/dns_config_service_posix.cc',
321         'dns/dns_config_service_posix.h',
322         'dns/dns_config_service_win.cc',
323         'dns/dns_config_service_win.h',
324         'dns/dns_hosts.cc',
325         'dns/dns_hosts.h',
326         'dns/dns_query.cc',
327         'dns/dns_query.h',
328         'dns/dns_response.cc',
329         'dns/dns_response.h',
330         'dns/dns_transaction.cc',
331         'dns/dns_transaction.h',
332         'dns/serial_worker.cc',
333         'dns/serial_worker.h',
334         'dns/watching_file_reader.cc',
335         'dns/watching_file_reader.h',
336         'ftp/ftp_auth_cache.cc',
337         'ftp/ftp_auth_cache.h',
338         'ftp/ftp_ctrl_response_buffer.cc',
339         'ftp/ftp_ctrl_response_buffer.h',
340         'ftp/ftp_directory_listing_parser.cc',
341         'ftp/ftp_directory_listing_parser.h',
342         'ftp/ftp_directory_listing_parser_ls.cc',
343         'ftp/ftp_directory_listing_parser_ls.h',
344         'ftp/ftp_directory_listing_parser_netware.cc',
345         'ftp/ftp_directory_listing_parser_netware.h',
346         'ftp/ftp_directory_listing_parser_os2.cc',
347         'ftp/ftp_directory_listing_parser_os2.h',
348         'ftp/ftp_directory_listing_parser_vms.cc',
349         'ftp/ftp_directory_listing_parser_vms.h',
350         'ftp/ftp_directory_listing_parser_windows.cc',
351         'ftp/ftp_directory_listing_parser_windows.h',
352         'ftp/ftp_network_layer.cc',
353         'ftp/ftp_network_layer.h',
354         'ftp/ftp_network_session.cc',
355         'ftp/ftp_network_session.h',
356         'ftp/ftp_network_transaction.cc',
357         'ftp/ftp_network_transaction.h',
358         'ftp/ftp_request_info.h',
359         'ftp/ftp_response_info.cc',
360         'ftp/ftp_response_info.h',
361         'ftp/ftp_server_type_histograms.cc',
362         'ftp/ftp_server_type_histograms.h',
363         'ftp/ftp_transaction.h',
364         'ftp/ftp_transaction_factory.h',
365         'ftp/ftp_util.cc',
366         'ftp/ftp_util.h',
367         'http/des.cc',
368         'http/des.h',
369         'http/disk_cache_based_ssl_host_info.cc',
370         'http/disk_cache_based_ssl_host_info.h',
371         'http/http_atom_list.h',
372         'http/http_auth.cc',
373         'http/http_auth.h',
374         'http/http_auth_cache.cc',
375         'http/http_auth_cache.h',
376         'http/http_auth_controller.cc',
377         'http/http_auth_controller.h',
378         'http/http_auth_filter.cc',
379         'http/http_auth_filter.h',
380         'http/http_auth_filter_win.h',
381         'http/http_auth_gssapi_posix.cc',
382         'http/http_auth_gssapi_posix.h',
383         'http/http_auth_handler.cc',
384         'http/http_auth_handler.h',
385         'http/http_auth_handler_basic.cc',
386         'http/http_auth_handler_basic.h',
387         'http/http_auth_handler_digest.cc',
388         'http/http_auth_handler_digest.h',
389         'http/http_auth_handler_factory.cc',
390         'http/http_auth_handler_factory.h',
391         'http/http_auth_handler_negotiate.cc',
392         'http/http_auth_handler_negotiate.h',
393         'http/http_auth_handler_ntlm.cc',
394         'http/http_auth_handler_ntlm.h',
395         'http/http_auth_handler_ntlm_portable.cc',
396         'http/http_auth_handler_ntlm_win.cc',
397         'http/http_auth_sspi_win.cc',
398         'http/http_auth_sspi_win.h',
399         'http/http_basic_stream.cc',
400         'http/http_basic_stream.h',
401         'http/http_byte_range.cc',
402         'http/http_byte_range.h',
403         'http/http_cache.cc',
404         'http/http_cache.h',
405         'http/http_cache_transaction.cc',
406         'http/http_cache_transaction.h',
407         'http/http_chunked_decoder.cc',
408         'http/http_chunked_decoder.h',
409         'http/http_mac_signature.cc',
410         'http/http_mac_signature.h',
411         'http/http_net_log_params.cc',
412         'http/http_net_log_params.h',
413         'http/http_network_layer.cc',
414         'http/http_network_layer.h',
415         'http/http_network_session.cc',
416         'http/http_network_session.h',
417         'http/http_network_session_peer.cc',
418         'http/http_network_session_peer.h',
419         'http/http_network_transaction.cc',
420         'http/http_network_transaction.h',
421         'http/http_pipelined_connection.h',
422         'http/http_pipelined_connection_impl.cc',
423         'http/http_pipelined_connection_impl.h',
424         'http/http_pipelined_host.cc',
425         'http/http_pipelined_host.h',
426         'http/http_pipelined_host_pool.cc',
427         'http/http_pipelined_host_pool.h',
428         'http/http_pipelined_stream.cc',
429         'http/http_pipelined_stream.h',
430         'http/http_proxy_client_socket.cc',
431         'http/http_proxy_client_socket.h',
432         'http/http_proxy_client_socket_pool.cc',
433         'http/http_proxy_client_socket_pool.h',
434         'http/http_proxy_utils.cc',
435         'http/http_proxy_utils.h',
436         'http/http_request_headers.cc',
437         'http/http_request_headers.h',
438         'http/http_request_info.cc',
439         'http/http_request_info.h',
440         'http/http_response_body_drainer.cc',
441         'http/http_response_body_drainer.h',
442         'http/http_response_headers.cc',
443         'http/http_response_headers.h',
444         'http/http_response_info.cc',
445         'http/http_response_info.h',
446         'http/http_server_properties.cc',
447         'http/http_server_properties.h',
448         'http/http_server_properties_impl.cc',
449         'http/http_server_properties_impl.h',
450         'http/http_stream.h',
451         'http/http_stream_factory.cc',
452         'http/http_stream_factory.h',
453         'http/http_stream_factory_impl.cc',
454         'http/http_stream_factory_impl.h',
455         'http/http_stream_factory_impl_job.cc',
456         'http/http_stream_factory_impl_job.h',
457         'http/http_stream_factory_impl_request.cc',
458         'http/http_stream_factory_impl_request.h',
459         'http/http_stream_parser.cc',
460         'http/http_stream_parser.h',
461         'http/http_transaction.h',
462         'http/http_transaction_factory.h',
463         'http/http_util.cc',
464         'http/http_util.h',
465         'http/http_util_icu.cc',
466         'http/http_vary_data.cc',
467         'http/http_vary_data.h',
468         'http/http_version.h',
469         'http/md4.cc',
470         'http/md4.h',
471         'http/partial_data.cc',
472         'http/partial_data.h',
473         'http/proxy_client_socket.h',
474         'http/url_security_manager.cc',
475         'http/url_security_manager.h',
476         'http/url_security_manager_posix.cc',
477         'http/url_security_manager_win.cc',
478         'ocsp/nss_ocsp.cc',
479         'ocsp/nss_ocsp.h',
480         'proxy/dhcp_proxy_script_adapter_fetcher_win.cc',
481         'proxy/dhcp_proxy_script_adapter_fetcher_win.h',
482         'proxy/dhcp_proxy_script_fetcher.cc',
483         'proxy/dhcp_proxy_script_fetcher.h',
484         'proxy/dhcp_proxy_script_fetcher_factory.cc',
485         'proxy/dhcp_proxy_script_fetcher_factory.h',
486         'proxy/dhcp_proxy_script_fetcher_win.cc',
487         'proxy/dhcp_proxy_script_fetcher_win.h',
488         'proxy/dhcpcsvc_init_win.cc',
489         'proxy/dhcpcsvc_init_win.h',
490         'proxy/init_proxy_resolver.cc',
491         'proxy/init_proxy_resolver.h',
492         'proxy/multi_threaded_proxy_resolver.cc',
493         'proxy/multi_threaded_proxy_resolver.h',
494         'proxy/network_delegate_error_observer.cc',
495         'proxy/network_delegate_error_observer.h',
496         'proxy/polling_proxy_config_service.cc',
497         'proxy/polling_proxy_config_service.h',
498         'proxy/proxy_bypass_rules.cc',
499         'proxy/proxy_bypass_rules.h',
500         'proxy/proxy_config.cc',
501         'proxy/proxy_config.h',
502         'proxy/proxy_config_service.h',
503         'proxy/proxy_config_service_fixed.cc',
504         'proxy/proxy_config_service_fixed.h',
505         'proxy/proxy_config_service_linux.cc',
506         'proxy/proxy_config_service_linux.h',
507         'proxy/proxy_config_service_mac.cc',
508         'proxy/proxy_config_service_mac.h',
509         'proxy/proxy_config_service_win.cc',
510         'proxy/proxy_config_service_win.h',
511         'proxy/proxy_info.cc',
512         'proxy/proxy_info.h',
513         'proxy/proxy_list.cc',
514         'proxy/proxy_list.h',
515         'proxy/proxy_resolver.h',
516         'proxy/proxy_resolver_error_observer.h',
517         'proxy/proxy_resolver_js_bindings.cc',
518         'proxy/proxy_resolver_js_bindings.h',
519         'proxy/proxy_resolver_mac.cc',
520         'proxy/proxy_resolver_mac.h',
521         'proxy/proxy_resolver_request_context.h',
522         'proxy/proxy_resolver_script.h',
523         'proxy/proxy_resolver_script_data.cc',
524         'proxy/proxy_resolver_script_data.h',
525         'proxy/proxy_resolver_v8.cc',
526         'proxy/proxy_resolver_v8.h',
527         'proxy/proxy_resolver_winhttp.cc',
528         'proxy/proxy_resolver_winhttp.h',
529         'proxy/proxy_retry_info.h',
530         'proxy/proxy_script_fetcher.h',
531         'proxy/proxy_script_fetcher_impl.cc',
532         'proxy/proxy_script_fetcher_impl.h',
533         'proxy/proxy_server.cc',
534         'proxy/proxy_server.h',
535         'proxy/proxy_server_mac.cc',
536         'proxy/proxy_service.cc',
537         'proxy/proxy_service.h',
538         'proxy/sync_host_resolver.h',
539         'proxy/sync_host_resolver_bridge.cc',
540         'proxy/sync_host_resolver_bridge.h',
541         'socket/client_socket_factory.cc',
542         'socket/client_socket_factory.h',
543         'socket/client_socket_handle.cc',
544         'socket/client_socket_handle.h',
545         'socket/client_socket_pool.cc',
546         'socket/client_socket_pool.h',
547         'socket/client_socket_pool_base.cc',
548         'socket/client_socket_pool_base.h',
549         'socket/client_socket_pool_histograms.cc',
550         'socket/client_socket_pool_histograms.h',
551         'socket/client_socket_pool_manager.cc',
552         'socket/client_socket_pool_manager.h',
553         'socket/dns_cert_provenance_checker.cc',
554         'socket/dns_cert_provenance_checker.h',
555         'socket/nss_ssl_util.cc',
556         'socket/nss_ssl_util.h',
557         'socket/server_socket.h',
558         'socket/socket.h',
559         'socket/socks5_client_socket.cc',
560         'socket/socks5_client_socket.h',
561         'socket/socks_client_socket.cc',
562         'socket/socks_client_socket.h',
563         'socket/socks_client_socket_pool.cc',
564         'socket/socks_client_socket_pool.h',
565         'socket/ssl_client_socket.cc',
566         'socket/ssl_client_socket.h',
567         'socket/ssl_client_socket_mac.cc',
568         'socket/ssl_client_socket_mac.h',
569         'socket/ssl_client_socket_nss.cc',
570         'socket/ssl_client_socket_nss.h',
571         'socket/ssl_client_socket_openssl.cc',
572         'socket/ssl_client_socket_openssl.h',
573         'socket/ssl_client_socket_pool.cc',
574         'socket/ssl_client_socket_pool.h',
575         'socket/ssl_client_socket_win.cc',
576         'socket/ssl_client_socket_win.h',
577         'socket/ssl_error_params.cc',
578         'socket/ssl_error_params.h',
579         'socket/ssl_host_info.cc',
580         'socket/ssl_host_info.h',
581         'socket/ssl_server_socket.h',
582         'socket/ssl_server_socket_nss.cc',
583         'socket/ssl_server_socket_nss.h',
584         'socket/ssl_server_socket_openssl.cc',
585         'socket/stream_socket.cc',
586         'socket/stream_socket.h',
587         'socket/tcp_client_socket.cc',
588         'socket/tcp_client_socket.h',
589         'socket/tcp_client_socket_libevent.cc',
590         'socket/tcp_client_socket_libevent.h',
591         'socket/tcp_client_socket_win.cc',
592         'socket/tcp_client_socket_win.h',
593         'socket/tcp_server_socket.h',
594         'socket/tcp_server_socket_libevent.cc',
595         'socket/tcp_server_socket_libevent.h',
596         'socket/tcp_server_socket_win.cc',
597         'socket/tcp_server_socket_win.h',
598         'socket/transport_client_socket_pool.cc',
599         'socket/transport_client_socket_pool.h',
600         'socket/web_socket_server_socket.cc',
601         'socket/web_socket_server_socket.h',
602         'socket_stream/socket_stream.cc',
603         'socket_stream/socket_stream.h',
604         'socket_stream/socket_stream_job.cc',
605         'socket_stream/socket_stream_job.h',
606         'socket_stream/socket_stream_job_manager.cc',
607         'socket_stream/socket_stream_job_manager.h',
608         'socket_stream/socket_stream_metrics.cc',
609         'socket_stream/socket_stream_metrics.h',
610         'spdy/spdy_bitmasks.h',
611         'spdy/spdy_frame_builder.cc',
612         'spdy/spdy_frame_builder.h',
613         'spdy/spdy_framer.cc',
614         'spdy/spdy_framer.h',
615         'spdy/spdy_http_stream.cc',
616         'spdy/spdy_http_stream.h',
617         'spdy/spdy_http_utils.cc',
618         'spdy/spdy_http_utils.h',
619         'spdy/spdy_io_buffer.cc',
620         'spdy/spdy_io_buffer.h',
621         'spdy/spdy_protocol.h',
622         'spdy/spdy_proxy_client_socket.cc',
623         'spdy/spdy_proxy_client_socket.h',
624         'spdy/spdy_session.cc',
625         'spdy/spdy_session.h',
626         'spdy/spdy_session_pool.cc',
627         'spdy/spdy_session_pool.h',
628         'spdy/spdy_settings_storage.cc',
629         'spdy/spdy_settings_storage.h',
630         'spdy/spdy_stream.cc',
631         'spdy/spdy_stream.h',
632         'spdy/spdy_websocket_stream.cc',
633         'spdy/spdy_websocket_stream.h',
634         'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
635         'third_party/mozilla_security_manager/nsKeygenHandler.h',
636         'third_party/mozilla_security_manager/nsNSSCertTrust.cpp',
637         'third_party/mozilla_security_manager/nsNSSCertTrust.h',
638         'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
639         'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
640         'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
641         'third_party/mozilla_security_manager/nsPKCS12Blob.h',
642         'udp/datagram_client_socket.h',
643         'udp/datagram_server_socket.h',
644         'udp/datagram_socket.h',
645         'udp/udp_client_socket.cc',
646         'udp/udp_client_socket.h',
647         'udp/udp_data_transfer_param.cc',
648         'udp/udp_data_transfer_param.h',
649         'udp/udp_server_socket.cc',
650         'udp/udp_server_socket.h',
651         'udp/udp_socket.h',
652         'udp/udp_socket_libevent.cc',
653         'udp/udp_socket_libevent.h',
654         'udp/udp_socket_win.cc',
655         'udp/udp_socket_win.h',
656         'url_request/fraudulent_certificate_reporter.h',
657         'url_request/url_request.cc',
658         'url_request/url_request.h',
659         'url_request/url_request_about_job.cc',
660         'url_request/url_request_about_job.h',
661         'url_request/url_request_context.cc',
662         'url_request/url_request_context.h',
663         'url_request/url_request_context_getter.cc',
664         'url_request/url_request_context_getter.h',
665         'url_request/url_request_context_storage.cc',
666         'url_request/url_request_context_storage.h',
667         'url_request/url_request_data_job.cc',
668         'url_request/url_request_data_job.h',
669         'url_request/url_request_error_job.cc',
670         'url_request/url_request_error_job.h',
671         'url_request/url_request_file_dir_job.cc',
672         'url_request/url_request_file_dir_job.h',
673         'url_request/url_request_file_job.cc',
674         'url_request/url_request_file_job.h',
675         'url_request/url_request_filter.cc',
676         'url_request/url_request_filter.h',
677         'url_request/url_request_ftp_job.cc',
678         'url_request/url_request_ftp_job.h',
679         'url_request/url_request_http_job.cc',
680         'url_request/url_request_http_job.h',
681         'url_request/url_request_job.cc',
682         'url_request/url_request_job.h',
683         'url_request/url_request_job_factory.cc',
684         'url_request/url_request_job_factory.h',
685         'url_request/url_request_job_manager.cc',
686         'url_request/url_request_job_manager.h',
687         'url_request/url_request_netlog_params.cc',
688         'url_request/url_request_netlog_params.h',
689         'url_request/url_request_redirect_job.cc',
690         'url_request/url_request_redirect_job.h',
691         'url_request/url_request_simple_job.cc',
692         'url_request/url_request_simple_job.h',
693         'url_request/url_request_status.h',
694         'url_request/url_request_test_job.cc',
695         'url_request/url_request_test_job.h',
696         'url_request/url_request_throttler_entry.cc',
697         'url_request/url_request_throttler_entry.h',
698         'url_request/url_request_throttler_entry_interface.h',
699         'url_request/url_request_throttler_header_adapter.cc',
700         'url_request/url_request_throttler_header_adapter.h',
701         'url_request/url_request_throttler_header_interface.h',
702         'url_request/url_request_throttler_manager.cc',
703         'url_request/url_request_throttler_manager.h',
704         'url_request/view_cache_helper.cc',
705         'url_request/view_cache_helper.h',
706         'websockets/websocket_frame_handler.cc',
707         'websockets/websocket_frame_handler.h',
708         'websockets/websocket_handshake_handler.cc',
709         'websockets/websocket_handshake_handler.h',
710         'websockets/websocket_job.cc',
711         'websockets/websocket_job.h',
712         'websockets/websocket_net_log_params.cc',
713         'websockets/websocket_net_log_params.h',
714         'websockets/websocket_throttle.cc',
715         'websockets/websocket_throttle.h',
716       ],
717       'defines': [
718         'NET_IMPLEMENTATION',
719       ],
720       'export_dependent_settings': [
721         '../base/base.gyp:base',
722       ],
723       'actions': [
724         {
725           'action_name': 'ssl_false_start_blacklist',
726           'inputs': [
727             '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)ssl_false_start_blacklist_process<(EXECUTABLE_SUFFIX)',
728             'base/ssl_false_start_blacklist.txt',
729           ],
730           'outputs': [
731             '<(SHARED_INTERMEDIATE_DIR)/net/base/ssl_false_start_blacklist_data.cc',
732           ],
733           'action':
734             ['<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)ssl_false_start_blacklist_process<(EXECUTABLE_SUFFIX)',
735              'base/ssl_false_start_blacklist.txt',
736               '<(SHARED_INTERMEDIATE_DIR)/net/base/ssl_false_start_blacklist_data.cc',
737             ],
738           'message': 'Generating SSL False Start blacklist',
739           'process_outputs_as_sources': 1,
740         },
741       ],
742       'conditions': [
743         ['chromeos==1', {
744           'sources!': [
745              'proxy/proxy_config_service_linux.cc',
746              'proxy/proxy_config_service_linux.h',
747           ],
748         }],
749         ['use_kerberos==1', {
750           'defines': [
751             'USE_KERBEROS',
752           ],
753           'conditions': [
754             ['linux_link_kerberos==1', {
755               'link_settings': {
756                 'ldflags': [
757                   '<!@(krb5-config --libs gssapi)',
758                 ],
759               },
760             }, { # linux_link_kerberos==0
761               'defines': [
762                 'DLOPEN_KERBEROS',
763               ],
764             }],
765           ],
766         }, { # use_kerberos == 0
767           'sources!': [
768             'http/http_auth_gssapi_posix.cc',
769             'http/http_auth_gssapi_posix.h',
770             'http/http_auth_handler_negotiate.h',
771             'http/http_auth_handler_negotiate.cc',
772           ],
773         }],
774         ['use_openssl==1', {
775             'sources!': [
776               'base/cert_database_nss.cc',
777               'base/crypto_module_nss.cc',
778               'base/dnssec_keyset.cc',
779               'base/dnssec_keyset.h',
780               'base/keygen_handler_nss.cc',
781               'base/nss_memio.c',
782               'base/nss_memio.h',
783               'base/test_root_certs_nss.cc',
784               'base/x509_certificate_nss.cc',
785               'base/x509_util_nss.cc',
786               'base/x509_util_nss.h',
787               'ocsp/nss_ocsp.cc',
788               'ocsp/nss_ocsp.h',
789               'socket/dns_cert_provenance_check.cc',
790               'socket/dns_cert_provenance_check.h',
791               'socket/nss_ssl_util.cc',
792               'socket/nss_ssl_util.h',
793               'socket/ssl_client_socket_nss.cc',
794               'socket/ssl_client_socket_nss.h',
795               'socket/ssl_server_socket_nss.cc',
796               'socket/ssl_server_socket_nss.h',
797               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
798               'third_party/mozilla_security_manager/nsKeygenHandler.h',
799               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
800               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
801               'third_party/mozilla_security_manager/nsNSSCertTrust.cpp',
802               'third_party/mozilla_security_manager/nsNSSCertTrust.h',
803               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
804               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
805             ],
806           },
807           {  # else !use_openssl: remove the unneeded files
808             'sources!': [
809               'base/cert_database_openssl.cc',
810               'base/crypto_module_openssl.cc',
811               'base/keygen_handler_openssl.cc',
812               'base/openssl_memory_private_key_store.cc',
813               'base/openssl_private_key_store.h',
814               'base/test_root_certs_openssl.cc',
815               'base/x509_certificate_openssl.cc',
816               'base/x509_util_openssl.cc',
817               'base/x509_util_openssl.h',
818               'socket/ssl_client_socket_openssl.cc',
819               'socket/ssl_client_socket_openssl.h',
820               'socket/ssl_server_socket_openssl.cc',
821             ],
822           },
823         ],
824         [ 'use_glib == 1', {
825             'dependencies': [
826               '../build/linux/system.gyp:gconf',
827               '../build/linux/system.gyp:gio',
828             ],
829             'conditions': [
830               ['use_openssl==1', {
831                 'dependencies': [
832                   '../third_party/openssl/openssl.gyp:openssl',
833                 ],
834               },
835               {  # else use_openssl==0, use NSS
836                 'dependencies': [
837                   '../build/linux/system.gyp:ssl',
838                 ],
839               }],
840               ['OS=="openbsd"', {
841                 'sources!': [
842                   'base/network_change_notifier_linux.cc',
843                   'base/network_change_notifier_netlink_linux.cc',
844                   'proxy/proxy_config_service_linux.cc',
845                 ],
846               },{
847                 'dependencies': [
848                   '../build/linux/system.gyp:libresolv',
849                 ],
850               }],
851               ['OS=="solaris"', {
852                 'link_settings': {
853                   'ldflags': [
854                     '-R/usr/lib/mps',
855                   ],
856                 },
857               }],
858             ],
859           },
860           {  # else: OS is not in the above list
861             'sources!': [
862               'base/cert_database_nss.cc',
863               'base/crypto_module_nss.cc',
864               'base/keygen_handler_nss.cc',
865               'base/test_root_certs_nss.cc',
866               'base/x509_certificate_nss.cc',
867               'ocsp/nss_ocsp.cc',
868               'ocsp/nss_ocsp.h',
869               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
870               'third_party/mozilla_security_manager/nsKeygenHandler.h',
871               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
872               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
873               'third_party/mozilla_security_manager/nsNSSCertTrust.cpp',
874               'third_party/mozilla_security_manager/nsNSSCertTrust.h',
875               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
876               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
877             ],
878           },
879         ],
880         [ 'toolkit_uses_gtk == 1', {
881           'dependencies': [
882             '../build/linux/system.gyp:gdk',
883           ],
884         }],
885         [ 'OS == "win"', {
886             'sources!': [
887               'http/http_auth_handler_ntlm_portable.cc',
888               'socket/tcp_client_socket_libevent.cc',
889               'socket/tcp_client_socket_libevent.h',
890               'socket/tcp_server_socket_libevent.cc',
891               'socket/tcp_server_socket_libevent.h',
892               'udp/udp_socket_libevent.cc',
893               'udp/udp_socket_libevent.h',
894             ],
895             'dependencies': [
896               '../third_party/nss/nss.gyp:nspr',
897               '../third_party/nss/nss.gyp:nss',
898               'third_party/nss/ssl.gyp:ssl',
899               'tld_cleanup',
900             ],
901           }, { # else: OS != "win"
902             'sources!': [
903               'base/winsock_init.cc',
904               'base/winsock_init.h',
905               'base/winsock_util.cc',
906               'base/winsock_util.h',
907               'proxy/proxy_resolver_winhttp.cc',
908               'proxy/proxy_resolver_winhttp.h',
909             ],
910           },
911         ],
912         [ 'OS == "mac"', {
913             'dependencies': [
914               '../third_party/nss/nss.gyp:nspr',
915               '../third_party/nss/nss.gyp:nss',
916               'third_party/nss/ssl.gyp:ssl',
917             ],
918             'link_settings': {
919               'libraries': [
920                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
921                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
922                 '$(SDKROOT)/usr/lib/libresolv.dylib',
923               ]
924             },
925           },
926         ],
927         [ 'OS == "android"', {
928             'defines': [
929               # Android can shut down our app at any time, so we persist session cookies.
930               'ENABLE_PERSISTENT_SESSION_COOKIES'
931             ],
932           }, {  # else OS! = "android"
933             'defines': [
934               # These are the features Android doesn't support.
935               'ENABLE_MEDIA_CODEC_THEORA',
936               'ENABLE_MEDIA_TYPE_OGG',
937             ],
938           },
939         ],
940       ],
941     },
942     {
943       'target_name': 'net_unittests',
944       'type': 'executable',
945       'dependencies': [
946         'net',
947         'net_test_support',
948         '../base/base.gyp:base',
949         '../base/base.gyp:base_i18n',
950         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
951         '../build/temp_gyp/googleurl.gyp:googleurl',
952         '../crypto/crypto.gyp:crypto',
953         '../testing/gmock.gyp:gmock',
954         '../testing/gtest.gyp:gtest',
955         '../third_party/zlib/zlib.gyp:zlib',
956       ],
957       'sources': [
958         'base/address_list_unittest.cc',
959         'base/backoff_entry_unittest.cc',
960         'base/cert_database_nss_unittest.cc',
961         'base/cert_verifier_unittest.cc',
962         'base/cookie_monster_unittest.cc',
963         'base/crl_set_unittest.cc',
964         'base/data_url_unittest.cc',
965         'base/default_origin_bound_cert_store_unittest.cc',
966         'base/directory_lister_unittest.cc',
967         'base/dnssec_unittest.cc',
968         'base/dns_util_unittest.cc',
969         'base/dnsrr_resolver_unittest.cc',
970         'base/escape_unittest.cc',
971         'base/file_stream_unittest.cc',
972         'base/filter_unittest.cc',
973         'base/gzip_filter_unittest.cc',
974         'base/host_cache_unittest.cc',
975         'base/host_mapping_rules_unittest.cc',
976         'base/host_port_pair_unittest.cc',
977         'base/host_resolver_impl_unittest.cc',
978         'base/ip_endpoint_unittest.cc',
979         'base/keygen_handler_unittest.cc',
980         'base/listen_socket_unittest.cc',
981         'base/listen_socket_unittest.h',
982         'base/mapped_host_resolver_unittest.cc',
983         'base/mime_sniffer_unittest.cc',
984         'base/mime_util_unittest.cc',
985         'base/mock_filter_context.cc',
986         'base/mock_filter_context.h',
987         'base/net_log_unittest.cc',
988         'base/net_log_unittest.h',
989         'base/net_util_unittest.cc',
990         'base/network_change_notifier_win_unittest.cc',
991         'base/origin_bound_cert_service_unittest.cc',
992         'base/pem_tokenizer_unittest.cc',
993         'base/registry_controlled_domain_unittest.cc',
994         'base/run_all_unittests.cc',
995         'base/sdch_filter_unittest.cc',
996         'base/single_request_host_resolver_unittest.cc',
997         'base/ssl_cipher_suite_names_unittest.cc',
998         'base/ssl_client_auth_cache_unittest.cc',
999         'base/ssl_config_service_unittest.cc',
1000         'base/ssl_false_start_blacklist_unittest.cc',
1001         'base/static_cookie_policy_unittest.cc',
1002         'base/transport_security_state_unittest.cc',
1003         'base/test_certificate_data.h',
1004         'base/test_completion_callback_unittest.cc',
1005         'base/upload_data_stream_unittest.cc',
1006         'base/x509_certificate_unittest.cc',
1007         'base/x509_cert_types_mac_unittest.cc',
1008         'base/x509_util_nss_unittest.cc',
1009         'base/x509_util_openssl_unittest.cc',
1010         'disk_cache/addr_unittest.cc',
1011         'disk_cache/backend_unittest.cc',
1012         'disk_cache/bitmap_unittest.cc',
1013         'disk_cache/block_files_unittest.cc',
1014         'disk_cache/cache_util_unittest.cc',
1015         'disk_cache/disk_cache_test_base.cc',
1016         'disk_cache/disk_cache_test_base.h',
1017         'disk_cache/entry_unittest.cc',
1018         'disk_cache/mapped_file_unittest.cc',
1019         'disk_cache/storage_block_unittest.cc',
1020         'dns/async_host_resolver_unittest.cc',
1021         'dns/dns_config_service_posix_unittest.cc',
1022         'dns/dns_config_service_unittest.cc',
1023         'dns/dns_config_service_win_unittest.cc',
1024         'dns/dns_hosts_unittest.cc',
1025         'dns/dns_query_unittest.cc',
1026         'dns/dns_response_unittest.cc',
1027         'dns/dns_transaction_unittest.cc',
1028         'dns/serial_worker_unittest.cc',
1029         'dns/watching_file_reader_unittest.cc',
1030         'ftp/ftp_auth_cache_unittest.cc',
1031         'ftp/ftp_ctrl_response_buffer_unittest.cc',
1032         'ftp/ftp_directory_listing_parser_ls_unittest.cc',
1033         'ftp/ftp_directory_listing_parser_netware_unittest.cc',
1034         'ftp/ftp_directory_listing_parser_os2_unittest.cc',
1035         'ftp/ftp_directory_listing_parser_unittest.cc',
1036         'ftp/ftp_directory_listing_parser_vms_unittest.cc',
1037         'ftp/ftp_directory_listing_parser_windows_unittest.cc',
1038         'ftp/ftp_network_transaction_unittest.cc',
1039         'ftp/ftp_util_unittest.cc',
1040         'http/des_unittest.cc',
1041         'http/http_auth_cache_unittest.cc',
1042         'http/http_auth_controller_unittest.cc',
1043         'http/http_auth_filter_unittest.cc',
1044         'http/http_auth_gssapi_posix_unittest.cc',
1045         'http/http_auth_handler_basic_unittest.cc',
1046         'http/http_auth_handler_digest_unittest.cc',
1047         'http/http_auth_handler_factory_unittest.cc',
1048         'http/http_auth_handler_mock.cc',
1049         'http/http_auth_handler_mock.h',
1050         'http/http_auth_handler_negotiate_unittest.cc',
1051         'http/http_auth_handler_unittest.cc',
1052         'http/http_auth_sspi_win_unittest.cc',
1053         'http/http_auth_unittest.cc',
1054         'http/http_byte_range_unittest.cc',
1055         'http/http_cache_unittest.cc',
1056         'http/http_chunked_decoder_unittest.cc',
1057         'http/http_mac_signature_unittest.cc',
1058         'http/http_network_layer_unittest.cc',
1059         'http/http_network_transaction_unittest.cc',
1060         'http/http_pipelined_connection_impl_unittest.cc',
1061         'http/http_pipelined_host_unittest.cc',
1062         'http/http_proxy_client_socket_pool_unittest.cc',
1063         'http/http_request_headers_unittest.cc',
1064         'http/http_response_body_drainer_unittest.cc',
1065         'http/http_response_headers_unittest.cc',
1066         'http/http_server_properties_impl_unittest.cc',
1067         'http/http_stream_factory_impl_unittest.cc',
1068         'http/http_transaction_unittest.cc',
1069         'http/http_transaction_unittest.h',
1070         'http/http_util_unittest.cc',
1071         'http/http_vary_data_unittest.cc',
1072         'http/mock_allow_url_security_manager.cc',
1073         'http/mock_allow_url_security_manager.h',
1074         'http/mock_gssapi_library_posix.cc',
1075         'http/mock_gssapi_library_posix.h',
1076         'http/mock_sspi_library_win.h',
1077         'http/mock_sspi_library_win.cc',
1078         'http/url_security_manager_unittest.cc',
1079         'proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc',
1080         'proxy/dhcp_proxy_script_fetcher_factory_unittest.cc',
1081         'proxy/dhcp_proxy_script_fetcher_win_unittest.cc',
1082         'proxy/init_proxy_resolver_unittest.cc',
1083         'proxy/multi_threaded_proxy_resolver_unittest.cc',
1084         'proxy/network_delegate_error_observer_unittest.cc',
1085         'proxy/proxy_bypass_rules_unittest.cc',
1086         'proxy/proxy_config_service_linux_unittest.cc',
1087         'proxy/proxy_config_service_win_unittest.cc',
1088         'proxy/proxy_config_unittest.cc',
1089         'proxy/proxy_list_unittest.cc',
1090         'proxy/proxy_resolver_js_bindings_unittest.cc',
1091         'proxy/proxy_resolver_v8_unittest.cc',
1092         'proxy/proxy_script_fetcher_impl_unittest.cc',
1093         'proxy/proxy_server_unittest.cc',
1094         'proxy/proxy_service_unittest.cc',
1095         'proxy/sync_host_resolver_bridge_unittest.cc',
1096         'socket/client_socket_pool_base_unittest.cc',
1097         'socket/deterministic_socket_data_unittest.cc',
1098         'socket/socks5_client_socket_unittest.cc',
1099         'socket/socks_client_socket_pool_unittest.cc',
1100         'socket/socks_client_socket_unittest.cc',
1101         'socket/ssl_client_socket_unittest.cc',
1102         'socket/ssl_client_socket_pool_unittest.cc',
1103         'socket/ssl_server_socket_unittest.cc',
1104         'socket/tcp_client_socket_unittest.cc',
1105         'socket/tcp_server_socket_unittest.cc',
1106         'socket/transport_client_socket_pool_unittest.cc',
1107         'socket/transport_client_socket_unittest.cc',
1108         'socket/web_socket_server_socket_unittest.cc',
1109         'socket_stream/socket_stream_metrics_unittest.cc',
1110         'socket_stream/socket_stream_unittest.cc',
1111         'spdy/spdy_framer_test.cc',
1112         'spdy/spdy_http_stream_unittest.cc',
1113         'spdy/spdy_network_transaction_unittest.cc',
1114         'spdy/spdy_protocol_test.cc',
1115         'spdy/spdy_proxy_client_socket_unittest.cc',
1116         'spdy/spdy_session_unittest.cc',
1117         'spdy/spdy_stream_unittest.cc',
1118         'spdy/spdy_test_util.cc',
1119         'spdy/spdy_test_util.h',
1120         'spdy/spdy_websocket_stream_unittest.cc',
1121         'spdy/spdy_websocket_test_util.cc',
1122         'spdy/spdy_websocket_test_util.h',
1123         'test/python_utils_unittest.cc',
1124         'tools/dump_cache/url_to_filename_encoder.cc',
1125         'tools/dump_cache/url_to_filename_encoder.h',
1126         'tools/dump_cache/url_to_filename_encoder_unittest.cc',
1127         'tools/dump_cache/url_utilities.h',
1128         'tools/dump_cache/url_utilities.cc',
1129         'tools/dump_cache/url_utilities_unittest.cc',
1130         'udp/udp_socket_unittest.cc',
1131         'url_request/url_request_job_factory_unittest.cc',
1132         'url_request/url_request_job_unittest.cc',
1133         'url_request/url_request_throttler_simulation_unittest.cc',
1134         'url_request/url_request_throttler_test_support.cc',
1135         'url_request/url_request_throttler_test_support.h',
1136         'url_request/url_request_throttler_unittest.cc',
1137         'url_request/url_request_unittest.cc',
1138         'url_request/view_cache_helper_unittest.cc',
1139         'websockets/websocket_frame_handler_unittest.cc',
1140         'websockets/websocket_handshake_handler_unittest.cc',
1141         'websockets/websocket_job_unittest.cc',
1142         'websockets/websocket_net_log_params_unittest.cc',
1143         'websockets/websocket_throttle_unittest.cc',
1144       ],
1145       'conditions': [
1146         ['chromeos==1', {
1147           'sources!': [
1148              'proxy/proxy_config_service_linux_unittest.cc',
1149           ],
1150         }],
1151         [ 'use_glib == 1', {
1152             'dependencies': [
1153               '../build/linux/system.gyp:ssl',
1154             ],
1155           }, {  # else: OS is not in the above list
1156             'sources!': [
1157               'base/cert_database_nss_unittest.cc',
1158             ],
1159           },
1160         ],
1161         [ 'toolkit_uses_gtk == 1', {
1162             'dependencies': [
1163               '../build/linux/system.gyp:gtk',
1164             ],
1165           },
1166         ],
1167         [ 'os_posix == 1 and OS != "mac"', {
1168           'conditions': [
1169             ['linux_use_tcmalloc==1', {
1170               'dependencies': [
1171                 '../base/allocator/allocator.gyp:allocator',
1172               ],
1173             }],
1174           ],
1175         }],
1176         [ 'use_kerberos==1', {
1177           'defines': [
1178             'USE_KERBEROS',
1179           ],
1180         }, { # use_kerberos == 0
1181           'sources!': [
1182             'http/http_auth_gssapi_posix_unittest.cc',
1183             'http/http_auth_handler_negotiate_unittest.cc',
1184             'http/mock_gssapi_library_posix.cc',
1185             'http/mock_gssapi_library_posix.h',
1186           ],
1187         }],
1188         [ 'use_openssl==1', {
1189             # When building for OpenSSL, we need to exclude NSS specific tests.
1190             # TODO(bulach): Add equivalent tests when the underlying
1191             #               functionality is ported to OpenSSL.
1192             'sources!': [
1193               'base/x509_util_nss_unittest.cc',
1194               'base/cert_database_nss_unittest.cc',
1195               'base/dnssec_unittest.cc',
1196             ],
1197           }, {  # else !use_openssl: remove the unneeded files
1198             'sources!': [
1199               'base/x509_util_openssl_unittest.cc',
1200             ],
1201           },
1202         ],
1203         [ 'OS == "win"', {
1204             'sources!': [
1205               'dns/dns_config_service_posix_unittest.cc',
1206               'http/http_auth_gssapi_posix_unittest.cc',
1207             ],
1208             # This is needed to trigger the dll copy step on windows.
1209             # TODO(mark): Specifying this here shouldn't be necessary.
1210             'dependencies': [
1211               '../third_party/icu/icu.gyp:icudata',
1212               '../third_party/nss/nss.gyp:nspr',
1213               '../third_party/nss/nss.gyp:nss',
1214               'third_party/nss/ssl.gyp:ssl',
1215             ],
1216           },
1217         ],
1218         [ 'OS == "mac"', {
1219             'dependencies': [
1220               '../third_party/nss/nss.gyp:nspr',
1221               '../third_party/nss/nss.gyp:nss',
1222               'third_party/nss/ssl.gyp:ssl',
1223             ],
1224           },
1225         ],
1226       ],
1227     },
1228     {
1229       'target_name': 'net_perftests',
1230       'type': 'executable',
1231       'dependencies': [
1232         'net',
1233         'net_test_support',
1234         '../base/base.gyp:base',
1235         '../base/base.gyp:base_i18n',
1236         '../base/base.gyp:test_support_perf',
1237         '../build/temp_gyp/googleurl.gyp:googleurl',
1238         '../testing/gtest.gyp:gtest',
1239       ],
1240       'sources': [
1241         'base/cookie_monster_perftest.cc',
1242         'disk_cache/disk_cache_perftest.cc',
1243         'proxy/proxy_resolver_perftest.cc',
1244       ],
1245       'conditions': [
1246         # This is needed to trigger the dll copy step on windows.
1247         # TODO(mark): Specifying this here shouldn't be necessary.
1248         [ 'OS == "win"', {
1249             'dependencies': [
1250               '../third_party/icu/icu.gyp:icudata',
1251             ],
1252           },
1253         ],
1254       ],
1255     },
1256     {
1257       'target_name': 'stress_cache',
1258       'type': 'executable',
1259       'dependencies': [
1260         'net',
1261         'net_test_support',
1262         '../base/base.gyp:base',
1263       ],
1264       'sources': [
1265         'disk_cache/stress_cache.cc',
1266       ],
1267     },
1268     {
1269       'target_name': 'tld_cleanup',
1270       'type': 'executable',
1271       'dependencies': [
1272         '../base/base.gyp:base',
1273         '../base/base.gyp:base_i18n',
1274         '../build/temp_gyp/googleurl.gyp:googleurl',
1275       ],
1276       'sources': [
1277         'tools/tld_cleanup/tld_cleanup.cc',
1278       ],
1279     },
1280     {
1281       'target_name': 'crash_cache',
1282       'type': 'executable',
1283       'dependencies': [
1284         'net',
1285         'net_test_support',
1286         '../base/base.gyp:base',
1287       ],
1288       'sources': [
1289         'tools/crash_cache/crash_cache.cc',
1290       ],
1291     },
1292     {
1293       'target_name': 'run_testserver',
1294       'type': 'executable',
1295       'dependencies': [
1296         'net',
1297         'net_test_support',
1298         '../base/base.gyp:base',
1299         '../build/temp_gyp/googleurl.gyp:googleurl',
1300         '../testing/gtest.gyp:gtest',
1301       ],
1302       'sources': [
1303         'tools/testserver/run_testserver.cc',
1304       ],
1305     },
1306     {
1307       'target_name': 'net_test_support',
1308       'type': 'static_library',
1309       'dependencies': [
1310         'net',
1311         '../base/base.gyp:base',
1312         '../base/base.gyp:test_support_base',
1313         '../build/temp_gyp/googleurl.gyp:googleurl',
1314         '../testing/gtest.gyp:gtest',
1315       ],
1316       'sources': [
1317         'base/cert_test_util.cc',
1318         'base/cert_test_util.h',
1319         'base/cookie_monster_store_test.cc',
1320         'base/cookie_monster_store_test.h',
1321         'base/cookie_store_test_helpers.cc',
1322         'base/cookie_store_test_helpers.h',
1323         'base/mock_file_stream.cc',
1324         'base/mock_file_stream.h',
1325         'base/mock_host_resolver.cc',
1326         'base/mock_host_resolver.h',
1327         'base/net_test_suite.cc',
1328         'base/net_test_suite.h',
1329         'base/test_completion_callback.cc',
1330         'base/test_completion_callback.h',
1331         'base/test_host_resolver_observer.cc',
1332         'base/test_host_resolver_observer.h',
1333         'disk_cache/disk_cache_test_util.cc',
1334         'disk_cache/disk_cache_test_util.h',
1335         'dns/dns_test_util.cc',
1336         'dns/dns_test_util.h',
1337         'proxy/mock_proxy_resolver.cc',
1338         'proxy/mock_proxy_resolver.h',
1339         'proxy/mock_proxy_script_fetcher.cc',
1340         'proxy/mock_proxy_script_fetcher.h',
1341         'proxy/proxy_config_service_common_unittest.cc',
1342         'proxy/proxy_config_service_common_unittest.h',
1343         'socket/socket_test_util.cc',
1344         'socket/socket_test_util.h',
1345         'test/python_utils.cc',
1346         'test/python_utils.h',
1347         'test/test_server.cc',
1348         'test/test_server_posix.cc',
1349         'test/test_server_win.cc',
1350         'test/test_server.h',
1351         'url_request/url_request_test_util.cc',
1352         'url_request/url_request_test_util.h',
1353       ],
1354       'conditions': [
1355         ['inside_chromium_build==1', {
1356           'dependencies': [
1357             '../chrome/app/policy/cloud_policy_codegen.gyp:cloud_policy_proto_compile',
1358             # The test server uses Python modules generated by the sync protos.
1359             '../chrome/browser/sync/protocol/sync_proto.gyp:sync_proto',
1360             '../third_party/protobuf/protobuf.gyp:py_proto',
1361           ],
1362         }],
1363         ['os_posix == 1 and OS != "mac"', {
1364           'conditions': [
1365             ['use_openssl==1', {
1366               'dependencies': [
1367                 '../third_party/openssl/openssl.gyp:openssl',
1368               ],
1369             }, {
1370               'dependencies': [
1371                 '../build/linux/system.gyp:ssl',
1372               ],
1373             }],
1374           ],
1375         }],
1376         ['os_posix == 1 and OS != "mac"', {
1377           'conditions': [
1378             ['linux_use_tcmalloc==1', {
1379               'dependencies': [
1380                 '../base/allocator/allocator.gyp:allocator',
1381               ],
1382             }],
1383           ],
1384         }],
1385       ],
1386     },
1387     {
1388       'target_name': 'net_resources',
1389       'type': 'none',
1390       'variables': {
1391         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
1392       },
1393       'actions': [
1394         {
1395           'action_name': 'net_resources',
1396           'variables': {
1397             'grit_grd_file': 'base/net_resources.grd',
1398           },
1399           'includes': [ '../build/grit_action.gypi' ],
1400         },
1401       ],
1402       'includes': [ '../build/grit_target.gypi' ],
1403     },
1404     {
1405       'target_name': 'fetch_client',
1406       'type': 'executable',
1407       'dependencies': [
1408         'net',
1409         '../base/base.gyp:base',
1410         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1411         '../build/temp_gyp/googleurl.gyp:googleurl',
1412         '../testing/gtest.gyp:gtest',
1413       ],
1414       'sources': [
1415         'tools/fetch/fetch_client.cc',
1416       ],
1417     },
1418     {
1419       'target_name': 'fetch_server',
1420       'type': 'executable',
1421       'dependencies': [
1422         'net',
1423         '../base/base.gyp:base',
1424         '../build/temp_gyp/googleurl.gyp:googleurl',
1425         '../testing/gtest.gyp:gtest',
1426       ],
1427       'sources': [
1428         'tools/fetch/fetch_server.cc',
1429         'tools/fetch/http_listen_socket.cc',
1430         'tools/fetch/http_listen_socket.h',
1431         'tools/fetch/http_server.cc',
1432         'tools/fetch/http_server.h',
1433         'tools/fetch/http_server_request_info.cc',
1434         'tools/fetch/http_server_request_info.h',
1435         'tools/fetch/http_server_response_info.cc',
1436         'tools/fetch/http_server_response_info.h',
1437         'tools/fetch/http_session.cc',
1438         'tools/fetch/http_session.h',
1439       ],
1440     },
1441     {
1442       'target_name': 'http_server',
1443       'type': 'static_library',
1444       'dependencies': [
1445         'net',
1446         '../base/base.gyp:base',
1447         '../testing/gtest.gyp:gtest',
1448       ],
1449       'sources': [
1450         'server/http_connection.cc',
1451         'server/http_connection.h',
1452         'server/http_server.cc',
1453         'server/http_server.h',
1454         'server/http_server_request_info.cc',
1455         'server/http_server_request_info.h',
1456         'server/web_socket.cc',
1457         'server/web_socket.h',
1458       ],
1459     },
1460     {
1461       'target_name': 'dnssec_chain_verify',
1462       'type': 'executable',
1463       'dependencies': [
1464         'net',
1465         '../base/base.gyp:base',
1466       ],
1467       'sources': [
1468         'tools/dnssec_chain_verify/dnssec_chain_verify.cc',
1469       ]
1470     },
1471     {
1472       'target_name': 'ssl_false_start_blacklist_process',
1473       'type': 'executable',
1474       'toolsets': ['host'],
1475       'dependencies': [
1476         '../base/base.gyp:base',
1477         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1478       ],
1479       'include_dirs': [
1480         '..',
1481       ],
1482       'sources': [
1483         'base/ssl_false_start_blacklist_process.cc',
1484         'base/ssl_false_start_blacklist.h',
1485       ],
1486     },
1487   ],
1488   'conditions': [
1489      ['os_posix == 1 and OS != "mac"', {
1490        'targets': [
1491          {
1492            'target_name': 'flip_in_mem_edsm_server',
1493            'type': 'executable',
1494            'cflags': [
1495              '-Wno-deprecated',
1496            ],
1497            'dependencies': [
1498              '../base/base.gyp:base',
1499              'net',
1500              '../third_party/openssl/openssl.gyp:openssl',
1501            ],
1502            'sources': [
1503              'tools/dump_cache/url_to_filename_encoder.cc',
1504              'tools/dump_cache/url_to_filename_encoder.h',
1505              'tools/dump_cache/url_utilities.h',
1506              'tools/dump_cache/url_utilities.cc',
1508              'tools/flip_server/acceptor_thread.h',
1509              'tools/flip_server/acceptor_thread.cc',
1510              'tools/flip_server/balsa_enums.h',
1511              'tools/flip_server/balsa_frame.cc',
1512              'tools/flip_server/balsa_frame.h',
1513              'tools/flip_server/balsa_headers.cc',
1514              'tools/flip_server/balsa_headers.h',
1515              'tools/flip_server/balsa_headers_token_utils.cc',
1516              'tools/flip_server/balsa_headers_token_utils.h',
1517              'tools/flip_server/balsa_visitor_interface.h',
1518              'tools/flip_server/buffer_interface.h',
1519              'tools/flip_server/constants.h',
1520              'tools/flip_server/create_listener.cc',
1521              'tools/flip_server/create_listener.h',
1522              'tools/flip_server/epoll_server.cc',
1523              'tools/flip_server/epoll_server.h',
1524              'tools/flip_server/flip_config.cc',
1525              'tools/flip_server/flip_config.h',
1526              'tools/flip_server/flip_in_mem_edsm_server.cc',
1527              'tools/flip_server/http_interface.cc',
1528              'tools/flip_server/http_interface.h',
1529              'tools/flip_server/http_message_constants.cc',
1530              'tools/flip_server/http_message_constants.h',
1531              'tools/flip_server/loadtime_measurement.h',
1532              'tools/flip_server/mem_cache.h',
1533              'tools/flip_server/mem_cache.cc',
1534              'tools/flip_server/output_ordering.cc',
1535              'tools/flip_server/output_ordering.h',
1536              'tools/flip_server/ring_buffer.cc',
1537              'tools/flip_server/ring_buffer.h',
1538              'tools/flip_server/simple_buffer.cc',
1539              'tools/flip_server/simple_buffer.h',
1540              'tools/flip_server/sm_connection.cc',
1541              'tools/flip_server/sm_connection.h',
1542              'tools/flip_server/sm_interface.h',
1543              'tools/flip_server/split.h',
1544              'tools/flip_server/split.cc',
1545              'tools/flip_server/spdy_ssl.cc',
1546              'tools/flip_server/spdy_ssl.h',
1547              'tools/flip_server/spdy_interface.cc',
1548              'tools/flip_server/spdy_interface.h',
1549              'tools/flip_server/spdy_util.cc',
1550              'tools/flip_server/spdy_util.h',
1551              'tools/flip_server/streamer_interface.cc',
1552              'tools/flip_server/streamer_interface.h',
1553              'tools/flip_server/string_piece_utils.h',
1554            ],
1555          },
1556          {
1557            'target_name': 'curvecp',
1558            'type': 'static_library',
1559            'dependencies': [
1560              '../base/base.gyp:base',
1561              'net',
1562            ],
1563            'sources': [
1564              'curvecp/circular_buffer.cc',
1565              'curvecp/circular_buffer.h',
1566              'curvecp/client_packetizer.cc',
1567              'curvecp/client_packetizer.h',
1568              'curvecp/connection_key.cc',
1569              'curvecp/connection_key.h',
1570              'curvecp/curvecp_client_socket.cc',
1571              'curvecp/curvecp_client_socket.h',
1572              'curvecp/curvecp_server_socket.cc',
1573              'curvecp/curvecp_server_socket.h',
1574              'curvecp/messenger.h',
1575              'curvecp/messenger.cc',
1576              'curvecp/packetizer.h',
1577              'curvecp/protocol.cc',
1578              'curvecp/protocol.h',
1579              'curvecp/received_block_list.cc',
1580              'curvecp/received_block_list.h',
1581              'curvecp/rtt_and_send_rate_calculator.cc',
1582              'curvecp/rtt_and_send_rate_calculator.h',
1583              'curvecp/sent_block_list.cc',
1584              'curvecp/sent_block_list.h',
1585              'curvecp/server_messenger.cc',
1586              'curvecp/server_messenger.h',
1587              'curvecp/server_packetizer.cc',
1588              'curvecp/server_packetizer.h',
1589            ],
1590          },
1591          {
1592            'target_name': 'curvecp_unittests',
1593            'type': 'executable',
1594            'dependencies': [
1595              '../base/base.gyp:base',
1596              'curvecp',
1597              'net',
1598              'net_test_support',
1599              '../testing/gmock.gyp:gmock',
1600              '../testing/gtest.gyp:gtest',
1601              '../third_party/zlib/zlib.gyp:zlib',
1602            ],
1603            'sources': [
1604              'curvecp/curvecp_transfer_unittest.cc',
1605              'curvecp/test_client.cc',
1606              'curvecp/test_server.cc',
1607            ],
1608          },
1609        ]
1610      }],
1611     ['OS=="win"', {
1612       'targets': [
1613         {
1614           # TODO(port): dump_cache is still Windows-specific.
1615           'target_name': 'dump_cache',
1616           'type': 'executable',
1617           'dependencies': [
1618             'net',
1619             'net_test_support',
1620             '../base/base.gyp:base',
1621           ],
1622           'sources': [
1623             'tools/dump_cache/cache_dumper.cc',
1624             'tools/dump_cache/cache_dumper.h',
1625             'tools/dump_cache/dump_cache.cc',
1626             'tools/dump_cache/dump_files.cc',
1627             'tools/dump_cache/upgrade.cc',
1628             'tools/dump_cache/url_to_filename_encoder.cc',
1629             'tools/dump_cache/url_to_filename_encoder.h',
1630             'tools/dump_cache/url_utilities.h',
1631             'tools/dump_cache/url_utilities.cc',
1632           ],
1633         },
1634       ],
1635     }],
1636   ],