Move pending tile priorities to active on tree activation
[chromium-blink-merge.git] / net / net.gyp
blob408a330dde1f4f5fbf4880b7b1dd502014de0aae
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   'variables': {
7     'chromium_code': 1,
9     'linux_link_kerberos%': 0,
10     'conditions': [
11       ['chromeos==1 or OS=="android" or OS=="ios"', {
12         # Disable Kerberos on ChromeOS, Android and iOS, 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       ['OS=="android"', {
19         # The way the cache uses mmap() is inefficient on some Android devices.
20         # If this flag is set, we hackily avoid using mmap() in the disk cache.
21         'posix_avoid_mmap%': 1,
22       }, {
23         'posix_avoid_mmap%': 0,
24       }],
25       ['OS=="ios"', {
26         # Websockets and socket stream are not used on iOS.
27         'enable_websockets%': 0,
28         # iOS does not use V8.
29         'use_v8_in_net%': 0,
30         'enable_built_in_dns%': 0,
31       }, {
32         'enable_websockets%': 1,
33         'use_v8_in_net%': 1,
34         'enable_built_in_dns%': 1,
35       }],
36     ],
37   },
38   'includes': [
39     '../build/win_precompile.gypi',
40   ],
41   'targets': [
42     {
43       'target_name': 'net',
44       'type': '<(component)',
45       'variables': { 'enable_wexit_time_destructors': 1, },
46       'dependencies': [
47         '../base/base.gyp:base',
48         '../base/base.gyp:base_i18n',
49         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
50         '../build/temp_gyp/googleurl.gyp:googleurl',
51         '../crypto/crypto.gyp:crypto',
52         '../sdch/sdch.gyp:sdch',
53         '../third_party/icu/icu.gyp:icui18n',
54         '../third_party/icu/icu.gyp:icuuc',
55         '../third_party/zlib/zlib.gyp:zlib',
56         'net_resources',
57       ],
58       'sources': [
59         'android/gurl_utils.cc',
60         'android/gurl_utils.h',
61         'android/net_jni_registrar.cc',
62         'android/net_jni_registrar.h',
63         'android/network_change_notifier_android.cc',
64         'android/network_change_notifier_android.h',
65         'android/network_change_notifier_delegate_android.cc',
66         'android/network_change_notifier_delegate_android.h',
67         'android/network_change_notifier_factory_android.cc',
68         'android/network_change_notifier_factory_android.h',
69         'android/network_library.cc',
70         'android/network_library.h',
71         'base/address_family.h',
72         'base/address_list.cc',
73         'base/address_list.h',
74         'base/address_tracker_linux.cc',
75         'base/address_tracker_linux.h',
76         'base/asn1_util.cc',
77         'base/asn1_util.h',
78         'base/auth.cc',
79         'base/auth.h',
80         'base/backoff_entry.cc',
81         'base/backoff_entry.h',
82         'base/bandwidth_metrics.cc',
83         'base/bandwidth_metrics.h',
84         'base/big_endian.cc',
85         'base/big_endian.h',
86         'base/cache_type.h',
87         'base/cert_database.cc',
88         'base/cert_database.h',
89         'base/cert_database_android.cc',
90         'base/cert_database_ios.cc',
91         'base/cert_database_mac.cc',
92         'base/cert_database_nss.cc',
93         'base/cert_database_openssl.cc',
94         'base/cert_database_win.cc',
95         'base/cert_status_flags.cc',
96         'base/cert_status_flags.h',
97         'base/cert_verifier.cc',
98         'base/cert_verifier.h',
99         'base/cert_verify_proc.cc',
100         'base/cert_verify_proc.h',
101         'base/cert_verify_proc_android.cc',
102         'base/cert_verify_proc_android.h',
103         'base/cert_verify_proc_mac.cc',
104         'base/cert_verify_proc_mac.h',
105         'base/cert_verify_proc_nss.cc',
106         'base/cert_verify_proc_nss.h',
107         'base/cert_verify_proc_openssl.cc',
108         'base/cert_verify_proc_openssl.h',
109         'base/cert_verify_proc_win.cc',
110         'base/cert_verify_proc_win.h',
111         'base/cert_verify_result.cc',
112         'base/cert_verify_result.h',
113         'base/completion_callback.h',
114         'base/connection_type_histograms.cc',
115         'base/connection_type_histograms.h',
116         'base/crl_set.cc',
117         'base/crl_set.h',
118         'base/crypto_module.h',
119         'base/crypto_module_nss.cc',
120         'base/crypto_module_openssl.cc',
121         'base/data_url.cc',
122         'base/data_url.h',
123         'base/default_server_bound_cert_store.cc',
124         'base/default_server_bound_cert_store.h',
125         'base/directory_lister.cc',
126         'base/directory_lister.h',
127         'base/dns_reloader.cc',
128         'base/dns_reloader.h',
129         'base/dns_util.cc',
130         'base/dns_util.h',
131         'base/escape.cc',
132         'base/escape.h',
133         'base/ev_root_ca_metadata.cc',
134         'base/ev_root_ca_metadata.h',
135         'base/expiring_cache.h',
136         'base/file_stream.cc',
137         'base/file_stream.h',
138         'base/file_stream_context.cc',
139         'base/file_stream_context.h',
140         'base/file_stream_context_posix.cc',
141         'base/file_stream_context_win.cc',
142         'base/file_stream_metrics.cc',
143         'base/file_stream_metrics.h',
144         'base/file_stream_metrics_posix.cc',
145         'base/file_stream_metrics_win.cc',
146         'base/file_stream_net_log_parameters.cc',
147         'base/file_stream_net_log_parameters.h',
148         'base/file_stream_whence.h',
149         'base/filter.cc',
150         'base/filter.h',
151         'base/int128.cc',
152         'base/int128.h',
153         'base/gzip_filter.cc',
154         'base/gzip_filter.h',
155         'base/gzip_header.cc',
156         'base/gzip_header.h',
157         'base/hash_value.cc',
158         'base/hash_value.h',
159         'base/host_cache.cc',
160         'base/host_cache.h',
161         'base/host_mapping_rules.cc',
162         'base/host_mapping_rules.h',
163         'base/host_port_pair.cc',
164         'base/host_port_pair.h',
165         'base/host_resolver.cc',
166         'base/host_resolver.h',
167         'base/host_resolver_impl.cc',
168         'base/host_resolver_impl.h',
169         'base/host_resolver_proc.cc',
170         'base/host_resolver_proc.h',
171         'base/io_buffer.cc',
172         'base/io_buffer.h',
173         'base/ip_endpoint.cc',
174         'base/ip_endpoint.h',
175         'base/keygen_handler.cc',
176         'base/keygen_handler.h',
177         'base/keygen_handler_mac.cc',
178         'base/keygen_handler_nss.cc',
179         'base/keygen_handler_openssl.cc',
180         'base/keygen_handler_win.cc',
181         'base/load_flags.h',
182         'base/load_flags_list.h',
183         'base/load_states.h',
184         'base/load_states_list.h',
185         'base/load_timing_info.cc',
186         'base/load_timing_info.h',
187         'base/mapped_host_resolver.cc',
188         'base/mapped_host_resolver.h',
189         'base/mime_sniffer.cc',
190         'base/mime_sniffer.h',
191         'base/mime_util.cc',
192         'base/mime_util.h',
193         'base/multi_threaded_cert_verifier.cc',
194         'base/multi_threaded_cert_verifier.h',
195         'base/net_error_list.h',
196         'base/net_errors.cc',
197         'base/net_errors.h',
198         'base/net_errors_posix.cc',
199         'base/net_errors_win.cc',
200         'base/net_export.h',
201         'base/net_log.cc',
202         'base/net_log.h',
203         'base/net_log_event_type_list.h',
204         'base/net_log_source_type_list.h',
205         'base/net_module.cc',
206         'base/net_module.h',
207         'base/net_util.cc',
208         'base/net_util.h',
209         'base/net_util_posix.cc',
210         'base/net_util_win.cc',
211         'base/network_change_notifier.cc',
212         'base/network_change_notifier.h',
213         'base/network_change_notifier_factory.h',
214         'base/network_change_notifier_linux.cc',
215         'base/network_change_notifier_linux.h',
216         'base/network_change_notifier_mac.cc',
217         'base/network_change_notifier_mac.h',
218         'base/network_change_notifier_win.cc',
219         'base/network_change_notifier_win.h',
220         'base/network_config_watcher_mac.cc',
221         'base/network_config_watcher_mac.h',
222         'base/network_delegate.cc',
223         'base/network_delegate.h',
224         'base/nss_cert_database.cc',
225         'base/nss_cert_database.h',
226         'base/nss_memio.c',
227         'base/nss_memio.h',
228         'base/openssl_memory_private_key_store.cc',
229         'base/openssl_private_key_store.h',
230         'base/openssl_private_key_store_android.cc',
231         'base/pem_tokenizer.cc',
232         'base/pem_tokenizer.h',
233         'base/platform_mime_util.h',
234         # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
235         'base/platform_mime_util_linux.cc',
236         'base/platform_mime_util_mac.mm',
237         'base/platform_mime_util_win.cc',
238         'base/prioritized_dispatcher.cc',
239         'base/prioritized_dispatcher.h',
240         'base/priority_queue.h',
241         'base/rand_callback.h',
242         'base/registry_controlled_domains/registry_controlled_domain.cc',
243         'base/registry_controlled_domains/registry_controlled_domain.h',
244         'base/request_priority.h',
245         'base/sdch_filter.cc',
246         'base/sdch_filter.h',
247         'base/sdch_manager.cc',
248         'base/sdch_manager.h',
249         'base/server_bound_cert_service.cc',
250         'base/server_bound_cert_service.h',
251         'base/server_bound_cert_store.cc',
252         'base/server_bound_cert_store.h',
253         'base/single_request_cert_verifier.cc',
254         'base/single_request_cert_verifier.h',
255         'base/single_request_host_resolver.cc',
256         'base/single_request_host_resolver.h',
257         'base/ssl_cert_request_info.cc',
258         'base/ssl_cert_request_info.h',
259         'base/ssl_cipher_suite_names.cc',
260         'base/ssl_cipher_suite_names.h',
261         'base/ssl_client_auth_cache.cc',
262         'base/ssl_client_auth_cache.h',
263         'base/ssl_client_cert_type.h',
264         'base/ssl_config_service.cc',
265         'base/ssl_config_service.h',
266         'base/ssl_config_service_defaults.cc',
267         'base/ssl_config_service_defaults.h',
268         'base/ssl_info.cc',
269         'base/ssl_info.h',
270         'base/static_cookie_policy.cc',
271         'base/static_cookie_policy.h',
272         'base/stream_listen_socket.cc',
273         'base/stream_listen_socket.h',
274         'base/sys_addrinfo.h',
275         'base/tcp_listen_socket.cc',
276         'base/tcp_listen_socket.h',
277         'base/test_data_stream.cc',
278         'base/test_data_stream.h',
279         'base/test_root_certs.cc',
280         'base/test_root_certs.h',
281         'base/test_root_certs_mac.cc',
282         'base/test_root_certs_nss.cc',
283         'base/test_root_certs_openssl.cc',
284         'base/test_root_certs_android.cc',
285         'base/test_root_certs_win.cc',
286         'base/transport_security_state.cc',
287         'base/transport_security_state.h',
288         'base/transport_security_state_static.h',
289         'base/unix_domain_socket_posix.cc',
290         'base/unix_domain_socket_posix.h',
291         'base/upload_bytes_element_reader.cc',
292         'base/upload_bytes_element_reader.h',
293         'base/upload_data.cc',
294         'base/upload_data.h',
295         'base/upload_data_stream.cc',
296         'base/upload_data_stream.h',
297         'base/upload_element.cc',
298         'base/upload_element.h',
299         'base/upload_element_reader.cc',
300         'base/upload_element_reader.h',
301         'base/upload_file_element_reader.cc',
302         'base/upload_file_element_reader.h',
303         'base/upload_progress.h',
304         'base/winsock_init.cc',
305         'base/winsock_init.h',
306         'base/winsock_util.cc',
307         'base/winsock_util.h',
308         'base/x509_cert_types.cc',
309         'base/x509_cert_types.h',
310         'base/x509_cert_types_mac.cc',
311         'base/x509_cert_types_win.cc',
312         'base/x509_certificate.cc',
313         'base/x509_certificate.h',
314         'base/x509_certificate_ios.cc',
315         'base/x509_certificate_mac.cc',
316         'base/x509_certificate_net_log_param.cc',
317         'base/x509_certificate_net_log_param.h',
318         'base/x509_certificate_nss.cc',
319         'base/x509_certificate_openssl.cc',
320         'base/x509_certificate_win.cc',
321         'base/x509_util.h',
322         'base/x509_util.cc',
323         'base/x509_util_ios.cc',
324         'base/x509_util_ios.h',
325         'base/x509_util_mac.cc',
326         'base/x509_util_mac.h',
327         'base/x509_util_nss.cc',
328         'base/x509_util_nss.h',
329         'base/x509_util_openssl.cc',
330         'base/x509_util_openssl.h',
331         'base/zap.cc',
332         'base/zap.h',
333         'cookies/canonical_cookie.cc',
334         'cookies/canonical_cookie.h',
335         'cookies/cookie_monster.cc',
336         'cookies/cookie_monster.h',
337         'cookies/cookie_options.h',
338         'cookies/cookie_store.cc',
339         'cookies/cookie_store.h',
340         'cookies/cookie_util.cc',
341         'cookies/cookie_util.h',
342         'cookies/parsed_cookie.cc',
343         'cookies/parsed_cookie.h',
344         'disk_cache/addr.cc',
345         'disk_cache/addr.h',
346         'disk_cache/backend_impl.cc',
347         'disk_cache/backend_impl.h',
348         'disk_cache/bitmap.cc',
349         'disk_cache/bitmap.h',
350         'disk_cache/block_files.cc',
351         'disk_cache/block_files.h',
352         'disk_cache/cache_util.h',
353         'disk_cache/cache_util_posix.cc',
354         'disk_cache/cache_util_win.cc',
355         'disk_cache/disk_cache.h',
356         'disk_cache/disk_format.cc',
357         'disk_cache/disk_format.h',
358         'disk_cache/entry_impl.cc',
359         'disk_cache/entry_impl.h',
360         'disk_cache/errors.h',
361         'disk_cache/eviction.cc',
362         'disk_cache/eviction.h',
363         'disk_cache/experiments.h',
364         'disk_cache/file.cc',
365         'disk_cache/file.h',
366         'disk_cache/file_block.h',
367         'disk_cache/file_lock.cc',
368         'disk_cache/file_lock.h',
369         'disk_cache/file_posix.cc',
370         'disk_cache/file_win.cc',
371         'disk_cache/histogram_macros.h',
372         'disk_cache/in_flight_backend_io.cc',
373         'disk_cache/in_flight_backend_io.h',
374         'disk_cache/in_flight_io.cc',
375         'disk_cache/in_flight_io.h',
376         'disk_cache/mapped_file.h',
377         'disk_cache/mapped_file_posix.cc',
378         'disk_cache/mapped_file_avoid_mmap_posix.cc',
379         'disk_cache/mapped_file_win.cc',
380         'disk_cache/mem_backend_impl.cc',
381         'disk_cache/mem_backend_impl.h',
382         'disk_cache/mem_entry_impl.cc',
383         'disk_cache/mem_entry_impl.h',
384         'disk_cache/mem_rankings.cc',
385         'disk_cache/mem_rankings.h',
386         'disk_cache/net_log_parameters.cc',
387         'disk_cache/net_log_parameters.h',
388         'disk_cache/rankings.cc',
389         'disk_cache/rankings.h',
390         'disk_cache/sparse_control.cc',
391         'disk_cache/sparse_control.h',
392         'disk_cache/stats.cc',
393         'disk_cache/stats.h',
394         'disk_cache/stats_histogram.cc',
395         'disk_cache/stats_histogram.h',
396         'disk_cache/storage_block-inl.h',
397         'disk_cache/storage_block.h',
398         'disk_cache/stress_support.h',
399         'disk_cache/trace.cc',
400         'disk_cache/trace.h',
401         'disk_cache/flash/format.h',
402         'disk_cache/flash/log_store.cc',
403         'disk_cache/flash/log_store.h',
404         'disk_cache/flash/log_store_entry.cc',
405         'disk_cache/flash/log_store_entry.h',
406         'disk_cache/flash/segment.cc',
407         'disk_cache/flash/segment.h',
408         'disk_cache/flash/storage.cc',
409         'disk_cache/flash/storage.h',
410         'dns/address_sorter.h',
411         'dns/address_sorter_posix.cc',
412         'dns/address_sorter_posix.h',
413         'dns/address_sorter_win.cc',
414         'dns/dns_client.cc',
415         'dns/dns_client.h',
416         'dns/dns_config_service.cc',
417         'dns/dns_config_service.h',
418         'dns/dns_config_service_posix.cc',
419         'dns/dns_config_service_posix.h',
420         'dns/dns_config_service_win.cc',
421         'dns/dns_config_service_win.h',
422         'dns/dns_hosts.cc',
423         'dns/dns_hosts.h',
424         'dns/dns_protocol.h',
425         'dns/dns_query.cc',
426         'dns/dns_query.h',
427         'dns/dns_response.cc',
428         'dns/dns_response.h',
429         'dns/dns_session.cc',
430         'dns/dns_session.h',
431         'dns/dns_socket_pool.cc',
432         'dns/dns_socket_pool.h',
433         'dns/dns_transaction.cc',
434         'dns/dns_transaction.h',
435         'dns/notify_watcher_mac.cc',
436         'dns/notify_watcher_mac.h',
437         'dns/serial_worker.cc',
438         'dns/serial_worker.h',
439         'ftp/ftp_auth_cache.cc',
440         'ftp/ftp_auth_cache.h',
441         'ftp/ftp_ctrl_response_buffer.cc',
442         'ftp/ftp_ctrl_response_buffer.h',
443         'ftp/ftp_directory_listing_parser.cc',
444         'ftp/ftp_directory_listing_parser.h',
445         'ftp/ftp_directory_listing_parser_ls.cc',
446         'ftp/ftp_directory_listing_parser_ls.h',
447         'ftp/ftp_directory_listing_parser_netware.cc',
448         'ftp/ftp_directory_listing_parser_netware.h',
449         'ftp/ftp_directory_listing_parser_os2.cc',
450         'ftp/ftp_directory_listing_parser_os2.h',
451         'ftp/ftp_directory_listing_parser_vms.cc',
452         'ftp/ftp_directory_listing_parser_vms.h',
453         'ftp/ftp_directory_listing_parser_windows.cc',
454         'ftp/ftp_directory_listing_parser_windows.h',
455         'ftp/ftp_network_layer.cc',
456         'ftp/ftp_network_layer.h',
457         'ftp/ftp_network_session.cc',
458         'ftp/ftp_network_session.h',
459         'ftp/ftp_network_transaction.cc',
460         'ftp/ftp_network_transaction.h',
461         'ftp/ftp_request_info.h',
462         'ftp/ftp_response_info.cc',
463         'ftp/ftp_response_info.h',
464         'ftp/ftp_server_type_histograms.cc',
465         'ftp/ftp_server_type_histograms.h',
466         'ftp/ftp_transaction.h',
467         'ftp/ftp_transaction_factory.h',
468         'ftp/ftp_util.cc',
469         'ftp/ftp_util.h',
470         'http/des.cc',
471         'http/des.h',
472         'http/http_atom_list.h',
473         'http/http_auth.cc',
474         'http/http_auth.h',
475         'http/http_auth_cache.cc',
476         'http/http_auth_cache.h',
477         'http/http_auth_controller.cc',
478         'http/http_auth_controller.h',
479         'http/http_auth_filter.cc',
480         'http/http_auth_filter.h',
481         'http/http_auth_filter_win.h',
482         'http/http_auth_gssapi_posix.cc',
483         'http/http_auth_gssapi_posix.h',
484         'http/http_auth_handler.cc',
485         'http/http_auth_handler.h',
486         'http/http_auth_handler_basic.cc',
487         'http/http_auth_handler_basic.h',
488         'http/http_auth_handler_digest.cc',
489         'http/http_auth_handler_digest.h',
490         'http/http_auth_handler_factory.cc',
491         'http/http_auth_handler_factory.h',
492         'http/http_auth_handler_negotiate.cc',
493         'http/http_auth_handler_negotiate.h',
494         'http/http_auth_handler_ntlm.cc',
495         'http/http_auth_handler_ntlm.h',
496         'http/http_auth_handler_ntlm_portable.cc',
497         'http/http_auth_handler_ntlm_win.cc',
498         'http/http_auth_sspi_win.cc',
499         'http/http_auth_sspi_win.h',
500         'http/http_basic_stream.cc',
501         'http/http_basic_stream.h',
502         'http/http_byte_range.cc',
503         'http/http_byte_range.h',
504         'http/http_cache.cc',
505         'http/http_cache.h',
506         'http/http_cache_transaction.cc',
507         'http/http_cache_transaction.h',
508         'http/http_content_disposition.cc',
509         'http/http_content_disposition.h',
510         'http/http_chunked_decoder.cc',
511         'http/http_chunked_decoder.h',
512         'http/http_network_layer.cc',
513         'http/http_network_layer.h',
514         'http/http_network_session.cc',
515         'http/http_network_session.h',
516         'http/http_network_session_peer.cc',
517         'http/http_network_session_peer.h',
518         'http/http_network_transaction.cc',
519         'http/http_network_transaction.h',
520         'http/http_pipelined_connection.h',
521         'http/http_pipelined_connection_impl.cc',
522         'http/http_pipelined_connection_impl.h',
523         'http/http_pipelined_host.cc',
524         'http/http_pipelined_host.h',
525         'http/http_pipelined_host_capability.h',
526         'http/http_pipelined_host_forced.cc',
527         'http/http_pipelined_host_forced.h',
528         'http/http_pipelined_host_impl.cc',
529         'http/http_pipelined_host_impl.h',
530         'http/http_pipelined_host_pool.cc',
531         'http/http_pipelined_host_pool.h',
532         'http/http_pipelined_stream.cc',
533         'http/http_pipelined_stream.h',
534         'http/http_proxy_client_socket.cc',
535         'http/http_proxy_client_socket.h',
536         'http/http_proxy_client_socket_pool.cc',
537         'http/http_proxy_client_socket_pool.h',
538         'http/http_request_headers.cc',
539         'http/http_request_headers.h',
540         'http/http_request_info.cc',
541         'http/http_request_info.h',
542         'http/http_response_body_drainer.cc',
543         'http/http_response_body_drainer.h',
544         'http/http_response_headers.cc',
545         'http/http_response_headers.h',
546         'http/http_response_info.cc',
547         'http/http_response_info.h',
548         'http/http_security_headers.cc',
549         'http/http_security_headers.h',
550         'http/http_server_properties.cc',
551         'http/http_server_properties.h',
552         'http/http_server_properties_impl.cc',
553         'http/http_server_properties_impl.h',
554         'http/http_status_code.h',
555         'http/http_stream.h',
556         'http/http_stream_base.h',
557         'http/http_stream_factory.cc',
558         'http/http_stream_factory.h',
559         'http/http_stream_factory_impl.cc',
560         'http/http_stream_factory_impl.h',
561         'http/http_stream_factory_impl_job.cc',
562         'http/http_stream_factory_impl_job.h',
563         'http/http_stream_factory_impl_request.cc',
564         'http/http_stream_factory_impl_request.h',
565         'http/http_stream_parser.cc',
566         'http/http_stream_parser.h',
567         'http/http_transaction.h',
568         'http/http_transaction_delegate.h',
569         'http/http_transaction_factory.h',
570         'http/http_util.cc',
571         'http/http_util.h',
572         'http/http_util_icu.cc',
573         'http/http_vary_data.cc',
574         'http/http_vary_data.h',
575         'http/http_version.h',
576         'http/infinite_cache.cc',
577         'http/infinite_cache.h',
578         'http/md4.cc',
579         'http/md4.h',
580         'http/partial_data.cc',
581         'http/partial_data.h',
582         'http/proxy_client_socket.h',
583         'http/proxy_client_socket.cc',
584         'http/url_security_manager.cc',
585         'http/url_security_manager.h',
586         'http/url_security_manager_posix.cc',
587         'http/url_security_manager_win.cc',
588         'ocsp/nss_ocsp.cc',
589         'ocsp/nss_ocsp.h',
590         'proxy/dhcp_proxy_script_adapter_fetcher_win.cc',
591         'proxy/dhcp_proxy_script_adapter_fetcher_win.h',
592         'proxy/dhcp_proxy_script_fetcher.cc',
593         'proxy/dhcp_proxy_script_fetcher.h',
594         'proxy/dhcp_proxy_script_fetcher_factory.cc',
595         'proxy/dhcp_proxy_script_fetcher_factory.h',
596         'proxy/dhcp_proxy_script_fetcher_win.cc',
597         'proxy/dhcp_proxy_script_fetcher_win.h',
598         'proxy/dhcpcsvc_init_win.cc',
599         'proxy/dhcpcsvc_init_win.h',
600         'proxy/multi_threaded_proxy_resolver.cc',
601         'proxy/multi_threaded_proxy_resolver.h',
602         'proxy/network_delegate_error_observer.cc',
603         'proxy/network_delegate_error_observer.h',
604         'proxy/polling_proxy_config_service.cc',
605         'proxy/polling_proxy_config_service.h',
606         'proxy/proxy_bypass_rules.cc',
607         'proxy/proxy_bypass_rules.h',
608         'proxy/proxy_config.cc',
609         'proxy/proxy_config.h',
610         'proxy/proxy_config_service.h',
611         'proxy/proxy_config_service_android.cc',
612         'proxy/proxy_config_service_android.h',
613         'proxy/proxy_config_service_fixed.cc',
614         'proxy/proxy_config_service_fixed.h',
615         'proxy/proxy_config_service_ios.cc',
616         'proxy/proxy_config_service_ios.h',
617         'proxy/proxy_config_service_linux.cc',
618         'proxy/proxy_config_service_linux.h',
619         'proxy/proxy_config_service_mac.cc',
620         'proxy/proxy_config_service_mac.h',
621         'proxy/proxy_config_service_win.cc',
622         'proxy/proxy_config_service_win.h',
623         'proxy/proxy_config_source.cc',
624         'proxy/proxy_config_source.h',
625         'proxy/proxy_info.cc',
626         'proxy/proxy_info.h',
627         'proxy/proxy_list.cc',
628         'proxy/proxy_list.h',
629         'proxy/proxy_resolver.h',
630         'proxy/proxy_resolver_error_observer.h',
631         'proxy/proxy_resolver_js_bindings.cc',
632         'proxy/proxy_resolver_js_bindings.h',
633         'proxy/proxy_resolver_mac.cc',
634         'proxy/proxy_resolver_mac.h',
635         'proxy/proxy_resolver_request_context.h',
636         'proxy/proxy_resolver_script.h',
637         'proxy/proxy_resolver_script_data.cc',
638         'proxy/proxy_resolver_script_data.h',
639         'proxy/proxy_resolver_winhttp.cc',
640         'proxy/proxy_resolver_winhttp.h',
641         'proxy/proxy_retry_info.h',
642         'proxy/proxy_script_decider.cc',
643         'proxy/proxy_script_decider.h',
644         'proxy/proxy_script_fetcher.h',
645         'proxy/proxy_script_fetcher_impl.cc',
646         'proxy/proxy_script_fetcher_impl.h',
647         'proxy/proxy_server.cc',
648         'proxy/proxy_server.h',
649         'proxy/proxy_server_mac.cc',
650         'proxy/proxy_service.cc',
651         'proxy/proxy_service.h',
652         'proxy/sync_host_resolver.h',
653         'proxy/sync_host_resolver_bridge.cc',
654         'proxy/sync_host_resolver_bridge.h',
655         'quic/congestion_control/cubic.cc',
656         'quic/congestion_control/cubic.h',
657         'quic/congestion_control/fix_rate_receiver.cc',
658         'quic/congestion_control/fix_rate_receiver.h',
659         'quic/congestion_control/fix_rate_sender.cc',
660         'quic/congestion_control/fix_rate_sender.h',
661         'quic/congestion_control/hybrid_slow_start.cc',
662         'quic/congestion_control/hybrid_slow_start.h',
663         'quic/congestion_control/leaky_bucket.cc',
664         'quic/congestion_control/leaky_bucket.h',
665         'quic/congestion_control/paced_sender.cc',
666         'quic/congestion_control/paced_sender.h',
667         'quic/congestion_control/quic_receipt_metrics_collector.cc',
668         'quic/congestion_control/quic_receipt_metrics_collector.h',
669         'quic/congestion_control/quic_send_scheduler.cc',
670         'quic/congestion_control/quic_send_scheduler.h',
671         'quic/congestion_control/receive_algorithm_interface.cc',
672         'quic/congestion_control/receive_algorithm_interface.h',
673         'quic/congestion_control/send_algorithm_interface.cc',
674         'quic/congestion_control/send_algorithm_interface.h',
675         'quic/congestion_control/tcp_cubic_sender.cc',
676         'quic/congestion_control/tcp_cubic_sender.h',
677         'quic/congestion_control/tcp_receiver.cc',
678         'quic/congestion_control/tcp_receiver.h',
679         'quic/crypto/crypto_framer.cc',
680         'quic/crypto/crypto_framer.h',
681         'quic/crypto/crypto_protocol.cc',
682         'quic/crypto/crypto_protocol.h',
683         'quic/crypto/null_decrypter.cc',
684         'quic/crypto/null_decrypter.h',
685         'quic/crypto/null_encrypter.cc',
686         'quic/crypto/null_encrypter.h',
687         'quic/crypto/quic_decrypter.cc',
688         'quic/crypto/quic_decrypter.h',
689         'quic/crypto/quic_encrypter.cc',
690         'quic/crypto/quic_encrypter.h',
691         'quic/crypto/quic_random.cc',
692         'quic/crypto/quic_random.h',
693         'quic/quic_client_session.cc',
694         'quic/quic_client_session.h',
695         'quic/quic_crypto_client_stream.cc',
696         'quic/quic_crypto_client_stream.h',
697         'quic/quic_crypto_stream.cc',
698         'quic/quic_crypto_stream.h',
699         'quic/quic_clock.cc',
700         'quic/quic_clock.h',
701         'quic/quic_connection.cc',
702         'quic/quic_connection.h',
703         'quic/quic_connection_helper.cc',
704         'quic/quic_connection_helper.h',
705         'quic/quic_data_reader.cc',
706         'quic/quic_data_reader.h',
707         'quic/quic_data_writer.cc',
708         'quic/quic_data_writer.h',
709         'quic/quic_fec_group.cc',
710         'quic/quic_fec_group.h',
711         'quic/quic_framer.cc',
712         'quic/quic_framer.h',
713         'quic/quic_http_stream.cc',
714         'quic/quic_http_stream.h',
715         'quic/quic_packet_creator.cc',
716         'quic/quic_packet_creator.h',
717         'quic/quic_protocol.cc',
718         'quic/quic_protocol.h',
719         'quic/quic_reliable_client_stream.cc',
720         'quic/quic_reliable_client_stream.h',
721         'quic/quic_session.cc',
722         'quic/quic_session.h',
723         'quic/quic_stream_factory.cc',
724         'quic/quic_stream_factory.h',
725         'quic/quic_stream_sequencer.cc',
726         'quic/quic_stream_sequencer.h',
727         'quic/quic_time.cc',
728         'quic/quic_time.h',
729         'quic/quic_utils.cc',
730         'quic/quic_utils.h',
731         'quic/reliable_quic_stream.cc',
732         'quic/reliable_quic_stream.h',
733         'socket/buffered_write_stream_socket.cc',
734         'socket/buffered_write_stream_socket.h',
735         'socket/client_socket_factory.cc',
736         'socket/client_socket_factory.h',
737         'socket/client_socket_handle.cc',
738         'socket/client_socket_handle.h',
739         'socket/client_socket_pool.cc',
740         'socket/client_socket_pool.h',
741         'socket/client_socket_pool_base.cc',
742         'socket/client_socket_pool_base.h',
743         'socket/client_socket_pool_histograms.cc',
744         'socket/client_socket_pool_histograms.h',
745         'socket/client_socket_pool_manager.cc',
746         'socket/client_socket_pool_manager.h',
747         'socket/client_socket_pool_manager_impl.cc',
748         'socket/client_socket_pool_manager_impl.h',
749         'socket/next_proto.h',
750         'socket/nss_ssl_util.cc',
751         'socket/nss_ssl_util.h',
752         'socket/server_socket.h',
753         'socket/socket_net_log_params.cc',
754         'socket/socket_net_log_params.h',
755         'socket/socket.h',
756         'socket/socks5_client_socket.cc',
757         'socket/socks5_client_socket.h',
758         'socket/socks_client_socket.cc',
759         'socket/socks_client_socket.h',
760         'socket/socks_client_socket_pool.cc',
761         'socket/socks_client_socket_pool.h',
762         'socket/ssl_client_socket.cc',
763         'socket/ssl_client_socket.h',
764         'socket/ssl_client_socket_mac.cc',
765         'socket/ssl_client_socket_mac.h',
766         'socket/ssl_client_socket_nss.cc',
767         'socket/ssl_client_socket_nss.h',
768         'socket/ssl_client_socket_openssl.cc',
769         'socket/ssl_client_socket_openssl.h',
770         'socket/ssl_client_socket_pool.cc',
771         'socket/ssl_client_socket_pool.h',
772         'socket/ssl_client_socket_win.cc',
773         'socket/ssl_client_socket_win.h',
774         'socket/ssl_error_params.cc',
775         'socket/ssl_error_params.h',
776         'socket/ssl_server_socket.h',
777         'socket/ssl_server_socket_nss.cc',
778         'socket/ssl_server_socket_nss.h',
779         'socket/ssl_server_socket_openssl.cc',
780         'socket/ssl_socket.h',
781         'socket/stream_socket.cc',
782         'socket/stream_socket.h',
783         'socket/tcp_client_socket.cc',
784         'socket/tcp_client_socket.h',
785         'socket/tcp_client_socket_libevent.cc',
786         'socket/tcp_client_socket_libevent.h',
787         'socket/tcp_client_socket_win.cc',
788         'socket/tcp_client_socket_win.h',
789         'socket/tcp_server_socket.h',
790         'socket/tcp_server_socket_libevent.cc',
791         'socket/tcp_server_socket_libevent.h',
792         'socket/tcp_server_socket_win.cc',
793         'socket/tcp_server_socket_win.h',
794         'socket/transport_client_socket_pool.cc',
795         'socket/transport_client_socket_pool.h',
796         'socket_stream/socket_stream.cc',
797         'socket_stream/socket_stream.h',
798         'socket_stream/socket_stream_job.cc',
799         'socket_stream/socket_stream_job.h',
800         'socket_stream/socket_stream_job_manager.cc',
801         'socket_stream/socket_stream_job_manager.h',
802         'socket_stream/socket_stream_metrics.cc',
803         'socket_stream/socket_stream_metrics.h',
804         'spdy/buffered_spdy_framer.cc',
805         'spdy/buffered_spdy_framer.h',
806         'spdy/spdy_bitmasks.h',
807         'spdy/spdy_credential_builder.cc',
808         'spdy/spdy_credential_builder.h',
809         'spdy/spdy_credential_state.cc',
810         'spdy/spdy_credential_state.h',
811         'spdy/spdy_frame_builder.cc',
812         'spdy/spdy_frame_builder.h',
813         'spdy/spdy_frame_reader.cc',
814         'spdy/spdy_frame_reader.h',
815         'spdy/spdy_framer.cc',
816         'spdy/spdy_framer.h',
817         'spdy/spdy_header_block.cc',
818         'spdy/spdy_header_block.h',
819         'spdy/spdy_http_stream.cc',
820         'spdy/spdy_http_stream.h',
821         'spdy/spdy_http_utils.cc',
822         'spdy/spdy_http_utils.h',
823         'spdy/spdy_io_buffer.cc',
824         'spdy/spdy_io_buffer.h',
825         'spdy/spdy_protocol.h',
826         'spdy/spdy_proxy_client_socket.cc',
827         'spdy/spdy_proxy_client_socket.h',
828         'spdy/spdy_session.cc',
829         'spdy/spdy_session.h',
830         'spdy/spdy_session_pool.cc',
831         'spdy/spdy_session_pool.h',
832         'spdy/spdy_stream.cc',
833         'spdy/spdy_stream.h',
834         'spdy/spdy_websocket_stream.cc',
835         'spdy/spdy_websocket_stream.h',
836         'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
837         'third_party/mozilla_security_manager/nsKeygenHandler.h',
838         'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
839         'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
840         'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
841         'third_party/mozilla_security_manager/nsPKCS12Blob.h',
842         'udp/datagram_client_socket.h',
843         'udp/datagram_server_socket.h',
844         'udp/datagram_socket.h',
845         'udp/udp_client_socket.cc',
846         'udp/udp_client_socket.h',
847         'udp/udp_net_log_parameters.cc',
848         'udp/udp_net_log_parameters.h',
849         'udp/udp_server_socket.cc',
850         'udp/udp_server_socket.h',
851         'udp/udp_socket.h',
852         'udp/udp_socket_libevent.cc',
853         'udp/udp_socket_libevent.h',
854         'udp/udp_socket_win.cc',
855         'udp/udp_socket_win.h',
856         'url_request/data_protocol_handler.cc',
857         'url_request/data_protocol_handler.h',
858         'url_request/file_protocol_handler.cc',
859         'url_request/file_protocol_handler.h',
860         'url_request/fraudulent_certificate_reporter.h',
861         'url_request/ftp_protocol_handler.cc',
862         'url_request/ftp_protocol_handler.h',
863         'url_request/http_user_agent_settings.h',
864         'url_request/protocol_intercept_job_factory.cc',
865         'url_request/protocol_intercept_job_factory.h',
866         'url_request/static_http_user_agent_settings.cc',
867         'url_request/static_http_user_agent_settings.h',
868         'url_request/url_fetcher.cc',
869         'url_request/url_fetcher.h',
870         'url_request/url_fetcher_core.cc',
871         'url_request/url_fetcher_core.h',
872         'url_request/url_fetcher_delegate.cc',
873         'url_request/url_fetcher_delegate.h',
874         'url_request/url_fetcher_factory.h',
875         'url_request/url_fetcher_impl.cc',
876         'url_request/url_fetcher_impl.h',
877         'url_request/url_request.cc',
878         'url_request/url_request.h',
879         'url_request/url_request_about_job.cc',
880         'url_request/url_request_about_job.h',
881         'url_request/url_request_context.cc',
882         'url_request/url_request_context.h',
883         'url_request/url_request_context_builder.cc',
884         'url_request/url_request_context_builder.h',
885         'url_request/url_request_context_getter.cc',
886         'url_request/url_request_context_getter.h',
887         'url_request/url_request_context_storage.cc',
888         'url_request/url_request_context_storage.h',
889         'url_request/url_request_data_job.cc',
890         'url_request/url_request_data_job.h',
891         'url_request/url_request_error_job.cc',
892         'url_request/url_request_error_job.h',
893         'url_request/url_request_file_dir_job.cc',
894         'url_request/url_request_file_dir_job.h',
895         'url_request/url_request_file_job.cc',
896         'url_request/url_request_file_job.h',
897         'url_request/url_request_filter.cc',
898         'url_request/url_request_filter.h',
899         'url_request/url_request_ftp_job.cc',
900         'url_request/url_request_ftp_job.h',
901         'url_request/url_request_http_job.cc',
902         'url_request/url_request_http_job.h',
903         'url_request/url_request_job.cc',
904         'url_request/url_request_job.h',
905         'url_request/url_request_job_factory.cc',
906         'url_request/url_request_job_factory.h',
907         'url_request/url_request_job_factory_impl.cc',
908         'url_request/url_request_job_factory_impl.h',
909         'url_request/url_request_job_manager.cc',
910         'url_request/url_request_job_manager.h',
911         'url_request/url_request_netlog_params.cc',
912         'url_request/url_request_netlog_params.h',
913         'url_request/url_request_redirect_job.cc',
914         'url_request/url_request_redirect_job.h',
915         'url_request/url_request_simple_job.cc',
916         'url_request/url_request_simple_job.h',
917         'url_request/url_request_status.h',
918         'url_request/url_request_test_job.cc',
919         'url_request/url_request_test_job.h',
920         'url_request/url_request_throttler_entry.cc',
921         'url_request/url_request_throttler_entry.h',
922         'url_request/url_request_throttler_entry_interface.h',
923         'url_request/url_request_throttler_header_adapter.cc',
924         'url_request/url_request_throttler_header_adapter.h',
925         'url_request/url_request_throttler_header_interface.h',
926         'url_request/url_request_throttler_manager.cc',
927         'url_request/url_request_throttler_manager.h',
928         'url_request/view_cache_helper.cc',
929         'url_request/view_cache_helper.h',
930         'websockets/websocket_frame.cc',
931         'websockets/websocket_frame.h',
932         'websockets/websocket_frame_parser.cc',
933         'websockets/websocket_frame_parser.h',
934         'websockets/websocket_handshake_handler.cc',
935         'websockets/websocket_handshake_handler.h',
936         'websockets/websocket_job.cc',
937         'websockets/websocket_job.h',
938         'websockets/websocket_net_log_params.cc',
939         'websockets/websocket_net_log_params.h',
940         'websockets/websocket_stream.h',
941         'websockets/websocket_throttle.cc',
942         'websockets/websocket_throttle.h',
943       ],
944       'defines': [
945         'NET_IMPLEMENTATION',
946       ],
947       'export_dependent_settings': [
948         '../base/base.gyp:base',
949       ],
950       'conditions': [
951         ['chromeos==1', {
952           'sources!': [
953              'base/network_change_notifier_linux.cc',
954              'base/network_change_notifier_linux.h',
955              'base/network_change_notifier_netlink_linux.cc',
956              'base/network_change_notifier_netlink_linux.h',
957              'proxy/proxy_config_service_linux.cc',
958              'proxy/proxy_config_service_linux.h',
959           ],
960         }],
961         ['use_kerberos==1', {
962           'defines': [
963             'USE_KERBEROS',
964           ],
965           'conditions': [
966             ['OS=="openbsd"', {
967               'include_dirs': [
968                 '/usr/include/kerberosV'
969               ],
970             }],
971             ['linux_link_kerberos==1', {
972               'link_settings': {
973                 'ldflags': [
974                   '<!@(krb5-config --libs gssapi)',
975                 ],
976               },
977             }, { # linux_link_kerberos==0
978               'defines': [
979                 'DLOPEN_KERBEROS',
980               ],
981             }],
982           ],
983         }, { # use_kerberos == 0
984           'sources!': [
985             'http/http_auth_gssapi_posix.cc',
986             'http/http_auth_gssapi_posix.h',
987             'http/http_auth_handler_negotiate.h',
988             'http/http_auth_handler_negotiate.cc',
989           ],
990         }],
991         ['posix_avoid_mmap==1', {
992           'defines': [
993             'POSIX_AVOID_MMAP',
994           ],
995           'direct_dependent_settings': {
996             'defines': [
997               'POSIX_AVOID_MMAP',
998             ],
999           },
1000           'sources!': [
1001             'disk_cache/mapped_file_posix.cc',
1002           ],
1003         }, { # else
1004           'sources!': [
1005             'disk_cache/mapped_file_avoid_mmap_posix.cc',
1006           ],
1007         }],
1008         ['disable_ftp_support==1', {
1009           'sources/': [
1010             ['exclude', '^ftp/'],
1011           ],
1012           'sources!': [
1013             'url_request/ftp_protocol_handler.cc',
1014             'url_request/ftp_protocol_handler.h',
1015             'url_request/url_request_ftp_job.cc',
1016             'url_request/url_request_ftp_job.h',
1017           ],
1018         }],
1019         ['enable_built_in_dns==1', {
1020           'defines': [
1021             'ENABLE_BUILT_IN_DNS',
1022           ]
1023         }, { # else
1024           'sources!': [
1025             'dns/address_sorter_posix.cc',
1026             'dns/address_sorter_posix.h',
1027             'dns/dns_client.cc',
1028           ],
1029         }],
1030         ['use_openssl==1', {
1031             'sources!': [
1032               'base/cert_database_nss.cc',
1033               'base/cert_verify_proc_nss.cc',
1034               'base/cert_verify_proc_nss.h',
1035               'base/crypto_module_nss.cc',
1036               'base/keygen_handler_nss.cc',
1037               'base/nss_cert_database.cc',
1038               'base/nss_cert_database.h',
1039               'base/nss_memio.c',
1040               'base/nss_memio.h',
1041               'base/test_root_certs_nss.cc',
1042               'base/x509_certificate_nss.cc',
1043               'base/x509_util_nss.cc',
1044               'base/x509_util_nss.h',
1045               'ocsp/nss_ocsp.cc',
1046               'ocsp/nss_ocsp.h',
1047               'socket/nss_ssl_util.cc',
1048               'socket/nss_ssl_util.h',
1049               'socket/ssl_client_socket_nss.cc',
1050               'socket/ssl_client_socket_nss.h',
1051               'socket/ssl_server_socket_nss.cc',
1052               'socket/ssl_server_socket_nss.h',
1053               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1054               'third_party/mozilla_security_manager/nsKeygenHandler.h',
1055               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1056               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1057               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1058               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1059             ],
1060           },
1061           {  # else !use_openssl: remove the unneeded files
1062             'sources!': [
1063               'base/cert_database_openssl.cc',
1064               'base/cert_verify_proc_openssl.cc',
1065               'base/cert_verify_proc_openssl.h',
1066               'base/crypto_module_openssl.cc',
1067               'base/keygen_handler_openssl.cc',
1068               'base/openssl_memory_private_key_store.cc',
1069               'base/openssl_private_key_store.h',
1070               'base/openssl_private_key_store_android.cc',
1071               'base/test_root_certs_openssl.cc',
1072               'base/x509_certificate_openssl.cc',
1073               'base/x509_util_openssl.cc',
1074               'base/x509_util_openssl.h',
1075               'socket/ssl_client_socket_openssl.cc',
1076               'socket/ssl_client_socket_openssl.h',
1077               'socket/ssl_server_socket_openssl.cc',
1078             ],
1079           },
1080         ],
1081         [ 'use_glib == 1', {
1082             'dependencies': [
1083               '../build/linux/system.gyp:gconf',
1084               '../build/linux/system.gyp:gio',
1085             ],
1086             'conditions': [
1087               ['use_openssl==1', {
1088                 'dependencies': [
1089                   '../third_party/openssl/openssl.gyp:openssl',
1090                 ],
1091               },
1092               {  # else use_openssl==0, use NSS
1093                 'dependencies': [
1094                   '../build/linux/system.gyp:ssl',
1095                 ],
1096               }],
1097               ['os_bsd==1', {
1098                 'sources!': [
1099                   'base/network_change_notifier_linux.cc',
1100                   'base/network_change_notifier_netlink_linux.cc',
1101                   'proxy/proxy_config_service_linux.cc',
1102                 ],
1103               },{
1104                 'dependencies': [
1105                   '../build/linux/system.gyp:libresolv',
1106                 ],
1107               }],
1108               ['OS=="solaris"', {
1109                 'link_settings': {
1110                   'ldflags': [
1111                     '-R/usr/lib/mps',
1112                   ],
1113                 },
1114               }],
1115             ],
1116           },
1117           {  # else: OS is not in the above list
1118             'sources!': [
1119               'base/cert_database_nss.cc',
1120               'base/crypto_module_nss.cc',
1121               'base/keygen_handler_nss.cc',
1122               'base/nss_cert_database.cc',
1123               'base/nss_cert_database.h',
1124               'base/test_root_certs_nss.cc',
1125               'base/x509_certificate_nss.cc',
1126               'ocsp/nss_ocsp.cc',
1127               'ocsp/nss_ocsp.h',
1128               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1129               'third_party/mozilla_security_manager/nsKeygenHandler.h',
1130               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1131               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1132               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1133               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1134             ],
1135           },
1136         ],
1137         [ 'toolkit_uses_gtk == 1', {
1138           'dependencies': [
1139             '../build/linux/system.gyp:gdk',
1140           ],
1141         }],
1142         [ 'use_nss != 1', {
1143             'sources!': [
1144               'base/cert_verify_proc_nss.cc',
1145               'base/cert_verify_proc_nss.h',
1146             ],
1147         }],
1148         [ 'enable_websockets != 1', {
1149             'sources/': [
1150               ['exclude', '^socket_stream/'],
1151               ['exclude', '^websockets/'],
1152             ],
1153             'sources!': [
1154               'spdy/spdy_websocket_stream.cc',
1155               'spdy/spdy_websocket_stream.h',
1156             ],
1157         }],
1158         [ 'OS == "win"', {
1159             'sources!': [
1160               'http/http_auth_handler_ntlm_portable.cc',
1161               'socket/tcp_client_socket_libevent.cc',
1162               'socket/tcp_client_socket_libevent.h',
1163               'socket/tcp_server_socket_libevent.cc',
1164               'socket/tcp_server_socket_libevent.h',
1165               'udp/udp_socket_libevent.cc',
1166               'udp/udp_socket_libevent.h',
1167             ],
1168             'dependencies': [
1169               '../third_party/nss/nss.gyp:nspr',
1170               '../third_party/nss/nss.gyp:nss',
1171               'third_party/nss/ssl.gyp:libssl',
1172               'tld_cleanup',
1173             ],
1174             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1175             'msvs_disabled_warnings': [4267, ],
1176           }, { # else: OS != "win"
1177             'sources!': [
1178               'base/winsock_init.cc',
1179               'base/winsock_init.h',
1180               'base/winsock_util.cc',
1181               'base/winsock_util.h',
1182               'proxy/proxy_resolver_winhttp.cc',
1183               'proxy/proxy_resolver_winhttp.h',
1184             ],
1185           },
1186         ],
1187         [ 'OS == "mac"', {
1188             'dependencies': [
1189               '../third_party/nss/nss.gyp:nspr',
1190               '../third_party/nss/nss.gyp:nss',
1191               'third_party/nss/ssl.gyp:libssl',
1192             ],
1193             'link_settings': {
1194               'libraries': [
1195                 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
1196                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
1197                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
1198                 '$(SDKROOT)/usr/lib/libresolv.dylib',
1199               ]
1200             },
1201           },
1202         ],
1203         [ 'OS == "ios"', {
1204             'dependencies': [
1205               '../third_party/nss/nss.gyp:nss',
1206               'third_party/nss/ssl.gyp:libssl',
1207             ],
1208             'link_settings': {
1209               'libraries': [
1210                 '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
1211                 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
1212                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
1213                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
1214                 '$(SDKROOT)/usr/lib/libresolv.dylib',
1215               ],
1216             },
1217           },
1218         ],
1219         ['OS=="android" and _toolset=="target" and android_build_type == 0', {
1220           'dependencies': [
1221              'net_java',
1222           ],
1223         }],
1224         [ 'OS == "android"', {
1225             'dependencies': [
1226               '../third_party/openssl/openssl.gyp:openssl',
1227               'net_jni_headers',
1228             ],
1229             'sources!': [
1230               'base/cert_database_openssl.cc',
1231               'base/cert_verify_proc_openssl.cc',
1232               'base/openssl_memory_private_key_store.cc',
1233               'base/test_root_certs_openssl.cc',
1234             ],
1235           }, {  # else OS != "android"
1236             'defines': [
1237               # These are the features Android doesn't support.
1238               'ENABLE_MEDIA_CODEC_THEORA',
1239             ],
1240           },
1241         ],
1242         [ 'OS == "linux"', {
1243             'dependencies': [
1244               '../build/linux/system.gyp:dbus',
1245               '../dbus/dbus.gyp:dbus',
1246             ],
1247           },
1248         ],
1249       ],
1250       'target_conditions': [
1251         # These source files are excluded by default platform rules, but they
1252         # are needed in specific cases on other platforms. Re-including them can
1253         # only be done in target_conditions as it is evaluated after the
1254         # platform rules.
1255         ['OS == "android"', {
1256           'sources/': [
1257             ['include', '^base/platform_mime_util_linux\\.cc$'],
1258           ],
1259         }],
1260         ['OS == "ios"', {
1261           'sources/': [
1262             ['include', '^base/network_change_notifier_mac\\.cc$'],
1263             ['include', '^base/network_config_watcher_mac\\.cc$'],
1264             ['include', '^base/platform_mime_util_mac\\.mm$'],
1265             ['include', '^dns/notify_watcher_mac\\.cc$'],
1266             ['include', '^proxy/proxy_resolver_mac\\.cc$'],
1267             ['include', '^proxy/proxy_server_mac\\.cc$'],
1268             # The iOS implementation only partially uses NSS and thus does not
1269             # defines |use_nss|. In particular the |USE_NSS| preprocessor
1270             # definition is not used. The following files are needed though:
1271             ['include', '^base/cert_verify_proc_nss\\.cc$'],
1272             ['include', '^base/cert_verify_proc_nss\\.h$'],
1273             ['include', '^base/test_root_certs_nss\\.cc$'],
1274             ['include', '^base/x509_util_nss\\.cc$'],
1275             ['include', '^base/x509_util_nss\\.h$'],
1276             ['include', '^ocsp/nss_ocsp\\.cc$'],
1277             ['include', '^ocsp/nss_ocsp\\.h$'],
1278           ],
1279         }],
1280       ],
1281     },
1282     {
1283       'target_name': 'net_unittests',
1284       'type': '<(gtest_target_type)',
1285       'dependencies': [
1286         '../base/base.gyp:base',
1287         '../base/base.gyp:base_i18n',
1288         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1289         '../build/temp_gyp/googleurl.gyp:googleurl',
1290         '../crypto/crypto.gyp:crypto',
1291         '../testing/gmock.gyp:gmock',
1292         '../testing/gtest.gyp:gtest',
1293         '../third_party/zlib/zlib.gyp:zlib',
1294         'net',
1295         'net_test_support',
1296       ],
1297       'sources': [
1298         'android/network_change_notifier_android_unittest.cc',
1299         'base/address_list_unittest.cc',
1300         'base/address_tracker_linux_unittest.cc',
1301         'base/backoff_entry_unittest.cc',
1302         'base/big_endian_unittest.cc',
1303         'base/cert_verify_proc_unittest.cc',
1304         'base/crl_set_unittest.cc',
1305         'base/data_url_unittest.cc',
1306         'base/default_server_bound_cert_store_unittest.cc',
1307         'base/directory_lister_unittest.cc',
1308         'base/dns_util_unittest.cc',
1309         'base/escape_unittest.cc',
1310         'base/ev_root_ca_metadata_unittest.cc',
1311         'base/expiring_cache_unittest.cc',
1312         'base/file_stream_unittest.cc',
1313         'base/filter_unittest.cc',
1314         'base/int128_unittest.cc',
1315         'base/gzip_filter_unittest.cc',
1316         'base/host_cache_unittest.cc',
1317         'base/host_mapping_rules_unittest.cc',
1318         'base/host_port_pair_unittest.cc',
1319         'base/host_resolver_impl_unittest.cc',
1320         'base/ip_endpoint_unittest.cc',
1321         'base/keygen_handler_unittest.cc',
1322         'base/mapped_host_resolver_unittest.cc',
1323         'base/mime_sniffer_unittest.cc',
1324         'base/mime_util_unittest.cc',
1325         'base/mock_filter_context.cc',
1326         'base/mock_filter_context.h',
1327         'base/multi_threaded_cert_verifier_unittest.cc',
1328         'base/net_log_unittest.h',
1329         'base/net_util_unittest.cc',
1330         'base/network_change_notifier_win_unittest.cc',
1331         'base/nss_cert_database_unittest.cc',
1332         'base/pem_tokenizer_unittest.cc',
1333         'base/prioritized_dispatcher_unittest.cc',
1334         'base/priority_queue_unittest.cc',
1335         'base/registry_controlled_domains/registry_controlled_domain_unittest.cc',
1336         'base/run_all_unittests.cc',
1337         'base/sdch_filter_unittest.cc',
1338         'base/server_bound_cert_service_unittest.cc',
1339         'base/single_request_host_resolver_unittest.cc',
1340         'base/ssl_cipher_suite_names_unittest.cc',
1341         'base/ssl_client_auth_cache_unittest.cc',
1342         'base/ssl_config_service_unittest.cc',
1343         'base/static_cookie_policy_unittest.cc',
1344         'base/tcp_listen_socket_unittest.cc',
1345         'base/tcp_listen_socket_unittest.h',
1346         'base/test_certificate_data.h',
1347         'base/test_completion_callback_unittest.cc',
1348         'base/transport_security_state_unittest.cc',
1349         'base/unix_domain_socket_posix_unittest.cc',
1350         'base/upload_bytes_element_reader_unittest.cc',
1351         'base/upload_data_stream_unittest.cc',
1352         'base/upload_file_element_reader_unittest.cc',
1353         'base/x509_certificate_unittest.cc',
1354         'base/x509_cert_types_unittest.cc',
1355         'base/x509_util_unittest.cc',
1356         'base/x509_util_nss_unittest.cc',
1357         'base/x509_util_openssl_unittest.cc',
1358         'cookies/canonical_cookie_unittest.cc',
1359         'cookies/cookie_monster_unittest.cc',
1360         'cookies/cookie_store_unittest.h',
1361         'cookies/cookie_util_unittest.cc',
1362         'cookies/parsed_cookie_unittest.cc',
1363         'disk_cache/addr_unittest.cc',
1364         'disk_cache/backend_unittest.cc',
1365         'disk_cache/bitmap_unittest.cc',
1366         'disk_cache/block_files_unittest.cc',
1367         'disk_cache/cache_util_unittest.cc',
1368         'disk_cache/entry_unittest.cc',
1369         'disk_cache/mapped_file_unittest.cc',
1370         'disk_cache/storage_block_unittest.cc',
1371         'disk_cache/flash/log_store_entry_unittest.cc',
1372         'disk_cache/flash/log_store_unittest.cc',
1373         'disk_cache/flash/segment_unittest.cc',
1374         'disk_cache/flash/storage_unittest.cc',
1375         'dns/address_sorter_posix_unittest.cc',
1376         'dns/address_sorter_unittest.cc',
1377         'dns/dns_config_service_posix_unittest.cc',
1378         'dns/dns_config_service_unittest.cc',
1379         'dns/dns_config_service_win_unittest.cc',
1380         'dns/dns_hosts_unittest.cc',
1381         'dns/dns_query_unittest.cc',
1382         'dns/dns_response_unittest.cc',
1383         'dns/dns_session_unittest.cc',
1384         'dns/dns_transaction_unittest.cc',
1385         'dns/serial_worker_unittest.cc',
1386         'ftp/ftp_auth_cache_unittest.cc',
1387         'ftp/ftp_ctrl_response_buffer_unittest.cc',
1388         'ftp/ftp_directory_listing_parser_ls_unittest.cc',
1389         'ftp/ftp_directory_listing_parser_netware_unittest.cc',
1390         'ftp/ftp_directory_listing_parser_os2_unittest.cc',
1391         'ftp/ftp_directory_listing_parser_unittest.cc',
1392         'ftp/ftp_directory_listing_parser_unittest.h',
1393         'ftp/ftp_directory_listing_parser_vms_unittest.cc',
1394         'ftp/ftp_directory_listing_parser_windows_unittest.cc',
1395         'ftp/ftp_network_transaction_unittest.cc',
1396         'ftp/ftp_util_unittest.cc',
1397         'http/des_unittest.cc',
1398         'http/http_auth_cache_unittest.cc',
1399         'http/http_auth_controller_unittest.cc',
1400         'http/http_auth_filter_unittest.cc',
1401         'http/http_auth_gssapi_posix_unittest.cc',
1402         'http/http_auth_handler_basic_unittest.cc',
1403         'http/http_auth_handler_digest_unittest.cc',
1404         'http/http_auth_handler_factory_unittest.cc',
1405         'http/http_auth_handler_mock.cc',
1406         'http/http_auth_handler_mock.h',
1407         'http/http_auth_handler_negotiate_unittest.cc',
1408         'http/http_auth_handler_unittest.cc',
1409         'http/http_auth_sspi_win_unittest.cc',
1410         'http/http_auth_unittest.cc',
1411         'http/http_byte_range_unittest.cc',
1412         'http/http_cache_unittest.cc',
1413         'http/http_chunked_decoder_unittest.cc',
1414         'http/http_content_disposition_unittest.cc',
1415         'http/http_network_layer_unittest.cc',
1416         'http/http_network_transaction_spdy3_unittest.cc',
1417         'http/http_network_transaction_spdy2_unittest.cc',
1418         'http/http_pipelined_connection_impl_unittest.cc',
1419         'http/http_pipelined_host_forced_unittest.cc',
1420         'http/http_pipelined_host_impl_unittest.cc',
1421         'http/http_pipelined_host_pool_unittest.cc',
1422         'http/http_pipelined_host_test_util.cc',
1423         'http/http_pipelined_host_test_util.h',
1424         'http/http_pipelined_network_transaction_unittest.cc',
1425         'http/http_proxy_client_socket_pool_spdy2_unittest.cc',
1426         'http/http_proxy_client_socket_pool_spdy3_unittest.cc',
1427         'http/http_request_headers_unittest.cc',
1428         'http/http_response_body_drainer_unittest.cc',
1429         'http/http_response_headers_unittest.cc',
1430         'http/http_security_headers_unittest.cc',
1431         'http/http_server_properties_impl_unittest.cc',
1432         'http/http_stream_factory_impl_unittest.cc',
1433         'http/http_stream_parser_unittest.cc',
1434         'http/http_transaction_unittest.cc',
1435         'http/http_transaction_unittest.h',
1436         'http/http_util_unittest.cc',
1437         'http/http_vary_data_unittest.cc',
1438         'http/infinite_cache_unittest.cc',
1439         'http/mock_allow_url_security_manager.cc',
1440         'http/mock_allow_url_security_manager.h',
1441         'http/mock_gssapi_library_posix.cc',
1442         'http/mock_gssapi_library_posix.h',
1443         'http/mock_http_cache.cc',
1444         'http/mock_http_cache.h',
1445         'http/mock_sspi_library_win.cc',
1446         'http/mock_sspi_library_win.h',
1447         'http/url_security_manager_unittest.cc',
1448         'proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc',
1449         'proxy/dhcp_proxy_script_fetcher_factory_unittest.cc',
1450         'proxy/dhcp_proxy_script_fetcher_win_unittest.cc',
1451         'proxy/multi_threaded_proxy_resolver_unittest.cc',
1452         'proxy/network_delegate_error_observer_unittest.cc',
1453         'proxy/proxy_bypass_rules_unittest.cc',
1454         'proxy/proxy_config_service_android_unittest.cc',
1455         'proxy/proxy_config_service_linux_unittest.cc',
1456         'proxy/proxy_config_service_win_unittest.cc',
1457         'proxy/proxy_config_unittest.cc',
1458         'proxy/proxy_info_unittest.cc',
1459         'proxy/proxy_list_unittest.cc',
1460         'proxy/proxy_resolver_js_bindings_unittest.cc',
1461         'proxy/proxy_resolver_v8_unittest.cc',
1462         'proxy/proxy_script_decider_unittest.cc',
1463         'proxy/proxy_script_fetcher_impl_unittest.cc',
1464         'proxy/proxy_server_unittest.cc',
1465         'proxy/proxy_service_unittest.cc',
1466         'proxy/sync_host_resolver_bridge_unittest.cc',
1467         'quic/congestion_control/cubic_test.cc',
1468         'quic/congestion_control/fix_rate_test.cc',
1469         'quic/congestion_control/hybrid_slow_start_test.cc',
1470         'quic/congestion_control/leaky_bucket_test.cc',
1471         'quic/congestion_control/paced_sender_test.cc',
1472         'quic/congestion_control/quic_receipt_metrics_collector_test.cc',
1473         'quic/congestion_control/quic_send_scheduler_test.cc',
1474         'quic/congestion_control/tcp_cubic_sender_test.cc',
1475         'quic/congestion_control/tcp_receiver_test.cc',
1476         'quic/crypto/crypto_framer_test.cc',
1477         'quic/crypto/null_decrypter_test.cc',
1478         'quic/crypto/null_encrypter_test.cc',
1479         'quic/crypto/quic_random_test.cc',
1480         'quic/test_tools/mock_clock.cc',
1481         'quic/test_tools/mock_clock.h',
1482         'quic/test_tools/mock_random.cc',
1483         'quic/test_tools/mock_random.h',
1484         'quic/test_tools/quic_connection_peer.cc',
1485         'quic/test_tools/quic_connection_peer.h',
1486         'quic/test_tools/quic_session_peer.cc',
1487         'quic/test_tools/quic_session_peer.h',
1488         'quic/test_tools/quic_test_utils.cc',
1489         'quic/test_tools/quic_test_utils.h',
1490         'quic/test_tools/reliable_quic_stream_peer.cc',
1491         'quic/test_tools/reliable_quic_stream_peer.h',
1492         'quic/test_tools/test_task_runner.cc',
1493         'quic/test_tools/test_task_runner.h',
1494         'quic/quic_client_session_test.cc',
1495         'quic/quic_clock_test.cc',
1496         'quic/quic_connection_helper_test.cc',
1497         'quic/quic_connection_test.cc',
1498         'quic/quic_crypto_client_stream_test.cc',
1499         'quic/quic_crypto_stream_test.cc',
1500         'quic/quic_data_writer_test.cc',
1501         'quic/quic_fec_group_test.cc',
1502         'quic/quic_framer_test.cc',
1503         'quic/quic_http_stream_test.cc',
1504         'quic/quic_packet_creator_test.cc',
1505         'quic/quic_reliable_client_stream_test.cc',
1506         'quic/quic_session_test.cc',
1507         'quic/quic_stream_factory_test.cc',
1508         'quic/quic_stream_sequencer_test.cc',
1509         'quic/quic_time_test.cc',
1510         'socket/buffered_write_stream_socket_unittest.cc',
1511         'socket/client_socket_pool_base_unittest.cc',
1512         'socket/deterministic_socket_data_unittest.cc',
1513         'socket/mock_client_socket_pool_manager.cc',
1514         'socket/mock_client_socket_pool_manager.h',
1515         'socket/socks5_client_socket_unittest.cc',
1516         'socket/socks_client_socket_pool_unittest.cc',
1517         'socket/socks_client_socket_unittest.cc',
1518         'socket/ssl_client_socket_pool_unittest.cc',
1519         'socket/ssl_client_socket_unittest.cc',
1520         'socket/ssl_server_socket_unittest.cc',
1521         'socket/tcp_client_socket_unittest.cc',
1522         'socket/tcp_server_socket_unittest.cc',
1523         'socket/transport_client_socket_pool_unittest.cc',
1524         'socket/transport_client_socket_unittest.cc',
1525         'socket_stream/socket_stream_metrics_unittest.cc',
1526         'socket_stream/socket_stream_unittest.cc',
1527         'spdy/buffered_spdy_framer_spdy3_unittest.cc',
1528         'spdy/buffered_spdy_framer_spdy2_unittest.cc',
1529         'spdy/spdy_credential_builder_unittest.cc',
1530         'spdy/spdy_credential_state_unittest.cc',
1531         'spdy/spdy_frame_reader_test.cc',
1532         'spdy/spdy_framer_test.cc',
1533         'spdy/spdy_header_block_unittest.cc',
1534         'spdy/spdy_http_stream_spdy3_unittest.cc',
1535         'spdy/spdy_http_stream_spdy2_unittest.cc',
1536         'spdy/spdy_http_utils_unittest.cc',
1537         'spdy/spdy_network_transaction_spdy3_unittest.cc',
1538         'spdy/spdy_network_transaction_spdy2_unittest.cc',
1539         'spdy/spdy_protocol_test.cc',
1540         'spdy/spdy_proxy_client_socket_spdy3_unittest.cc',
1541         'spdy/spdy_proxy_client_socket_spdy2_unittest.cc',
1542         'spdy/spdy_session_spdy3_unittest.cc',
1543         'spdy/spdy_session_spdy2_unittest.cc',
1544         'spdy/spdy_stream_spdy3_unittest.cc',
1545         'spdy/spdy_stream_spdy2_unittest.cc',
1546         'spdy/spdy_stream_test_util.cc',
1547         'spdy/spdy_stream_test_util.h',
1548         'spdy/spdy_test_util_spdy3.cc',
1549         'spdy/spdy_test_util_spdy3.h',
1550         'spdy/spdy_test_util_spdy2.cc',
1551         'spdy/spdy_test_util_spdy2.h',
1552         'spdy/spdy_websocket_stream_spdy2_unittest.cc',
1553         'spdy/spdy_websocket_stream_spdy3_unittest.cc',
1554         'spdy/spdy_websocket_test_util_spdy2.cc',
1555         'spdy/spdy_websocket_test_util_spdy2.h',
1556         'spdy/spdy_websocket_test_util_spdy3.cc',
1557         'spdy/spdy_websocket_test_util_spdy3.h',
1558         'test/python_utils_unittest.cc',
1559         'tools/dump_cache/url_to_filename_encoder.cc',
1560         'tools/dump_cache/url_to_filename_encoder.h',
1561         'tools/dump_cache/url_to_filename_encoder_unittest.cc',
1562         'tools/dump_cache/url_utilities.h',
1563         'tools/dump_cache/url_utilities.cc',
1564         'tools/dump_cache/url_utilities_unittest.cc',
1565         'udp/udp_socket_unittest.cc',
1566         'url_request/url_fetcher_impl_unittest.cc',
1567         'url_request/url_request_context_builder_unittest.cc',
1568         'url_request/url_request_filter_unittest.cc',
1569         'url_request/url_request_ftp_job_unittest.cc',
1570         'url_request/url_request_job_factory_impl_unittest.cc',
1571         'url_request/url_request_job_unittest.cc',
1572         'url_request/url_request_throttler_simulation_unittest.cc',
1573         'url_request/url_request_throttler_test_support.cc',
1574         'url_request/url_request_throttler_test_support.h',
1575         'url_request/url_request_throttler_unittest.cc',
1576         'url_request/url_request_unittest.cc',
1577         'url_request/view_cache_helper_unittest.cc',
1578         'websockets/websocket_frame_parser_unittest.cc',
1579         'websockets/websocket_frame_unittest.cc',
1580         'websockets/websocket_handshake_handler_unittest.cc',
1581         'websockets/websocket_handshake_handler_spdy2_unittest.cc',
1582         'websockets/websocket_handshake_handler_spdy3_unittest.cc',
1583         'websockets/websocket_job_spdy2_unittest.cc',
1584         'websockets/websocket_job_spdy3_unittest.cc',
1585         'websockets/websocket_net_log_params_unittest.cc',
1586         'websockets/websocket_throttle_unittest.cc',
1587       ],
1588       'conditions': [
1589         ['chromeos==1', {
1590           'sources!': [
1591             'base/network_change_notifier_linux_unittest.cc',
1592             'proxy/proxy_config_service_linux_unittest.cc',
1593           ],
1594         }],
1595         [ 'OS == "android"', {
1596           'sources!': [
1597             # No res_ninit() et al on Android, so this doesn't make a lot of
1598             # sense.
1599             'dns/dns_config_service_posix_unittest.cc',
1600           ],
1601         }],
1602         [ 'use_glib == 1', {
1603             'dependencies': [
1604               '../build/linux/system.gyp:ssl',
1605             ],
1606           }, {  # else use_glib == 0: !posix || mac
1607             'sources!': [
1608               'base/nss_cert_database_unittest.cc',
1609             ],
1610           },
1611         ],
1612         [ 'toolkit_uses_gtk == 1', {
1613             'dependencies': [
1614               '../build/linux/system.gyp:gtk',
1615             ],
1616           },
1617         ],
1618         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
1619           'conditions': [
1620             ['linux_use_tcmalloc==1', {
1621               'dependencies': [
1622                 '../base/allocator/allocator.gyp:allocator',
1623               ],
1624             }],
1625           ],
1626         }],
1627         [ 'use_kerberos==1', {
1628           'defines': [
1629             'USE_KERBEROS',
1630           ],
1631         }, { # use_kerberos == 0
1632           'sources!': [
1633             'http/http_auth_gssapi_posix_unittest.cc',
1634             'http/http_auth_handler_negotiate_unittest.cc',
1635             'http/mock_gssapi_library_posix.cc',
1636             'http/mock_gssapi_library_posix.h',
1637           ],
1638         }],
1639         [ 'use_openssl==1', {
1640             # When building for OpenSSL, we need to exclude NSS specific tests.
1641             # TODO(bulach): Add equivalent tests when the underlying
1642             #               functionality is ported to OpenSSL.
1643             'sources!': [
1644               'base/x509_util_nss_unittest.cc',
1645               'base/nss_cert_database_unittest.cc',
1646             ],
1647           }, {  # else !use_openssl: remove the unneeded files
1648             'sources!': [
1649               'base/x509_util_openssl_unittest.cc',
1650             ],
1651           },
1652         ],
1653         [ 'enable_websockets != 1', {
1654             'sources/': [
1655               ['exclude', '^socket_stream/'],
1656               ['exclude', '^websockets/'],
1657               ['exclude', '^spdy/spdy_websocket_stream_spdy._unittest\\.cc$'],
1658             ],
1659         }],
1660         [ 'disable_ftp_support==1', {
1661             'sources/': [
1662               ['exclude', '^ftp/'],
1663             ],
1664             'sources!': [
1665               'url_request/url_request_ftp_job_unittest.cc',
1666             ],
1667           },
1668         ],
1669         [ 'enable_built_in_dns!=1', {
1670             'sources!': [
1671               'dns/address_sorter_posix_unittest.cc',
1672               'dns/address_sorter_unittest.cc',
1673             ],
1674           },
1675         ],
1676         [ 'use_v8_in_net==1', {
1677             'dependencies': [
1678               'net_with_v8',
1679             ],
1680           }, {  # else: !use_v8_in_net
1681             'sources!': [
1682               'proxy/proxy_resolver_v8_unittest.cc',
1683             ],
1684           },
1685         ],
1686         [ 'OS == "win"', {
1687             'sources!': [
1688               'dns/dns_config_service_posix_unittest.cc',
1689               'http/http_auth_gssapi_posix_unittest.cc',
1690             ],
1691             # This is needed to trigger the dll copy step on windows.
1692             # TODO(mark): Specifying this here shouldn't be necessary.
1693             'dependencies': [
1694               '../third_party/icu/icu.gyp:icudata',
1695               '../third_party/nss/nss.gyp:nspr',
1696               '../third_party/nss/nss.gyp:nss',
1697               'third_party/nss/ssl.gyp:libssl',
1698             ],
1699             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1700             'msvs_disabled_warnings': [4267, ],
1701           },
1702         ],
1703         [ 'OS == "mac"', {
1704             'dependencies': [
1705               '../third_party/nss/nss.gyp:nspr',
1706               '../third_party/nss/nss.gyp:nss',
1707               'third_party/nss/ssl.gyp:libssl',
1708             ],
1709           },
1710         ],
1711         [ 'OS == "ios"', {
1712             'dependencies': [
1713               '../third_party/nss/nss.gyp:nss',
1714             ],
1715             'actions': [
1716               {
1717                 'action_name': 'copy_test_data',
1718                 'variables': {
1719                   'test_data_files': [
1720                     'data/ssl/certificates/',
1721                     'data/url_request_unittest/',
1722                   ],
1723                   'test_data_prefix': 'net',
1724                 },
1725                 'includes': [ '../build/copy_test_data_ios.gypi' ],
1726               },
1727             ],
1728             'sources!': [
1729               # TODO(droger): The following tests are disabled because the
1730               # implementation is missing or incomplete.
1731               # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1732               'base/keygen_handler_unittest.cc',
1733               # Need to read input data files.
1734               'base/gzip_filter_unittest.cc',
1735               'disk_cache/backend_unittest.cc',
1736               'disk_cache/block_files_unittest.cc',
1737               'socket/ssl_server_socket_unittest.cc',
1738               # Need TestServer.
1739               'proxy/proxy_script_fetcher_impl_unittest.cc',
1740               'socket/ssl_client_socket_unittest.cc',
1741               'url_request/url_fetcher_impl_unittest.cc',
1742               'url_request/url_request_context_builder_unittest.cc',
1743               # Needs GetAppOutput().
1744               'test/python_utils_unittest.cc',
1746               # The following tests are disabled because they don't apply to
1747               # iOS.
1748               # OS is not "linux" or "freebsd" or "openbsd".
1749               'base/unix_domain_socket_posix_unittest.cc',
1750             ],
1751             'conditions': [
1752               ['coverage != 0', {
1753                 'sources!': [
1754                   # These sources can't be built with coverage due to a
1755                   # toolchain bug: http://openradar.appspot.com/radar?id=1499403
1756                   'base/transport_security_state_unittest.cc',
1758                   # These tests crash when run with coverage turned on due to an
1759                   # issue with llvm_gcda_increment_indirect_counter:
1760                   # http://crbug.com/156058
1761                   'cookies/cookie_monster_unittest.cc',
1762                   'cookies/cookie_store_unittest.h',
1763                   'http/http_auth_controller_unittest.cc',
1764                   'http/http_network_layer_unittest.cc',
1765                   'http/http_network_transaction_spdy2_unittest.cc',
1766                   'http/http_network_transaction_spdy3_unittest.cc',
1767                 ],
1768               }],
1769             ],
1770         }],
1771         [ 'OS == "linux"', {
1772             'dependencies': [
1773               '../build/linux/system.gyp:dbus',
1774               '../dbus/dbus.gyp:dbus_test_support',
1775             ],
1776           },
1777         ],
1778         [ 'OS == "android"', {
1779             'dependencies': [
1780               '../third_party/openssl/openssl.gyp:openssl',
1781             ],
1782             'sources!': [
1783               'dns/dns_config_service_posix_unittest.cc',
1784             ],
1785           },
1786         ],
1787         ['OS == "android" and gtest_target_type == "shared_library"', {
1788           'dependencies': [
1789             '../testing/android/native_test.gyp:native_test_native_code',
1790           ]
1791         }],
1792         [ 'OS != "win" and OS != "mac"', {
1793           'sources!': [
1794             'base/x509_cert_types_unittest.cc',
1795           ],
1796         }],
1797       ],
1798     },
1799     {
1800       'target_name': 'net_perftests',
1801       'type': 'executable',
1802       'dependencies': [
1803         '../base/base.gyp:base',
1804         '../base/base.gyp:base_i18n',
1805         '../base/base.gyp:test_support_perf',
1806         '../build/temp_gyp/googleurl.gyp:googleurl',
1807         '../testing/gtest.gyp:gtest',
1808         'net',
1809         'net_test_support',
1810       ],
1811       'sources': [
1812         'cookies/cookie_monster_perftest.cc',
1813         'disk_cache/disk_cache_perftest.cc',
1814         'proxy/proxy_resolver_perftest.cc',
1815       ],
1816       'conditions': [
1817         [ 'use_v8_in_net==1', {
1818             'dependencies': [
1819               'net_with_v8',
1820             ],
1821           }, {  # else: !use_v8_in_net
1822             'sources!': [
1823               'proxy/proxy_resolver_perftest.cc',
1824             ],
1825           },
1826         ],
1827         # This is needed to trigger the dll copy step on windows.
1828         # TODO(mark): Specifying this here shouldn't be necessary.
1829         [ 'OS == "win"', {
1830             'dependencies': [
1831               '../third_party/icu/icu.gyp:icudata',
1832             ],
1833             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1834             'msvs_disabled_warnings': [4267, ],
1835           },
1836         ],
1837       ],
1838     },
1839     {
1840       'target_name': 'net_test_support',
1841       'type': 'static_library',
1842       'dependencies': [
1843         '../base/base.gyp:base',
1844         '../base/base.gyp:test_support_base',
1845         '../testing/gtest.gyp:gtest',
1846         'net',
1847       ],
1848       'export_dependent_settings': [
1849         '../base/base.gyp:base',
1850         '../base/base.gyp:test_support_base',
1851         '../testing/gtest.gyp:gtest',
1852       ],
1853       'sources': [
1854         'base/capturing_net_log.cc',
1855         'base/capturing_net_log.h',
1856         'base/cert_test_util.cc',
1857         'base/cert_test_util.h',
1858         'base/load_timing_info_test_util.cc',
1859         'base/load_timing_info_test_util.h',
1860         'base/mock_cert_verifier.cc',
1861         'base/mock_cert_verifier.h',
1862         'base/mock_file_stream.cc',
1863         'base/mock_file_stream.h',
1864         'base/mock_host_resolver.cc',
1865         'base/mock_host_resolver.h',
1866         'base/net_test_suite.cc',
1867         'base/net_test_suite.h',
1868         'base/test_completion_callback.cc',
1869         'base/test_completion_callback.h',
1870         'base/test_data_directory.cc',
1871         'base/test_data_directory.h',
1872         'cookies/cookie_monster_store_test.cc',
1873         'cookies/cookie_monster_store_test.h',
1874         'cookies/cookie_store_test_callbacks.cc',
1875         'cookies/cookie_store_test_callbacks.h',
1876         'cookies/cookie_store_test_helpers.cc',
1877         'cookies/cookie_store_test_helpers.h',
1878         'disk_cache/disk_cache_test_base.cc',
1879         'disk_cache/disk_cache_test_base.h',
1880         'disk_cache/disk_cache_test_util.cc',
1881         'disk_cache/disk_cache_test_util.h',
1882         'disk_cache/flash/flash_cache_test_base.h',
1883         'disk_cache/flash/flash_cache_test_base.cc',
1884         'dns/dns_test_util.cc',
1885         'dns/dns_test_util.h',
1886         'proxy/mock_proxy_resolver.cc',
1887         'proxy/mock_proxy_resolver.h',
1888         'proxy/mock_proxy_script_fetcher.cc',
1889         'proxy/mock_proxy_script_fetcher.h',
1890         'proxy/proxy_config_service_common_unittest.cc',
1891         'proxy/proxy_config_service_common_unittest.h',
1892         'socket/socket_test_util.cc',
1893         'socket/socket_test_util.h',
1894         'test/base_test_server.cc',
1895         'test/base_test_server.h',
1896         'test/local_sync_test_server.cc',
1897         'test/local_sync_test_server.h',
1898         'test/local_test_server_posix.cc',
1899         'test/local_test_server_win.cc',
1900         'test/local_test_server.cc',
1901         'test/local_test_server.h',
1902         'test/python_utils.cc',
1903         'test/python_utils.h',
1904         'test/remote_test_server.cc',
1905         'test/remote_test_server.h',
1906         'test/spawner_communicator.cc',
1907         'test/spawner_communicator.h',
1908         'test/test_server.h',
1909         'url_request/test_url_fetcher_factory.cc',
1910         'url_request/test_url_fetcher_factory.h',
1911         'url_request/url_request_test_util.cc',
1912         'url_request/url_request_test_util.h',
1913       ],
1914       'conditions': [
1915         ['inside_chromium_build==1 and OS != "ios"', {
1916           'dependencies': [
1917             # The test server uses Python modules generated by cloud print.
1918             # TODO(sync): Remove this hack (http://crbug.com/119403).
1919             '../chrome/app/policy/cloud_policy_codegen.gyp:cloud_policy_proto_compile',
1920             # The test server uses Python modules generated by the sync protos.
1921             # TODO(sync): Remove this hack (http://crbug.com/117559).
1922             '../sync/protocol/sync_proto.gyp:sync_proto',
1923             '../third_party/protobuf/protobuf.gyp:py_proto',
1924           ],
1925         }],
1926         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
1927           'conditions': [
1928             ['use_openssl==1', {
1929               'dependencies': [
1930                 '../third_party/openssl/openssl.gyp:openssl',
1931               ],
1932             }, {
1933               'dependencies': [
1934                 '../build/linux/system.gyp:ssl',
1935               ],
1936             }],
1937           ],
1938         }],
1939         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
1940           'conditions': [
1941             ['linux_use_tcmalloc==1', {
1942               'dependencies': [
1943                 '../base/allocator/allocator.gyp:allocator',
1944               ],
1945             }],
1946           ],
1947         }],
1948         ['OS != "android"', {
1949           'sources!': [
1950             'test/remote_test_server.cc',
1951             'test/remote_test_server.h',
1952             'test/spawner_communicator.cc',
1953             'test/spawner_communicator.h',
1954           ],
1955         }],
1956         ['OS == "ios"', {
1957           'dependencies': [
1958             '../third_party/nss/nss.gyp:nss',
1959           ],
1960         }],
1961         [ 'use_v8_in_net==1', {
1962             'dependencies': [
1963               'net_with_v8',
1964             ],
1965           },
1966         ],
1967       ],
1968       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1969       'msvs_disabled_warnings': [4267, ],
1970     },
1971     {
1972       'target_name': 'net_resources',
1973       'type': 'none',
1974       'variables': {
1975         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
1976       },
1977       'actions': [
1978         {
1979           'action_name': 'net_resources',
1980           'variables': {
1981             'grit_grd_file': 'base/net_resources.grd',
1982           },
1983           'includes': [ '../build/grit_action.gypi' ],
1984         },
1985       ],
1986       'includes': [ '../build/grit_target.gypi' ],
1987     },
1988     {
1989       'target_name': 'http_server',
1990       'type': 'static_library',
1991       'variables': { 'enable_wexit_time_destructors': 1, },
1992       'dependencies': [
1993         '../base/base.gyp:base',
1994         'net',
1995       ],
1996       'sources': [
1997         'server/http_connection.cc',
1998         'server/http_connection.h',
1999         'server/http_server.cc',
2000         'server/http_server.h',
2001         'server/http_server_request_info.cc',
2002         'server/http_server_request_info.h',
2003         'server/web_socket.cc',
2004         'server/web_socket.h',
2005       ],
2006       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2007       'msvs_disabled_warnings': [4267, ],
2008     },
2009     {
2010       'target_name': 'dump_cache',
2011       'type': 'executable',
2012       'dependencies': [
2013         '../base/base.gyp:base',
2014         'net',
2015         'net_test_support',
2016       ],
2017       'sources': [
2018         'tools/dump_cache/cache_dumper.cc',
2019         'tools/dump_cache/cache_dumper.h',
2020         'tools/dump_cache/dump_cache.cc',
2021         'tools/dump_cache/dump_files.cc',
2022         'tools/dump_cache/dump_files.h',
2023         'tools/dump_cache/simple_cache_dumper.cc',
2024         'tools/dump_cache/simple_cache_dumper.h',
2025         'tools/dump_cache/upgrade_win.cc',
2026         'tools/dump_cache/upgrade_win.h',
2027         'tools/dump_cache/url_to_filename_encoder.cc',
2028         'tools/dump_cache/url_to_filename_encoder.h',
2029         'tools/dump_cache/url_utilities.h',
2030         'tools/dump_cache/url_utilities.cc',
2031       ],
2032       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2033       'msvs_disabled_warnings': [4267, ],
2034     },
2035   ],
2036   'conditions': [
2037     ['use_v8_in_net == 1', {
2038       'targets': [
2039         {
2040           'target_name': 'net_with_v8',
2041           'type': '<(component)',
2042           'variables': { 'enable_wexit_time_destructors': 1, },
2043           'dependencies': [
2044             '../base/base.gyp:base',
2045             '../build/temp_gyp/googleurl.gyp:googleurl',
2046             '../v8/tools/gyp/v8.gyp:v8',
2047             'net'
2048           ],
2049           'defines': [
2050             'NET_IMPLEMENTATION',
2051           ],
2052           'sources': [
2053             'proxy/proxy_resolver_v8.cc',
2054             'proxy/proxy_resolver_v8.h',
2055             'proxy/proxy_service_v8.cc',
2056             'proxy/proxy_service_v8.h',
2057           ],
2058           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2059           'msvs_disabled_warnings': [4267, ],
2060         },
2061       ],
2062     }],
2063     ['OS != "ios"', {
2064       'targets': [
2065         # iOS doesn't have the concept of simple executables, these targets
2066         # can't be compiled on the platform.
2067         {
2068           'target_name': 'crash_cache',
2069           'type': 'executable',
2070           'dependencies': [
2071             '../base/base.gyp:base',
2072             'net',
2073             'net_test_support',
2074           ],
2075           'sources': [
2076             'tools/crash_cache/crash_cache.cc',
2077           ],
2078           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2079           'msvs_disabled_warnings': [4267, ],
2080         },
2081         {
2082           'target_name': 'crl_set_dump',
2083           'type': 'executable',
2084           'dependencies': [
2085             '../base/base.gyp:base',
2086             'net',
2087           ],
2088           'sources': [
2089             'tools/crl_set_dump/crl_set_dump.cc',
2090           ],
2091           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2092           'msvs_disabled_warnings': [4267, ],
2093         },
2094         {
2095           'target_name': 'dns_fuzz_stub',
2096           'type': 'executable',
2097           'dependencies': [
2098             '../base/base.gyp:base',
2099             'net',
2100           ],
2101           'sources': [
2102             'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
2103           ],
2104           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2105           'msvs_disabled_warnings': [4267, ],
2106         },
2107         {
2108           'target_name': 'fetch_client',
2109           'type': 'executable',
2110           'variables': { 'enable_wexit_time_destructors': 1, },
2111           'dependencies': [
2112             '../base/base.gyp:base',
2113             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
2114             '../build/temp_gyp/googleurl.gyp:googleurl',
2115             '../testing/gtest.gyp:gtest',
2116             'net',
2117             'net_with_v8',
2118           ],
2119           'sources': [
2120             'tools/fetch/fetch_client.cc',
2121           ],
2122           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2123           'msvs_disabled_warnings': [4267, ],
2124         },
2125         {
2126           'target_name': 'fetch_server',
2127           'type': 'executable',
2128           'variables': { 'enable_wexit_time_destructors': 1, },
2129           'dependencies': [
2130             '../base/base.gyp:base',
2131             '../build/temp_gyp/googleurl.gyp:googleurl',
2132             'net',
2133           ],
2134           'sources': [
2135             'tools/fetch/fetch_server.cc',
2136             'tools/fetch/http_listen_socket.cc',
2137             'tools/fetch/http_listen_socket.h',
2138             'tools/fetch/http_server.cc',
2139             'tools/fetch/http_server.h',
2140             'tools/fetch/http_server_request_info.cc',
2141             'tools/fetch/http_server_request_info.h',
2142             'tools/fetch/http_server_response_info.cc',
2143             'tools/fetch/http_server_response_info.h',
2144             'tools/fetch/http_session.cc',
2145             'tools/fetch/http_session.h',
2146           ],
2147           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2148           'msvs_disabled_warnings': [4267, ],
2149         },
2150         {
2151           'target_name': 'gdig',
2152           'type': 'executable',
2153           'dependencies': [
2154             '../base/base.gyp:base',
2155             'net',
2156           ],
2157           'sources': [
2158             'tools/gdig/file_net_log.cc',
2159             'tools/gdig/gdig.cc',
2160           ],
2161         },
2162         {
2163           'target_name': 'get_server_time',
2164           'type': 'executable',
2165           'dependencies': [
2166             '../base/base.gyp:base',
2167             '../base/base.gyp:base_i18n',
2168             '../build/temp_gyp/googleurl.gyp:googleurl',
2169             'net',
2170           ],
2171           'sources': [
2172             'tools/get_server_time/get_server_time.cc',
2173           ],
2174           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2175           'msvs_disabled_warnings': [4267, ],
2176         },
2177         {
2178           'target_name': 'net_watcher',
2179           'type': 'executable',
2180           'dependencies': [
2181             '../base/base.gyp:base',
2182             'net',
2183             'net_with_v8',
2184           ],
2185           'conditions': [
2186             [ 'use_glib == 1', {
2187                 'dependencies': [
2188                   '../build/linux/system.gyp:gconf',
2189                   '../build/linux/system.gyp:gio',
2190                 ],
2191               },
2192             ],
2193           ],
2194           'sources': [
2195             'tools/net_watcher/net_watcher.cc',
2196           ],
2197         },
2198         {
2199           'target_name': 'run_testserver',
2200           'type': 'executable',
2201           'dependencies': [
2202             '../base/base.gyp:base',
2203             '../build/temp_gyp/googleurl.gyp:googleurl',
2204             '../testing/gtest.gyp:gtest',
2205             'net',
2206             'net_test_support',
2207           ],
2208           'sources': [
2209             'tools/testserver/run_testserver.cc',
2210           ],
2211         },
2212         {
2213           'target_name': 'stress_cache',
2214           'type': 'executable',
2215           'dependencies': [
2216             '../base/base.gyp:base',
2217             'net',
2218             'net_test_support',
2219           ],
2220           'sources': [
2221             'disk_cache/stress_cache.cc',
2222           ],
2223           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2224           'msvs_disabled_warnings': [4267, ],
2225         },
2226         {
2227           'target_name': 'tld_cleanup',
2228           'type': 'executable',
2229           'dependencies': [
2230             '../base/base.gyp:base',
2231             '../base/base.gyp:base_i18n',
2232             '../build/temp_gyp/googleurl.gyp:googleurl',
2233           ],
2234           'sources': [
2235             'tools/tld_cleanup/tld_cleanup.cc',
2236           ],
2237           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2238           'msvs_disabled_warnings': [4267, ],
2239         },
2240       ],
2241     }],
2242     ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
2243       'targets': [
2244         {
2245           'target_name': 'flip_in_mem_edsm_server',
2246           'type': 'executable',
2247           'cflags': [
2248             '-Wno-deprecated',
2249           ],
2250           'dependencies': [
2251             '../base/base.gyp:base',
2252             '../third_party/openssl/openssl.gyp:openssl',
2253             'net',
2254           ],
2255           'sources': [
2256             'tools/dump_cache/url_to_filename_encoder.cc',
2257             'tools/dump_cache/url_to_filename_encoder.h',
2258             'tools/dump_cache/url_utilities.h',
2259             'tools/dump_cache/url_utilities.cc',
2260             'tools/flip_server/acceptor_thread.h',
2261             'tools/flip_server/acceptor_thread.cc',
2262             'tools/flip_server/balsa_enums.h',
2263             'tools/flip_server/balsa_frame.cc',
2264             'tools/flip_server/balsa_frame.h',
2265             'tools/flip_server/balsa_headers.cc',
2266             'tools/flip_server/balsa_headers.h',
2267             'tools/flip_server/balsa_headers_token_utils.cc',
2268             'tools/flip_server/balsa_headers_token_utils.h',
2269             'tools/flip_server/balsa_visitor_interface.h',
2270             'tools/flip_server/buffer_interface.h',
2271             'tools/flip_server/constants.h',
2272             'tools/flip_server/create_listener.cc',
2273             'tools/flip_server/create_listener.h',
2274             'tools/flip_server/epoll_server.cc',
2275             'tools/flip_server/epoll_server.h',
2276             'tools/flip_server/flip_config.cc',
2277             'tools/flip_server/flip_config.h',
2278             'tools/flip_server/flip_in_mem_edsm_server.cc',
2279             'tools/flip_server/http_interface.cc',
2280             'tools/flip_server/http_interface.h',
2281             'tools/flip_server/http_message_constants.cc',
2282             'tools/flip_server/http_message_constants.h',
2283             'tools/flip_server/loadtime_measurement.h',
2284             'tools/flip_server/mem_cache.h',
2285             'tools/flip_server/mem_cache.cc',
2286             'tools/flip_server/output_ordering.cc',
2287             'tools/flip_server/output_ordering.h',
2288             'tools/flip_server/ring_buffer.cc',
2289             'tools/flip_server/ring_buffer.h',
2290             'tools/flip_server/simple_buffer.cc',
2291             'tools/flip_server/simple_buffer.h',
2292             'tools/flip_server/sm_connection.cc',
2293             'tools/flip_server/sm_connection.h',
2294             'tools/flip_server/sm_interface.h',
2295             'tools/flip_server/split.h',
2296             'tools/flip_server/split.cc',
2297             'tools/flip_server/spdy_ssl.cc',
2298             'tools/flip_server/spdy_ssl.h',
2299             'tools/flip_server/spdy_interface.cc',
2300             'tools/flip_server/spdy_interface.h',
2301             'tools/flip_server/spdy_util.cc',
2302             'tools/flip_server/spdy_util.h',
2303             'tools/flip_server/streamer_interface.cc',
2304             'tools/flip_server/streamer_interface.h',
2305             'tools/flip_server/string_piece_utils.h',
2306           ],
2307         },
2308       ]
2309     }],
2310     ['OS=="android"', {
2311       'targets': [
2312         {
2313           'target_name': 'net_jni_headers',
2314           'type': 'none',
2315           'sources': [
2316             'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
2317             'android/java/src/org/chromium/net/GURLUtils.java',
2318             'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
2319             'android/java/src/org/chromium/net/ProxyChangeListener.java',
2320           ],
2321           'variables': {
2322             'jni_gen_dir': 'net',
2323           },
2324           'includes': [ '../build/jni_generator.gypi' ],
2325         },
2326         {
2327           'target_name': 'net_java',
2328           'type': 'none',
2329           'variables': {
2330             'package_name': 'net',
2331             'java_in_dir': '../net/android/java',
2332           },
2333           'dependencies': [
2334             '../base/base.gyp:base',
2335             'net_errors_java',
2336             'certificate_mime_types_java',
2337           ],
2338           'includes': [ '../build/java.gypi' ],
2339         },
2340         {
2341           'target_name': 'net_java_test_support',
2342           'type': 'none',
2343           'variables': {
2344             'package_name': 'net_java_test_support',
2345             'java_in_dir': '../net/test/android/javatests',
2346           },
2347           'includes': [ '../build/java.gypi' ],
2348         },
2349         {
2350           'target_name': 'net_javatests',
2351           'type': 'none',
2352           'variables': {
2353             'package_name': 'net_javatests',
2354             'java_in_dir': '../net/android/javatests',
2355           },
2356           'dependencies': [
2357             '../base/base.gyp:base',
2358             '../base/base.gyp:base_java_test_support',
2359             'net_java',
2360           ],
2361           'includes': [ '../build/java.gypi' ],
2362         },
2363         {
2364           'target_name': 'net_errors_java',
2365           'type': 'none',
2366           'sources': [
2367             'base/net_error_list.h',
2368             'android/java/NetError.template',
2369           ],
2370           'variables': {
2371             'package_name': 'org.chromium.net',
2372           },
2373           'includes': [ '../build/android/java_cpp_template.gypi' ],
2374         },
2375         {
2376           'target_name': 'certificate_mime_types_java',
2377           'type': 'none',
2378           'sources': [
2379             'base/mime_util_certificate_type_list.h',
2380             'android/java/CertificateMimeType.template',
2381           ],
2382           'variables': {
2383             'package_name': 'org.chromium.net',
2384           },
2385           'includes': [ '../build/android/java_cpp_template.gypi' ],
2386         },
2387       ],
2388     }],
2389     # Special target to wrap a gtest_target_type==shared_library
2390     # net_unittests into an android apk for execution.
2391     # See base.gyp for TODO(jrg)s about this strategy.
2392     ['OS == "android" and gtest_target_type == "shared_library"', {
2393       'targets': [
2394         {
2395           'target_name': 'net_unittests_apk',
2396           'type': 'none',
2397           'dependencies': [
2398             'net_java',
2399             'net_unittests',
2400           ],
2401           'variables': {
2402             'test_suite_name': 'net_unittests',
2403             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)net_unittests<(SHARED_LIB_SUFFIX)',
2404           },
2405           'includes': [ '../build/apk_test.gypi' ],
2406         },
2407       ],
2408     }],
2409     ['test_isolation_mode != "noop"', {
2410       'targets': [
2411         {
2412           'target_name': 'net_unittests_run',
2413           'type': 'none',
2414           'dependencies': [
2415             'net_unittests',
2416           ],
2417           'includes': [
2418             'net_unittests.isolate',
2419           ],
2420           'actions': [
2421             {
2422               'action_name': 'isolate',
2423               'inputs': [
2424                 'net_unittests.isolate',
2425                 '<@(isolate_dependency_tracked)',
2426               ],
2427               'outputs': [
2428                 '<(PRODUCT_DIR)/net_unittests.isolated',
2429               ],
2430               'action': [
2431                 'python',
2432                 '../tools/swarm_client/isolate.py',
2433                 '<(test_isolation_mode)',
2434                 '--outdir', '<(test_isolation_outdir)',
2435                 '--variable', 'PRODUCT_DIR', '<(PRODUCT_DIR)',
2436                 '--variable', 'OS', '<(OS)',
2437                 '--result', '<@(_outputs)',
2438                 '--isolate', 'net_unittests.isolate',
2439               ],
2440             },
2441           ],
2442         },
2443       ],
2444     }],
2445   ],