Remove "if (WallpaperManager::Get())" from MultiUserWindowManagerChromeOS::Transition...
[chromium-blink-merge.git] / net / net.gyp
blobefdeda38cf84090ce01e3a50323b938380f9cee4
1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
9     'linux_link_kerberos%': 0,
10     'use_tracing_cache_backend%': 0,
11     'conditions': [
12       ['chromeos==1 or embedded==1 or OS=="android" or OS=="ios"', {
13         # Disable Kerberos on ChromeOS, Android and iOS, at least for now.
14         # It needs configuration (krb5.conf and so on).
15         'use_kerberos%': 0,
16       }, {  # chromeos == 0 and embedded==0 and OS!="android" and OS!="ios"
17         'use_kerberos%': 1,
18       }],
19       ['OS=="android" and target_arch != "ia32"', {
20         # The way the cache uses mmap() is inefficient on some Android devices.
21         # If this flag is set, we hackily avoid using mmap() in the disk cache.
22         # We are pretty confident that mmap-ing the index would not hurt any
23         # existing x86 android devices, but we cannot be so sure about the
24         # variety of ARM devices. So enable it for x86 only for now.
25         'posix_avoid_mmap%': 1,
26       }, {
27         'posix_avoid_mmap%': 0,
28       }],
29       ['OS=="ios"', {
30         # Websockets and socket stream are not used on iOS.
31         'enable_websockets%': 0,
32         # iOS does not use V8.
33         'use_v8_in_net%': 0,
34         'enable_built_in_dns%': 0,
35       }, {
36         'enable_websockets%': 1,
37         'use_v8_in_net%': 1,
38         'enable_built_in_dns%': 1,
39       }],
40     ],
41   },
42   'includes': [
43     '../build/win_precompile.gypi',
44   ],
45   'targets': [
46     {
47       'target_name': 'net',
48       'type': '<(component)',
49       'variables': { 'enable_wexit_time_destructors': 1, },
50       'dependencies': [
51         '../base/base.gyp:base',
52         '../base/base.gyp:base_i18n',
53         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
54         '../crypto/crypto.gyp:crypto',
55         '../sdch/sdch.gyp:sdch',
56         '../third_party/icu/icu.gyp:icui18n',
57         '../third_party/icu/icu.gyp:icuuc',
58         '../third_party/zlib/zlib.gyp:zlib',
59         '../url/url.gyp:url_lib',
60         'net_resources',
61       ],
62       'sources': [
63         'android/cert_verify_result_android.cc',
64         'android/cert_verify_result_android.h',
65         'android/cert_verify_status_android_list.h',
66         'android/gurl_utils.cc',
67         'android/gurl_utils.h',
68         'android/android_private_key.cc',
69         'android/android_private_key.h',
70         'android/keystore.cc',
71         'android/keystore.h',
72         'android/keystore_openssl.cc',
73         'android/keystore_openssl.h',
74         'android/net_jni_registrar.cc',
75         'android/net_jni_registrar.h',
76         'android/network_change_notifier_android.cc',
77         'android/network_change_notifier_android.h',
78         'android/network_change_notifier_delegate_android.cc',
79         'android/network_change_notifier_delegate_android.h',
80         'android/network_change_notifier_factory_android.cc',
81         'android/network_change_notifier_factory_android.h',
82         'android/network_library.cc',
83         'android/network_library.h',
84         'base/address_family.h',
85         'base/address_list.cc',
86         'base/address_list.h',
87         'base/address_tracker_linux.cc',
88         'base/address_tracker_linux.h',
89         'base/auth.cc',
90         'base/auth.h',
91         'base/backoff_entry.cc',
92         'base/backoff_entry.h',
93         'base/bandwidth_metrics.cc',
94         'base/bandwidth_metrics.h',
95         'base/cache_type.h',
96         'base/completion_callback.h',
97         'base/connection_type_histograms.cc',
98         'base/connection_type_histograms.h',
99         'base/crypto_module.h',
100         'base/crypto_module_nss.cc',
101         'base/crypto_module_openssl.cc',
102         'base/data_url.cc',
103         'base/data_url.h',
104         'base/directory_lister.cc',
105         'base/directory_lister.h',
106         'base/dns_reloader.cc',
107         'base/dns_reloader.h',
108         'base/dns_util.cc',
109         'base/dns_util.h',
110         'base/escape.cc',
111         'base/escape.h',
112         'base/expiring_cache.h',
113         'base/file_stream.cc',
114         'base/file_stream.h',
115         'base/file_stream_context.cc',
116         'base/file_stream_context.h',
117         'base/file_stream_context_posix.cc',
118         'base/file_stream_context_win.cc',
119         'base/file_stream_metrics.cc',
120         'base/file_stream_metrics.h',
121         'base/file_stream_metrics_posix.cc',
122         'base/file_stream_metrics_win.cc',
123         'base/file_stream_net_log_parameters.cc',
124         'base/file_stream_net_log_parameters.h',
125         'base/file_stream_whence.h',
126         'base/int128.cc',
127         'base/int128.h',
128         'base/hash_value.cc',
129         'base/hash_value.h',
130         'base/host_mapping_rules.cc',
131         'base/host_mapping_rules.h',
132         'base/host_port_pair.cc',
133         'base/host_port_pair.h',
134         'base/io_buffer.cc',
135         'base/io_buffer.h',
136         'base/iovec.h',
137         'base/ip_endpoint.cc',
138         'base/ip_endpoint.h',
139         'base/ip_mapping_rules.cc',
140         'base/ip_mapping_rules.h',
141         'base/ip_pattern.cc',
142         'base/ip_pattern.h',
143         'base/keygen_handler.cc',
144         'base/keygen_handler.h',
145         'base/keygen_handler_mac.cc',
146         'base/keygen_handler_nss.cc',
147         'base/keygen_handler_openssl.cc',
148         'base/keygen_handler_win.cc',
149         'base/linked_hash_map.h',
150         'base/load_flags.h',
151         'base/load_flags_list.h',
152         'base/load_states.h',
153         'base/load_states_list.h',
154         'base/load_timing_info.cc',
155         'base/load_timing_info.h',
156         'base/mime_sniffer.cc',
157         'base/mime_sniffer.h',
158         'base/mime_util.cc',
159         'base/mime_util.h',
160         'base/net_error_list.h',
161         'base/net_errors.cc',
162         'base/net_errors.h',
163         'base/net_errors_posix.cc',
164         'base/net_errors_win.cc',
165         'base/net_export.h',
166         'base/net_log.cc',
167         'base/net_log.h',
168         'base/net_log_logger.cc',
169         'base/net_log_logger.h',
170         'base/net_log_event_type_list.h',
171         'base/net_log_source_type_list.h',
172         'base/net_module.cc',
173         'base/net_module.h',
174         'base/net_util.cc',
175         'base/net_util.h',
176         'base/net_util_posix.cc',
177         'base/net_util_win.cc',
178         'base/network_change_notifier.cc',
179         'base/network_change_notifier.h',
180         'base/network_change_notifier_factory.h',
181         'base/network_change_notifier_linux.cc',
182         'base/network_change_notifier_linux.h',
183         'base/network_change_notifier_mac.cc',
184         'base/network_change_notifier_mac.h',
185         'base/network_change_notifier_win.cc',
186         'base/network_change_notifier_win.h',
187         'base/network_config_watcher_mac.cc',
188         'base/network_config_watcher_mac.h',
189         'base/network_delegate.cc',
190         'base/network_delegate.h',
191         'base/network_time_notifier.cc',
192         'base/network_time_notifier.h',
193         'base/nss_memio.c',
194         'base/nss_memio.h',
195         'base/openssl_private_key_store.h',
196         'base/openssl_private_key_store_android.cc',
197         'base/openssl_private_key_store_memory.cc',
198         'base/platform_mime_util.h',
199         # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
200         'base/platform_mime_util_linux.cc',
201         'base/platform_mime_util_mac.mm',
202         'base/platform_mime_util_win.cc',
203         'base/prioritized_dispatcher.cc',
204         'base/prioritized_dispatcher.h',
205         'base/priority_queue.h',
206         'base/rand_callback.h',
207         'base/registry_controlled_domains/registry_controlled_domain.cc',
208         'base/registry_controlled_domains/registry_controlled_domain.h',
209         'base/request_priority.cc',
210         'base/request_priority.h',
211         'base/sdch_manager.cc',
212         'base/sdch_manager.h',
213         'base/static_cookie_policy.cc',
214         'base/static_cookie_policy.h',
215         'base/sys_addrinfo.h',
216         'base/test_data_stream.cc',
217         'base/test_data_stream.h',
218         'base/upload_bytes_element_reader.cc',
219         'base/upload_bytes_element_reader.h',
220         'base/upload_data_stream.cc',
221         'base/upload_data_stream.h',
222         'base/upload_element.cc',
223         'base/upload_element.h',
224         'base/upload_element_reader.cc',
225         'base/upload_element_reader.h',
226         'base/upload_file_element_reader.cc',
227         'base/upload_file_element_reader.h',
228         'base/upload_progress.h',
229         'base/url_util.cc',
230         'base/url_util.h',
231         'base/winsock_init.cc',
232         'base/winsock_init.h',
233         'base/winsock_util.cc',
234         'base/winsock_util.h',
235         'base/zap.cc',
236         'base/zap.h',
237         'cert/asn1_util.cc',
238         'cert/asn1_util.h',
239         'cert/cert_database.cc',
240         'cert/cert_database.h',
241         'cert/cert_database_android.cc',
242         'cert/cert_database_ios.cc',
243         'cert/cert_database_mac.cc',
244         'cert/cert_database_nss.cc',
245         'cert/cert_database_openssl.cc',
246         'cert/cert_database_win.cc',
247         'cert/cert_status_flags.cc',
248         'cert/cert_status_flags.h',
249         'cert/cert_trust_anchor_provider.h',
250         'cert/cert_verifier.cc',
251         'cert/cert_verifier.h',
252         'cert/cert_verify_proc.cc',
253         'cert/cert_verify_proc.h',
254         'cert/cert_verify_proc_android.cc',
255         'cert/cert_verify_proc_android.h',
256         'cert/cert_verify_proc_mac.cc',
257         'cert/cert_verify_proc_mac.h',
258         'cert/cert_verify_proc_nss.cc',
259         'cert/cert_verify_proc_nss.h',
260         'cert/cert_verify_proc_openssl.cc',
261         'cert/cert_verify_proc_openssl.h',
262         'cert/cert_verify_proc_win.cc',
263         'cert/cert_verify_proc_win.h',
264         'cert/cert_verify_result.cc',
265         'cert/cert_verify_result.h',
266         'cert/crl_set.cc',
267         'cert/crl_set.h',
268         'cert/ct_known_logs.cc',
269         'cert/ct_known_logs.h',
270         'cert/ct_log_verifier.cc',
271         'cert/ct_log_verifier.h',
272         'cert/ct_log_verifier_nss.cc',
273         'cert/ct_log_verifier_openssl.cc',
274         'cert/ct_objects_extractor.h',
275         'cert/ct_objects_extractor_nss.cc',
276         'cert/ct_objects_extractor_openssl.cc',
277         'cert/ct_serialization.cc',
278         'cert/ct_serialization.h',
279         'cert/ct_signed_certificate_timestamp_log_param.cc',
280         'cert/ct_signed_certificate_timestamp_log_param.h',
281         'cert/ct_verifier.h',
282         'cert/ct_verify_result.cc',
283         'cert/ct_verify_result.h',
284         'cert/ev_root_ca_metadata.cc',
285         'cert/ev_root_ca_metadata.h',
286         'cert/jwk_serializer_nss.cc',
287         'cert/jwk_serializer_openssl.cc',
288         'cert/jwk_serializer.h',
289         'cert/multi_log_ct_verifier.cc',
290         'cert/multi_log_ct_verifier.h',
291         'cert/multi_threaded_cert_verifier.cc',
292         'cert/multi_threaded_cert_verifier.h',
293         'cert/nss_cert_database.cc',
294         'cert/nss_cert_database.h',
295         'cert/nss_cert_database_chromeos.cc',
296         'cert/nss_cert_database_chromeos.h',
297         'cert/nss_profile_filter_chromeos.cc',
298         'cert/nss_profile_filter_chromeos.h',
299         'cert/pem_tokenizer.cc',
300         'cert/pem_tokenizer.h',
301         'cert/scoped_nss_types.h',
302         'cert/sct_status_flags.h',
303         'cert/signed_certificate_timestamp.cc',
304         'cert/signed_certificate_timestamp.h',
305         'cert/single_request_cert_verifier.cc',
306         'cert/single_request_cert_verifier.h',
307         'cert/test_root_certs.cc',
308         'cert/test_root_certs.h',
309         'cert/test_root_certs_android.cc',
310         'cert/test_root_certs_mac.cc',
311         'cert/test_root_certs_nss.cc',
312         'cert/test_root_certs_openssl.cc',
313         'cert/test_root_certs_win.cc',
314         'cert/x509_cert_types.cc',
315         'cert/x509_cert_types.h',
316         'cert/x509_cert_types_mac.cc',
317         'cert/x509_cert_types_win.cc',
318         'cert/x509_certificate.cc',
319         'cert/x509_certificate.h',
320         'cert/x509_certificate_ios.cc',
321         'cert/x509_certificate_mac.cc',
322         'cert/x509_certificate_net_log_param.cc',
323         'cert/x509_certificate_net_log_param.h',
324         'cert/x509_certificate_nss.cc',
325         'cert/x509_certificate_openssl.cc',
326         'cert/x509_certificate_win.cc',
327         'cert/x509_util.cc',
328         'cert/x509_util.h',
329         'cert/x509_util_android.cc',
330         'cert/x509_util_android.h',
331         'cert/x509_util_ios.cc',
332         'cert/x509_util_ios.h',
333         'cert/x509_util_mac.cc',
334         'cert/x509_util_mac.h',
335         'cert/x509_util_nss.cc',
336         'cert/x509_util_nss.h',
337         'cert/x509_util_openssl.cc',
338         'cert/x509_util_openssl.h',
339         'cookies/canonical_cookie.cc',
340         'cookies/canonical_cookie.h',
341         'cookies/cookie_constants.cc',
342         'cookies/cookie_constants.h',
343         'cookies/cookie_monster.cc',
344         'cookies/cookie_monster.h',
345         'cookies/cookie_options.h',
346         'cookies/cookie_store.cc',
347         'cookies/cookie_store.h',
348         'cookies/cookie_util.cc',
349         'cookies/cookie_util.h',
350         'cookies/parsed_cookie.cc',
351         'cookies/parsed_cookie.h',
352         'disk_cache/blockfile/addr.cc',
353         'disk_cache/blockfile/addr.h',
354         'disk_cache/blockfile/backend_impl.cc',
355         'disk_cache/blockfile/backend_impl.h',
356         'disk_cache/blockfile/backend_impl_v3.cc',
357         'disk_cache/blockfile/backend_impl_v3.h',
358         'disk_cache/blockfile/bitmap.cc',
359         'disk_cache/blockfile/bitmap.h',
360         'disk_cache/blockfile/block_bitmaps_v3.cc',
361         'disk_cache/blockfile/block_bitmaps_v3.h',
362         'disk_cache/blockfile/block_files.cc',
363         'disk_cache/blockfile/block_files.h',
364         'disk_cache/blockfile/disk_format.cc',
365         'disk_cache/blockfile/disk_format.h',
366         'disk_cache/blockfile/disk_format_base.h',
367         'disk_cache/blockfile/disk_format_v3.h',
368         'disk_cache/blockfile/entry_impl.cc',
369         'disk_cache/blockfile/entry_impl.h',
370         'disk_cache/blockfile/entry_impl_v3.cc',
371         'disk_cache/blockfile/entry_impl_v3.h',
372         'disk_cache/blockfile/errors.h',
373         'disk_cache/blockfile/eviction.cc',
374         'disk_cache/blockfile/eviction.h',
375         'disk_cache/blockfile/eviction_v3.cc',
376         'disk_cache/blockfile/eviction_v3.h',
377         'disk_cache/blockfile/experiments.h',
378         'disk_cache/blockfile/file.cc',
379         'disk_cache/blockfile/file.h',
380         'disk_cache/blockfile/file_block.h',
381         'disk_cache/blockfile/file_ios.cc',
382         'disk_cache/blockfile/file_lock.cc',
383         'disk_cache/blockfile/file_lock.h',
384         'disk_cache/blockfile/file_posix.cc',
385         'disk_cache/blockfile/file_win.cc',
386         'disk_cache/blockfile/histogram_macros.h',
387         'disk_cache/blockfile/histogram_macros_v3.h',
388         'disk_cache/blockfile/in_flight_backend_io.cc',
389         'disk_cache/blockfile/in_flight_backend_io.h',
390         'disk_cache/blockfile/in_flight_io.cc',
391         'disk_cache/blockfile/in_flight_io.h',
392         'disk_cache/blockfile/index_table_v3.cc',
393         'disk_cache/blockfile/index_table_v3.h',
394         'disk_cache/blockfile/mapped_file.cc',
395         'disk_cache/blockfile/mapped_file.h',
396         'disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc',
397         'disk_cache/blockfile/mapped_file_posix.cc',
398         'disk_cache/blockfile/mapped_file_win.cc',
399         'disk_cache/blockfile/rankings.cc',
400         'disk_cache/blockfile/rankings.h',
401         'disk_cache/blockfile/sparse_control.cc',
402         'disk_cache/blockfile/sparse_control.h',
403         'disk_cache/blockfile/stats.cc',
404         'disk_cache/blockfile/stats.h',
405         'disk_cache/blockfile/stats_histogram.cc',
406         'disk_cache/blockfile/stats_histogram.h',
407         'disk_cache/blockfile/storage_block-inl.h',
408         'disk_cache/blockfile/storage_block.h',
409         'disk_cache/blockfile/stress_support.h',
410         'disk_cache/blockfile/trace.cc',
411         'disk_cache/blockfile/trace.h',
412         'disk_cache/cache_creator.cc',
413         'disk_cache/cache_util.cc',
414         'disk_cache/cache_util.h',
415         'disk_cache/cache_util_posix.cc',
416         'disk_cache/cache_util_win.cc',
417         'disk_cache/disk_cache.h',
418         'disk_cache/memory/mem_backend_impl.cc',
419         'disk_cache/memory/mem_backend_impl.h',
420         'disk_cache/memory/mem_entry_impl.cc',
421         'disk_cache/memory/mem_entry_impl.h',
422         'disk_cache/memory/mem_rankings.cc',
423         'disk_cache/memory/mem_rankings.h',
424         'disk_cache/net_log_parameters.cc',
425         'disk_cache/net_log_parameters.h',
426         'disk_cache/simple/simple_backend_impl.cc',
427         'disk_cache/simple/simple_backend_impl.h',
428         'disk_cache/simple/simple_backend_version.h',
429         'disk_cache/simple/simple_entry_format.cc',
430         'disk_cache/simple/simple_entry_format.h',
431         'disk_cache/simple/simple_entry_format_history.h',
432         'disk_cache/simple/simple_entry_impl.cc',
433         'disk_cache/simple/simple_entry_impl.h',
434         'disk_cache/simple/simple_entry_operation.cc',
435         'disk_cache/simple/simple_entry_operation.h',
436         'disk_cache/simple/simple_histogram_macros.h' ,
437         'disk_cache/simple/simple_index.cc',
438         'disk_cache/simple/simple_index.h',
439         'disk_cache/simple/simple_index_delegate.h',
440         'disk_cache/simple/simple_index_file.cc',
441         'disk_cache/simple/simple_index_file.h',
442         'disk_cache/simple/simple_index_file_posix.cc',
443         'disk_cache/simple/simple_index_file_win.cc',
444         'disk_cache/simple/simple_net_log_parameters.cc',
445         'disk_cache/simple/simple_net_log_parameters.h',
446         'disk_cache/simple/simple_synchronous_entry.cc',
447         'disk_cache/simple/simple_synchronous_entry.h',
448         'disk_cache/simple/simple_util.cc',
449         'disk_cache/simple/simple_util.h',
450         'disk_cache/simple/simple_version_upgrade.cc',
451         'disk_cache/simple/simple_version_upgrade.h',
452         'disk_cache/tracing/tracing_cache_backend.cc',
453         'disk_cache/tracing/tracing_cache_backend.h',
454         'dns/address_sorter.h',
455         'dns/address_sorter_posix.cc',
456         'dns/address_sorter_posix.h',
457         'dns/address_sorter_win.cc',
458         'dns/dns_client.cc',
459         'dns/dns_client.h',
460         'dns/dns_config_service.cc',
461         'dns/dns_config_service.h',
462         'dns/dns_config_service_posix.cc',
463         'dns/dns_config_service_posix.h',
464         'dns/dns_config_service_win.cc',
465         'dns/dns_config_service_win.h',
466         'dns/dns_config_watcher_mac.cc',
467         'dns/dns_config_watcher_mac.h',
468         'dns/dns_hosts.cc',
469         'dns/dns_hosts.h',
470         'dns/dns_protocol.h',
471         'dns/dns_query.cc',
472         'dns/dns_query.h',
473         'dns/dns_response.cc',
474         'dns/dns_response.h',
475         'dns/dns_session.cc',
476         'dns/dns_session.h',
477         'dns/dns_socket_pool.cc',
478         'dns/dns_socket_pool.h',
479         'dns/dns_transaction.cc',
480         'dns/dns_transaction.h',
481         'dns/host_cache.cc',
482         'dns/host_cache.h',
483         'dns/host_resolver.cc',
484         'dns/host_resolver.h',
485         'dns/host_resolver_impl.cc',
486         'dns/host_resolver_impl.h',
487         'dns/host_resolver_proc.cc',
488         'dns/host_resolver_proc.h',
489         'dns/mapped_host_resolver.cc',
490         'dns/mapped_host_resolver.h',
491         'dns/mapped_ip_resolver.cc',
492         'dns/mapped_ip_resolver.h',
493         'dns/mdns_cache.cc',
494         'dns/mdns_cache.h',
495         'dns/mdns_client.cc',
496         'dns/mdns_client.h',
497         'dns/mdns_client_impl.cc',
498         'dns/mdns_client_impl.h',
499         'dns/notify_watcher_mac.cc',
500         'dns/notify_watcher_mac.h',
501         'dns/record_parsed.cc',
502         'dns/record_parsed.h',
503         'dns/record_rdata.cc',
504         'dns/record_rdata.h',
505         'dns/serial_worker.cc',
506         'dns/serial_worker.h',
507         'dns/single_request_host_resolver.cc',
508         'dns/single_request_host_resolver.h',
509         'filter/filter.cc',
510         'filter/filter.h',
511         'filter/gzip_filter.cc',
512         'filter/gzip_filter.h',
513         'filter/gzip_header.cc',
514         'filter/gzip_header.h',
515         'filter/sdch_filter.cc',
516         'filter/sdch_filter.h',
517         'ftp/ftp_auth_cache.cc',
518         'ftp/ftp_auth_cache.h',
519         'ftp/ftp_ctrl_response_buffer.cc',
520         'ftp/ftp_ctrl_response_buffer.h',
521         'ftp/ftp_directory_listing_parser.cc',
522         'ftp/ftp_directory_listing_parser.h',
523         'ftp/ftp_directory_listing_parser_ls.cc',
524         'ftp/ftp_directory_listing_parser_ls.h',
525         'ftp/ftp_directory_listing_parser_netware.cc',
526         'ftp/ftp_directory_listing_parser_netware.h',
527         'ftp/ftp_directory_listing_parser_os2.cc',
528         'ftp/ftp_directory_listing_parser_os2.h',
529         'ftp/ftp_directory_listing_parser_vms.cc',
530         'ftp/ftp_directory_listing_parser_vms.h',
531         'ftp/ftp_directory_listing_parser_windows.cc',
532         'ftp/ftp_directory_listing_parser_windows.h',
533         'ftp/ftp_network_layer.cc',
534         'ftp/ftp_network_layer.h',
535         'ftp/ftp_network_session.cc',
536         'ftp/ftp_network_session.h',
537         'ftp/ftp_network_transaction.cc',
538         'ftp/ftp_network_transaction.h',
539         'ftp/ftp_request_info.h',
540         'ftp/ftp_response_info.cc',
541         'ftp/ftp_response_info.h',
542         'ftp/ftp_server_type_histograms.cc',
543         'ftp/ftp_server_type_histograms.h',
544         'ftp/ftp_transaction.h',
545         'ftp/ftp_transaction_factory.h',
546         'ftp/ftp_util.cc',
547         'ftp/ftp_util.h',
548         'http/des.cc',
549         'http/des.h',
550         'http/disk_cache_based_quic_server_info.cc',
551         'http/disk_cache_based_quic_server_info.h',
552         'http/failing_http_transaction_factory.cc',
553         'http/failing_http_transaction_factory.h',
554         'http/http_atom_list.h',
555         'http/http_auth.cc',
556         'http/http_auth.h',
557         'http/http_auth_cache.cc',
558         'http/http_auth_cache.h',
559         'http/http_auth_controller.cc',
560         'http/http_auth_controller.h',
561         'http/http_auth_filter.cc',
562         'http/http_auth_filter.h',
563         'http/http_auth_filter_win.h',
564         'http/http_auth_gssapi_posix.cc',
565         'http/http_auth_gssapi_posix.h',
566         'http/http_auth_handler.cc',
567         'http/http_auth_handler.h',
568         'http/http_auth_handler_basic.cc',
569         'http/http_auth_handler_basic.h',
570         'http/http_auth_handler_digest.cc',
571         'http/http_auth_handler_digest.h',
572         'http/http_auth_handler_factory.cc',
573         'http/http_auth_handler_factory.h',
574         'http/http_auth_handler_negotiate.cc',
575         'http/http_auth_handler_negotiate.h',
576         'http/http_auth_handler_ntlm.cc',
577         'http/http_auth_handler_ntlm.h',
578         'http/http_auth_handler_ntlm_portable.cc',
579         'http/http_auth_handler_ntlm_win.cc',
580         'http/http_auth_sspi_win.cc',
581         'http/http_auth_sspi_win.h',
582         'http/http_basic_state.cc',
583         'http/http_basic_state.h',
584         'http/http_basic_stream.cc',
585         'http/http_basic_stream.h',
586         'http/http_byte_range.cc',
587         'http/http_byte_range.h',
588         'http/http_cache.cc',
589         'http/http_cache.h',
590         'http/http_cache_transaction.cc',
591         'http/http_cache_transaction.h',
592         'http/http_content_disposition.cc',
593         'http/http_content_disposition.h',
594         'http/http_chunked_decoder.cc',
595         'http/http_chunked_decoder.h',
596         'http/http_network_layer.cc',
597         'http/http_network_layer.h',
598         'http/http_network_session.cc',
599         'http/http_network_session.h',
600         'http/http_network_session_peer.cc',
601         'http/http_network_session_peer.h',
602         'http/http_network_transaction.cc',
603         'http/http_network_transaction.h',
604         'http/http_pipelined_connection.h',
605         'http/http_pipelined_connection_impl.cc',
606         'http/http_pipelined_connection_impl.h',
607         'http/http_pipelined_host.cc',
608         'http/http_pipelined_host.h',
609         'http/http_pipelined_host_capability.h',
610         'http/http_pipelined_host_forced.cc',
611         'http/http_pipelined_host_forced.h',
612         'http/http_pipelined_host_impl.cc',
613         'http/http_pipelined_host_impl.h',
614         'http/http_pipelined_host_pool.cc',
615         'http/http_pipelined_host_pool.h',
616         'http/http_pipelined_stream.cc',
617         'http/http_pipelined_stream.h',
618         'http/http_proxy_client_socket.cc',
619         'http/http_proxy_client_socket.h',
620         'http/http_proxy_client_socket_pool.cc',
621         'http/http_proxy_client_socket_pool.h',
622         'http/http_request_headers.cc',
623         'http/http_request_headers.h',
624         'http/http_request_info.cc',
625         'http/http_request_info.h',
626         'http/http_response_body_drainer.cc',
627         'http/http_response_body_drainer.h',
628         'http/http_response_headers.cc',
629         'http/http_response_headers.h',
630         'http/http_response_info.cc',
631         'http/http_response_info.h',
632         'http/http_security_headers.cc',
633         'http/http_security_headers.h',
634         'http/http_server_properties.cc',
635         'http/http_server_properties.h',
636         'http/http_server_properties_impl.cc',
637         'http/http_server_properties_impl.h',
638         'http/http_status_code.cc',
639         'http/http_status_code.h',
640         'http/http_stream.h',
641         'http/http_stream_base.h',
642         'http/http_stream_factory.cc',
643         'http/http_stream_factory.h',
644         'http/http_stream_factory_impl.cc',
645         'http/http_stream_factory_impl.h',
646         'http/http_stream_factory_impl_job.cc',
647         'http/http_stream_factory_impl_job.h',
648         'http/http_stream_factory_impl_request.cc',
649         'http/http_stream_factory_impl_request.h',
650         'http/http_stream_parser.cc',
651         'http/http_stream_parser.h',
652         'http/http_transaction.h',
653         'http/http_transaction_factory.h',
654         'http/http_util.cc',
655         'http/http_util.h',
656         'http/http_util_icu.cc',
657         'http/http_vary_data.cc',
658         'http/http_vary_data.h',
659         'http/http_version.h',
660         'http/md4.cc',
661         'http/md4.h',
662         'http/partial_data.cc',
663         'http/partial_data.h',
664         'http/proxy_client_socket.h',
665         'http/proxy_client_socket.cc',
666         'http/proxy_connect_redirect_http_stream.cc',
667         'http/proxy_connect_redirect_http_stream.h',
668         'http/transport_security_persister.cc',
669         'http/transport_security_persister.h',
670         'http/transport_security_state.cc',
671         'http/transport_security_state.h',
672         'http/transport_security_state_static.h',
673         'http/url_security_manager.cc',
674         'http/url_security_manager.h',
675         'http/url_security_manager_posix.cc',
676         'http/url_security_manager_win.cc',
677         'ocsp/nss_ocsp.cc',
678         'ocsp/nss_ocsp.h',
679         'proxy/dhcp_proxy_script_adapter_fetcher_win.cc',
680         'proxy/dhcp_proxy_script_adapter_fetcher_win.h',
681         'proxy/dhcp_proxy_script_fetcher.cc',
682         'proxy/dhcp_proxy_script_fetcher.h',
683         'proxy/dhcp_proxy_script_fetcher_factory.cc',
684         'proxy/dhcp_proxy_script_fetcher_factory.h',
685         'proxy/dhcp_proxy_script_fetcher_win.cc',
686         'proxy/dhcp_proxy_script_fetcher_win.h',
687         'proxy/dhcpcsvc_init_win.cc',
688         'proxy/dhcpcsvc_init_win.h',
689         'proxy/multi_threaded_proxy_resolver.cc',
690         'proxy/multi_threaded_proxy_resolver.h',
691         'proxy/network_delegate_error_observer.cc',
692         'proxy/network_delegate_error_observer.h',
693         'proxy/polling_proxy_config_service.cc',
694         'proxy/polling_proxy_config_service.h',
695         'proxy/proxy_bypass_rules.cc',
696         'proxy/proxy_bypass_rules.h',
697         'proxy/proxy_config.cc',
698         'proxy/proxy_config.h',
699         'proxy/proxy_config_service.h',
700         'proxy/proxy_config_service_android.cc',
701         'proxy/proxy_config_service_android.h',
702         'proxy/proxy_config_service_fixed.cc',
703         'proxy/proxy_config_service_fixed.h',
704         'proxy/proxy_config_service_ios.cc',
705         'proxy/proxy_config_service_ios.h',
706         'proxy/proxy_config_service_linux.cc',
707         'proxy/proxy_config_service_linux.h',
708         'proxy/proxy_config_service_mac.cc',
709         'proxy/proxy_config_service_mac.h',
710         'proxy/proxy_config_service_win.cc',
711         'proxy/proxy_config_service_win.h',
712         'proxy/proxy_config_source.cc',
713         'proxy/proxy_config_source.h',
714         'proxy/proxy_info.cc',
715         'proxy/proxy_info.h',
716         'proxy/proxy_list.cc',
717         'proxy/proxy_list.h',
718         'proxy/proxy_resolver.h',
719         'proxy/proxy_resolver_error_observer.h',
720         'proxy/proxy_resolver_mac.cc',
721         'proxy/proxy_resolver_mac.h',
722         'proxy/proxy_resolver_script.h',
723         'proxy/proxy_resolver_script_data.cc',
724         'proxy/proxy_resolver_script_data.h',
725         'proxy/proxy_resolver_winhttp.cc',
726         'proxy/proxy_resolver_winhttp.h',
727         'proxy/proxy_retry_info.h',
728         'proxy/proxy_script_decider.cc',
729         'proxy/proxy_script_decider.h',
730         'proxy/proxy_script_fetcher.h',
731         'proxy/proxy_script_fetcher_impl.cc',
732         'proxy/proxy_script_fetcher_impl.h',
733         'proxy/proxy_server.cc',
734         'proxy/proxy_server.h',
735         'proxy/proxy_server_mac.cc',
736         'proxy/proxy_service.cc',
737         'proxy/proxy_service.h',
738         'quic/congestion_control/available_channel_estimator.cc',
739         'quic/congestion_control/available_channel_estimator.h',
740         'quic/congestion_control/channel_estimator.cc',
741         'quic/congestion_control/channel_estimator.h',
742         'quic/congestion_control/cube_root.cc',
743         'quic/congestion_control/cube_root.h',
744         'quic/congestion_control/cubic.cc',
745         'quic/congestion_control/cubic.h',
746         'quic/congestion_control/fix_rate_receiver.cc',
747         'quic/congestion_control/fix_rate_receiver.h',
748         'quic/congestion_control/fix_rate_sender.cc',
749         'quic/congestion_control/fix_rate_sender.h',
750         'quic/congestion_control/hybrid_slow_start.cc',
751         'quic/congestion_control/hybrid_slow_start.h',
752         'quic/congestion_control/inter_arrival_bitrate_ramp_up.cc',
753         'quic/congestion_control/inter_arrival_bitrate_ramp_up.h',
754         'quic/congestion_control/inter_arrival_overuse_detector.cc',
755         'quic/congestion_control/inter_arrival_overuse_detector.h',
756         'quic/congestion_control/inter_arrival_probe.cc',
757         'quic/congestion_control/inter_arrival_probe.h',
758         'quic/congestion_control/inter_arrival_receiver.cc',
759         'quic/congestion_control/inter_arrival_receiver.h',
760         'quic/congestion_control/inter_arrival_sender.cc',
761         'quic/congestion_control/inter_arrival_sender.h',
762         'quic/congestion_control/inter_arrival_state_machine.cc',
763         'quic/congestion_control/inter_arrival_state_machine.h',
764         'quic/congestion_control/leaky_bucket.cc',
765         'quic/congestion_control/leaky_bucket.h',
766         'quic/congestion_control/loss_detection_interface.cc',
767         'quic/congestion_control/loss_detection_interface.h',
768         'quic/congestion_control/paced_sender.cc',
769         'quic/congestion_control/paced_sender.h',
770         'quic/congestion_control/pacing_sender.cc',
771         'quic/congestion_control/pacing_sender.h',
772         'quic/congestion_control/quic_max_sized_map.h',
773         'quic/congestion_control/receive_algorithm_interface.cc',
774         'quic/congestion_control/receive_algorithm_interface.h',
775         'quic/congestion_control/rtt_stats.cc',
776         'quic/congestion_control/rtt_stats.h',
777         'quic/congestion_control/send_algorithm_interface.cc',
778         'quic/congestion_control/send_algorithm_interface.h',
779         'quic/congestion_control/tcp_cubic_sender.cc',
780         'quic/congestion_control/tcp_cubic_sender.h',
781         'quic/congestion_control/tcp_loss_algorithm.cc',
782         'quic/congestion_control/tcp_loss_algorithm.h',
783         'quic/congestion_control/tcp_receiver.cc',
784         'quic/congestion_control/tcp_receiver.h',
785         'quic/congestion_control/time_loss_algorithm.cc',
786         'quic/congestion_control/time_loss_algorithm.h',
787         'quic/crypto/aes_128_gcm_12_decrypter.h',
788         'quic/crypto/aes_128_gcm_12_decrypter_nss.cc',
789         'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc',
790         'quic/crypto/aes_128_gcm_12_encrypter.h',
791         'quic/crypto/aes_128_gcm_12_encrypter_nss.cc',
792         'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc',
793         'quic/crypto/cert_compressor.cc',
794         'quic/crypto/cert_compressor.h',
795         'quic/crypto/channel_id.cc',
796         'quic/crypto/channel_id.h',
797         'quic/crypto/channel_id_nss.cc',
798         'quic/crypto/channel_id_openssl.cc',
799         'quic/crypto/common_cert_set.cc',
800         'quic/crypto/common_cert_set.h',
801         'quic/crypto/crypto_framer.cc',
802         'quic/crypto/crypto_framer.h',
803         'quic/crypto/crypto_handshake.cc',
804         'quic/crypto/crypto_handshake.h',
805         'quic/crypto/crypto_handshake_message.cc',
806         'quic/crypto/crypto_handshake_message.h',
807         'quic/crypto/crypto_protocol.h',
808         'quic/crypto/crypto_secret_boxer.cc',
809         'quic/crypto/crypto_secret_boxer.h',
810         'quic/crypto/crypto_server_config_protobuf.cc',
811         'quic/crypto/crypto_server_config_protobuf.h',
812         'quic/crypto/crypto_utils.cc',
813         'quic/crypto/crypto_utils.h',
814         'quic/crypto/curve25519_key_exchange.cc',
815         'quic/crypto/curve25519_key_exchange.h',
816         'quic/crypto/ephemeral_key_source.h',
817         'quic/crypto/key_exchange.h',
818         'quic/crypto/local_strike_register_client.cc',
819         'quic/crypto/local_strike_register_client.h',
820         'quic/crypto/null_decrypter.cc',
821         'quic/crypto/null_decrypter.h',
822         'quic/crypto/null_encrypter.cc',
823         'quic/crypto/null_encrypter.h',
824         'quic/crypto/p256_key_exchange.h',
825         'quic/crypto/p256_key_exchange_nss.cc',
826         'quic/crypto/p256_key_exchange_openssl.cc',
827         'quic/crypto/proof_source.h',
828         'quic/crypto/proof_source_chromium.cc',
829         'quic/crypto/proof_source_chromium.h',
830         'quic/crypto/proof_verifier.cc',
831         'quic/crypto/proof_verifier_chromium.cc',
832         'quic/crypto/proof_verifier_chromium.h',
833         'quic/crypto/quic_crypto_client_config.cc',
834         'quic/crypto/quic_crypto_client_config.h',
835         'quic/crypto/quic_crypto_server_config.cc',
836         'quic/crypto/quic_crypto_server_config.h',
837         'quic/crypto/quic_decrypter.cc',
838         'quic/crypto/quic_decrypter.h',
839         'quic/crypto/quic_encrypter.cc',
840         'quic/crypto/quic_encrypter.h',
841         'quic/crypto/quic_random.cc',
842         'quic/crypto/quic_random.h',
843         'quic/crypto/quic_server_info.cc',
844         'quic/crypto/quic_server_info.h',
845         'quic/crypto/scoped_evp_aead_ctx.cc',
846         'quic/crypto/scoped_evp_aead_ctx.h',
847         'quic/crypto/strike_register.cc',
848         'quic/crypto/strike_register.h',
849         'quic/crypto/strike_register_client.h',
850         'quic/crypto/source_address_token.cc',
851         'quic/crypto/source_address_token.h',
852         'quic/iovector.cc',
853         'quic/iovector.h',
854         'quic/port_suggester.cc',
855         'quic/port_suggester.h',
856         'quic/quic_ack_notifier.cc',
857         'quic/quic_ack_notifier.h',
858         'quic/quic_ack_notifier_manager.cc',
859         'quic/quic_ack_notifier_manager.h',
860         'quic/quic_address_mismatch.cc',
861         'quic/quic_address_mismatch.h',
862         'quic/quic_alarm.cc',
863         'quic/quic_alarm.h',
864         'quic/quic_bandwidth.cc',
865         'quic/quic_bandwidth.h',
866         'quic/quic_blocked_writer_interface.h',
867         'quic/quic_client_session.cc',
868         'quic/quic_client_session.h',
869         'quic/quic_clock.cc',
870         'quic/quic_clock.h',
871         'quic/quic_config.cc',
872         'quic/quic_config.h',
873         'quic/quic_connection.cc',
874         'quic/quic_connection.h',
875         'quic/quic_connection_helper.cc',
876         'quic/quic_connection_helper.h',
877         'quic/quic_connection_logger.cc',
878         'quic/quic_connection_logger.h',
879         'quic/quic_connection_stats.cc',
880         'quic/quic_connection_stats.h',
881         'quic/quic_crypto_client_stream.cc',
882         'quic/quic_crypto_client_stream.h',
883         'quic/quic_crypto_client_stream_factory.h',
884         'quic/quic_crypto_server_stream.cc',
885         'quic/quic_crypto_server_stream.h',
886         'quic/quic_crypto_stream.cc',
887         'quic/quic_crypto_stream.h',
888         'quic/quic_data_reader.cc',
889         'quic/quic_data_reader.h',
890         'quic/quic_data_stream.cc',
891         'quic/quic_data_stream.h',
892         'quic/quic_data_writer.cc',
893         'quic/quic_data_writer.h',
894         'quic/quic_default_packet_writer.cc',
895         'quic/quic_default_packet_writer.h',
896         'quic/quic_fec_group.cc',
897         'quic/quic_fec_group.h',
898         'quic/quic_framer.cc',
899         'quic/quic_framer.h',
900         'quic/quic_headers_stream.cc',
901         'quic/quic_headers_stream.h',
902         'quic/quic_http_stream.cc',
903         'quic/quic_http_stream.h',
904         'quic/quic_http_utils.cc',
905         'quic/quic_http_utils.h',
906         'quic/quic_packet_creator.cc',
907         'quic/quic_packet_creator.h',
908         'quic/quic_packet_generator.cc',
909         'quic/quic_packet_generator.h',
910         'quic/quic_packet_writer.h',
911         'quic/quic_protocol.cc',
912         'quic/quic_protocol.h',
913         'quic/quic_received_packet_manager.cc',
914         'quic/quic_received_packet_manager.h',
915         'quic/quic_reliable_client_stream.cc',
916         'quic/quic_reliable_client_stream.h',
917         'quic/quic_sent_entropy_manager.cc',
918         'quic/quic_sent_entropy_manager.h',
919         'quic/quic_sent_packet_manager.cc',
920         'quic/quic_sent_packet_manager.h',
921         'quic/quic_session.cc',
922         'quic/quic_session.h',
923         'quic/quic_socket_address_coder.cc',
924         'quic/quic_socket_address_coder.h',
925         'quic/quic_stream_factory.cc',
926         'quic/quic_stream_factory.h',
927         'quic/quic_stream_sequencer.cc',
928         'quic/quic_stream_sequencer.h',
929         'quic/quic_time.cc',
930         'quic/quic_time.h',
931         'quic/quic_unacked_packet_map.cc',
932         'quic/quic_unacked_packet_map.h',
933         'quic/quic_utils.cc',
934         'quic/quic_utils.h',
935         'quic/quic_utils_chromium.h',
936         'quic/quic_write_blocked_list.cc',
937         'quic/quic_write_blocked_list.h',
938         'quic/reliable_quic_stream.cc',
939         'quic/reliable_quic_stream.h',
940         'quic/spdy_utils.cc',
941         'quic/spdy_utils.h',
942         'socket/buffered_write_stream_socket.cc',
943         'socket/buffered_write_stream_socket.h',
944         'socket/client_socket_factory.cc',
945         'socket/client_socket_factory.h',
946         'socket/client_socket_handle.cc',
947         'socket/client_socket_handle.h',
948         'socket/client_socket_pool.cc',
949         'socket/client_socket_pool.h',
950         'socket/client_socket_pool_base.cc',
951         'socket/client_socket_pool_base.h',
952         'socket/client_socket_pool_histograms.cc',
953         'socket/client_socket_pool_histograms.h',
954         'socket/client_socket_pool_manager.cc',
955         'socket/client_socket_pool_manager.h',
956         'socket/client_socket_pool_manager_impl.cc',
957         'socket/client_socket_pool_manager_impl.h',
958         'socket/next_proto.h',
959         'socket/nss_ssl_util.cc',
960         'socket/nss_ssl_util.h',
961         'socket/server_socket.h',
962         'socket/socket_descriptor.cc',
963         'socket/socket_descriptor.h',
964         'socket/socket_net_log_params.cc',
965         'socket/socket_net_log_params.h',
966         'socket/socket.h',
967         'socket/socks5_client_socket.cc',
968         'socket/socks5_client_socket.h',
969         'socket/socks_client_socket.cc',
970         'socket/socks_client_socket.h',
971         'socket/socks_client_socket_pool.cc',
972         'socket/socks_client_socket_pool.h',
973         'socket/ssl_client_socket.cc',
974         'socket/ssl_client_socket.h',
975         'socket/ssl_client_socket_nss.cc',
976         'socket/ssl_client_socket_nss.h',
977         'socket/ssl_client_socket_openssl.cc',
978         'socket/ssl_client_socket_openssl.h',
979         'socket/ssl_client_socket_pool.cc',
980         'socket/ssl_client_socket_pool.h',
981         'socket/ssl_error_params.cc',
982         'socket/ssl_error_params.h',
983         'socket/ssl_server_socket.h',
984         'socket/ssl_server_socket_nss.cc',
985         'socket/ssl_server_socket_nss.h',
986         'socket/ssl_server_socket_openssl.cc',
987         'socket/ssl_session_cache_openssl.cc',
988         'socket/ssl_session_cache_openssl.h',
989         'socket/ssl_socket.h',
990         'socket/stream_listen_socket.cc',
991         'socket/stream_listen_socket.h',
992         'socket/stream_socket.cc',
993         'socket/stream_socket.h',
994         'socket/tcp_client_socket.cc',
995         'socket/tcp_client_socket.h',
996         'socket/tcp_listen_socket.cc',
997         'socket/tcp_listen_socket.h',
998         'socket/tcp_server_socket.cc',
999         'socket/tcp_server_socket.h',
1000         'socket/tcp_socket.cc',
1001         'socket/tcp_socket.h',
1002         'socket/tcp_socket_libevent.cc',
1003         'socket/tcp_socket_libevent.h',
1004         'socket/tcp_socket_win.cc',
1005         'socket/tcp_socket_win.h',
1006         'socket/transport_client_socket_pool.cc',
1007         'socket/transport_client_socket_pool.h',
1008         'socket/unix_domain_socket_posix.cc',
1009         'socket/unix_domain_socket_posix.h',
1010         'socket_stream/socket_stream.cc',
1011         'socket_stream/socket_stream.h',
1012         'socket_stream/socket_stream_job.cc',
1013         'socket_stream/socket_stream_job.h',
1014         'socket_stream/socket_stream_job_manager.cc',
1015         'socket_stream/socket_stream_job_manager.h',
1016         'socket_stream/socket_stream_metrics.cc',
1017         'socket_stream/socket_stream_metrics.h',
1018         'spdy/buffered_spdy_framer.cc',
1019         'spdy/buffered_spdy_framer.h',
1020         'spdy/hpack_constants.cc',
1021         'spdy/hpack_constants.h',
1022         'spdy/hpack_decoder.cc',
1023         'spdy/hpack_decoder.h',
1024         'spdy/hpack_encoder.cc',
1025         'spdy/hpack_encoder.h',
1026         'spdy/hpack_encoding_context.cc',
1027         'spdy/hpack_encoding_context.h',
1028         'spdy/hpack_entry.cc',
1029         'spdy/hpack_entry.h',
1030         'spdy/hpack_header_table.cc',
1031         'spdy/hpack_header_table.h',
1032         'spdy/hpack_huffman_table.cc',
1033         'spdy/hpack_huffman_table.h',
1034         'spdy/hpack_input_stream.cc',
1035         'spdy/hpack_input_stream.h',
1036         'spdy/hpack_output_stream.cc',
1037         'spdy/hpack_output_stream.h',
1038         'spdy/hpack_string_util.cc',
1039         'spdy/hpack_string_util.h',
1040         'spdy/spdy_bitmasks.h',
1041         'spdy/spdy_buffer.cc',
1042         'spdy/spdy_buffer.h',
1043         'spdy/spdy_buffer_producer.cc',
1044         'spdy/spdy_buffer_producer.h',
1045         'spdy/spdy_frame_builder.cc',
1046         'spdy/spdy_frame_builder.h',
1047         'spdy/spdy_frame_reader.cc',
1048         'spdy/spdy_frame_reader.h',
1049         'spdy/spdy_framer.cc',
1050         'spdy/spdy_framer.h',
1051         'spdy/spdy_header_block.cc',
1052         'spdy/spdy_header_block.h',
1053         'spdy/spdy_headers_block_parser.cc',
1054         'spdy/spdy_headers_block_parser.h',
1055         'spdy/spdy_http_stream.cc',
1056         'spdy/spdy_http_stream.h',
1057         'spdy/spdy_http_utils.cc',
1058         'spdy/spdy_http_utils.h',
1059         'spdy/spdy_pinnable_buffer_piece.cc',
1060         'spdy/spdy_pinnable_buffer_piece.h',
1061         'spdy/spdy_prefixed_buffer_reader.cc',
1062         'spdy/spdy_prefixed_buffer_reader.h',
1063         'spdy/spdy_priority_forest.h',
1064         'spdy/spdy_protocol.cc',
1065         'spdy/spdy_protocol.h',
1066         'spdy/spdy_proxy_client_socket.cc',
1067         'spdy/spdy_proxy_client_socket.h',
1068         'spdy/spdy_read_queue.cc',
1069         'spdy/spdy_read_queue.h',
1070         'spdy/spdy_session.cc',
1071         'spdy/spdy_session.h',
1072         'spdy/spdy_session_key.cc',
1073         'spdy/spdy_session_key.h',
1074         'spdy/spdy_session_pool.cc',
1075         'spdy/spdy_session_pool.h',
1076         'spdy/spdy_stream.cc',
1077         'spdy/spdy_stream.h',
1078         'spdy/spdy_websocket_stream.cc',
1079         'spdy/spdy_websocket_stream.h',
1080         'spdy/spdy_write_queue.cc',
1081         'spdy/spdy_write_queue.h',
1082         'spdy/write_blocked_list.h',
1083         'ssl/client_cert_store.h',
1084         'ssl/client_cert_store_chromeos.cc',
1085         'ssl/client_cert_store_chromeos.h',
1086         'ssl/client_cert_store_mac.cc',
1087         'ssl/client_cert_store_mac.h',
1088         'ssl/client_cert_store_nss.cc',
1089         'ssl/client_cert_store_nss.h',
1090         'ssl/client_cert_store_win.cc',
1091         'ssl/client_cert_store_win.h',
1092         'ssl/default_server_bound_cert_store.cc',
1093         'ssl/default_server_bound_cert_store.h',
1094         'ssl/openssl_client_key_store.cc',
1095         'ssl/openssl_client_key_store.h',
1096         'ssl/server_bound_cert_service.cc',
1097         'ssl/server_bound_cert_service.h',
1098         'ssl/server_bound_cert_store.cc',
1099         'ssl/server_bound_cert_store.h',
1100         'ssl/signed_certificate_timestamp_and_status.cc',
1101         'ssl/signed_certificate_timestamp_and_status.h',
1102         'ssl/ssl_cert_request_info.cc',
1103         'ssl/ssl_cert_request_info.h',
1104         'ssl/ssl_cipher_suite_names.cc',
1105         'ssl/ssl_cipher_suite_names.h',
1106         'ssl/ssl_client_auth_cache.cc',
1107         'ssl/ssl_client_auth_cache.h',
1108         'ssl/ssl_client_cert_type.h',
1109         'ssl/ssl_config_service.cc',
1110         'ssl/ssl_config_service.h',
1111         'ssl/ssl_config_service_defaults.cc',
1112         'ssl/ssl_config_service_defaults.h',
1113         'ssl/ssl_info.cc',
1114         'ssl/ssl_info.h',
1115         'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1116         'third_party/mozilla_security_manager/nsKeygenHandler.h',
1117         'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1118         'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1119         'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1120         'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1121         'udp/datagram_client_socket.h',
1122         'udp/datagram_server_socket.h',
1123         'udp/datagram_socket.h',
1124         'udp/udp_client_socket.cc',
1125         'udp/udp_client_socket.h',
1126         'udp/udp_net_log_parameters.cc',
1127         'udp/udp_net_log_parameters.h',
1128         'udp/udp_server_socket.cc',
1129         'udp/udp_server_socket.h',
1130         'udp/udp_socket.h',
1131         'udp/udp_socket_libevent.cc',
1132         'udp/udp_socket_libevent.h',
1133         'udp/udp_socket_win.cc',
1134         'udp/udp_socket_win.h',
1135         'url_request/data_protocol_handler.cc',
1136         'url_request/data_protocol_handler.h',
1137         'url_request/file_protocol_handler.cc',
1138         'url_request/file_protocol_handler.h',
1139         'url_request/fraudulent_certificate_reporter.h',
1140         'url_request/ftp_protocol_handler.cc',
1141         'url_request/ftp_protocol_handler.h',
1142         'url_request/http_user_agent_settings.h',
1143         'url_request/protocol_intercept_job_factory.cc',
1144         'url_request/protocol_intercept_job_factory.h',
1145         'url_request/static_http_user_agent_settings.cc',
1146         'url_request/static_http_user_agent_settings.h',
1147         'url_request/url_fetcher.cc',
1148         'url_request/url_fetcher.h',
1149         'url_request/url_fetcher_core.cc',
1150         'url_request/url_fetcher_core.h',
1151         'url_request/url_fetcher_delegate.cc',
1152         'url_request/url_fetcher_delegate.h',
1153         'url_request/url_fetcher_factory.h',
1154         'url_request/url_fetcher_impl.cc',
1155         'url_request/url_fetcher_impl.h',
1156         'url_request/url_fetcher_response_writer.cc',
1157         'url_request/url_fetcher_response_writer.h',
1158         'url_request/url_range_request_job.cc',
1159         'url_request/url_range_request_job.h',
1160         'url_request/url_request.cc',
1161         'url_request/url_request.h',
1162         'url_request/url_request_about_job.cc',
1163         'url_request/url_request_about_job.h',
1164         'url_request/url_request_context.cc',
1165         'url_request/url_request_context.h',
1166         'url_request/url_request_context_builder.cc',
1167         'url_request/url_request_context_builder.h',
1168         'url_request/url_request_context_getter.cc',
1169         'url_request/url_request_context_getter.h',
1170         'url_request/url_request_context_storage.cc',
1171         'url_request/url_request_context_storage.h',
1172         'url_request/url_request_data_job.cc',
1173         'url_request/url_request_data_job.h',
1174         'url_request/url_request_error_job.cc',
1175         'url_request/url_request_error_job.h',
1176         'url_request/url_request_file_dir_job.cc',
1177         'url_request/url_request_file_dir_job.h',
1178         'url_request/url_request_file_job.cc',
1179         'url_request/url_request_file_job.h',
1180         'url_request/url_request_filter.cc',
1181         'url_request/url_request_filter.h',
1182         'url_request/url_request_ftp_job.cc',
1183         'url_request/url_request_ftp_job.h',
1184         'url_request/url_request_http_job.cc',
1185         'url_request/url_request_http_job.h',
1186         'url_request/url_request_job.cc',
1187         'url_request/url_request_job.h',
1188         'url_request/url_request_job_factory.cc',
1189         'url_request/url_request_job_factory.h',
1190         'url_request/url_request_job_factory_impl.cc',
1191         'url_request/url_request_job_factory_impl.h',
1192         'url_request/url_request_job_manager.cc',
1193         'url_request/url_request_job_manager.h',
1194         'url_request/url_request_netlog_params.cc',
1195         'url_request/url_request_netlog_params.h',
1196         'url_request/url_request_redirect_job.cc',
1197         'url_request/url_request_redirect_job.h',
1198         'url_request/url_request_simple_job.cc',
1199         'url_request/url_request_simple_job.h',
1200         'url_request/url_request_status.h',
1201         'url_request/url_request_test_job.cc',
1202         'url_request/url_request_test_job.h',
1203         'url_request/url_request_throttler_entry.cc',
1204         'url_request/url_request_throttler_entry.h',
1205         'url_request/url_request_throttler_entry_interface.h',
1206         'url_request/url_request_throttler_header_adapter.cc',
1207         'url_request/url_request_throttler_header_adapter.h',
1208         'url_request/url_request_throttler_header_interface.h',
1209         'url_request/url_request_throttler_manager.cc',
1210         'url_request/url_request_throttler_manager.h',
1211         'url_request/view_cache_helper.cc',
1212         'url_request/view_cache_helper.h',
1213         'url_request/websocket_handshake_userdata_key.cc',
1214         'url_request/websocket_handshake_userdata_key.h',
1215         'websockets/websocket_basic_handshake_stream.cc',
1216         'websockets/websocket_basic_handshake_stream.h',
1217         'websockets/websocket_basic_stream.cc',
1218         'websockets/websocket_basic_stream.h',
1219         'websockets/websocket_channel.cc',
1220         'websockets/websocket_channel.h',
1221         'websockets/websocket_deflate_predictor.h',
1222         'websockets/websocket_deflate_predictor_impl.cc',
1223         'websockets/websocket_deflate_predictor_impl.h',
1224         'websockets/websocket_deflate_stream.cc',
1225         'websockets/websocket_deflate_stream.h',
1226         'websockets/websocket_deflater.cc',
1227         'websockets/websocket_deflater.h',
1228         'websockets/websocket_errors.cc',
1229         'websockets/websocket_errors.h',
1230         'websockets/websocket_extension.cc',
1231         'websockets/websocket_extension.h',
1232         'websockets/websocket_extension_parser.cc',
1233         'websockets/websocket_extension_parser.h',
1234         'websockets/websocket_frame.cc',
1235         'websockets/websocket_frame.h',
1236         'websockets/websocket_frame_parser.cc',
1237         'websockets/websocket_frame_parser.h',
1238         'websockets/websocket_handshake_constants.cc',
1239         'websockets/websocket_handshake_constants.h',
1240         'websockets/websocket_handshake_handler.cc',
1241         'websockets/websocket_handshake_handler.h',
1242         'websockets/websocket_handshake_request_info.cc',
1243         'websockets/websocket_handshake_request_info.h',
1244         'websockets/websocket_handshake_response_info.cc',
1245         'websockets/websocket_handshake_response_info.h',
1246         'websockets/websocket_handshake_stream_base.h',
1247         'websockets/websocket_handshake_stream_create_helper.cc',
1248         'websockets/websocket_handshake_stream_create_helper.h',
1249         'websockets/websocket_inflater.cc',
1250         'websockets/websocket_inflater.h',
1251         'websockets/websocket_job.cc',
1252         'websockets/websocket_job.h',
1253         'websockets/websocket_mux.h',
1254         'websockets/websocket_net_log_params.cc',
1255         'websockets/websocket_net_log_params.h',
1256         'websockets/websocket_stream.cc',
1257         'websockets/websocket_stream.h',
1258         'websockets/websocket_throttle.cc',
1259         'websockets/websocket_throttle.h',
1260       ],
1261       'defines': [
1262         'NET_IMPLEMENTATION',
1263       ],
1264       'export_dependent_settings': [
1265         '../base/base.gyp:base',
1266       ],
1267       'conditions': [
1268         ['chromeos==1', {
1269           'sources!': [
1270              'base/network_change_notifier_linux.cc',
1271              'base/network_change_notifier_linux.h',
1272              'base/network_change_notifier_netlink_linux.cc',
1273              'base/network_change_notifier_netlink_linux.h',
1274              'proxy/proxy_config_service_linux.cc',
1275              'proxy/proxy_config_service_linux.h',
1276           ],
1277         }],
1278         ['use_kerberos==1', {
1279           'defines': [
1280             'USE_KERBEROS',
1281           ],
1282           'conditions': [
1283             ['OS=="openbsd"', {
1284               'include_dirs': [
1285                 '/usr/include/kerberosV'
1286               ],
1287             }],
1288             ['linux_link_kerberos==1', {
1289               'link_settings': {
1290                 'ldflags': [
1291                   '<!@(krb5-config --libs gssapi)',
1292                 ],
1293               },
1294             }, { # linux_link_kerberos==0
1295               'defines': [
1296                 'DLOPEN_KERBEROS',
1297               ],
1298             }],
1299           ],
1300         }, { # use_kerberos == 0
1301           'sources!': [
1302             'http/http_auth_gssapi_posix.cc',
1303             'http/http_auth_gssapi_posix.h',
1304             'http/http_auth_handler_negotiate.h',
1305             'http/http_auth_handler_negotiate.cc',
1306           ],
1307         }],
1308         ['posix_avoid_mmap==1', {
1309           'defines': [
1310             'POSIX_AVOID_MMAP',
1311           ],
1312           'direct_dependent_settings': {
1313             'defines': [
1314               'POSIX_AVOID_MMAP',
1315             ],
1316           },
1317           'sources!': [
1318             'disk_cache/blockfile/mapped_file_posix.cc',
1319           ],
1320         }, { # else
1321           'sources!': [
1322             'disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc',
1323           ],
1324         }],
1325         ['disable_ftp_support==1', {
1326           'sources/': [
1327             ['exclude', '^ftp/'],
1328           ],
1329           'sources!': [
1330             'url_request/ftp_protocol_handler.cc',
1331             'url_request/ftp_protocol_handler.h',
1332             'url_request/url_request_ftp_job.cc',
1333             'url_request/url_request_ftp_job.h',
1334           ],
1335         }],
1336         ['enable_built_in_dns==1', {
1337           'defines': [
1338             'ENABLE_BUILT_IN_DNS',
1339           ]
1340         }, { # else
1341           'sources!': [
1342             'dns/address_sorter_posix.cc',
1343             'dns/address_sorter_posix.h',
1344             'dns/dns_client.cc',
1345           ],
1346         }],
1347         ['use_tracing_cache_backend==1', {
1348           'defines': [
1349             'USE_TRACING_CACHE_BACKEND'
1350           ],
1351          }],
1352         ['use_openssl==1', {
1353             'sources!': [
1354               'base/crypto_module_nss.cc',
1355               'base/keygen_handler_nss.cc',
1356               'base/nss_memio.c',
1357               'base/nss_memio.h',
1358               'cert/cert_database_nss.cc',
1359               'cert/cert_verify_proc_nss.cc',
1360               'cert/cert_verify_proc_nss.h',
1361               'cert/ct_log_verifier_nss.cc',
1362               'cert/ct_objects_extractor_nss.cc',
1363               'cert/jwk_serializer_nss.cc',
1364               'cert/nss_cert_database.cc',
1365               'cert/nss_cert_database.h',
1366               'cert/scoped_nss_types.h',
1367               'cert/test_root_certs_nss.cc',
1368               'cert/x509_certificate_nss.cc',
1369               'cert/x509_util_nss.cc',
1370               'cert/x509_util_nss.h',
1371               'ocsp/nss_ocsp.cc',
1372               'ocsp/nss_ocsp.h',
1373               'quic/crypto/aes_128_gcm_12_decrypter_nss.cc',
1374               'quic/crypto/aes_128_gcm_12_encrypter_nss.cc',
1375               'quic/crypto/channel_id_nss.cc',
1376               'quic/crypto/p256_key_exchange_nss.cc',
1377               'socket/nss_ssl_util.cc',
1378               'socket/nss_ssl_util.h',
1379               'socket/ssl_client_socket_nss.cc',
1380               'socket/ssl_client_socket_nss.h',
1381               'socket/ssl_server_socket_nss.cc',
1382               'socket/ssl_server_socket_nss.h',
1383               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1384               'third_party/mozilla_security_manager/nsKeygenHandler.h',
1385               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1386               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1387               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1388               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1389             ],
1390           },
1391           {  # else !use_openssl: remove the unneeded files
1392             'sources!': [
1393               'base/crypto_module_openssl.cc',
1394               'base/keygen_handler_openssl.cc',
1395               'base/openssl_private_key_store.h',
1396               'base/openssl_private_key_store_android.cc',
1397               'base/openssl_private_key_store_memory.cc',
1398               'cert/cert_database_openssl.cc',
1399               'cert/cert_verify_proc_openssl.cc',
1400               'cert/cert_verify_proc_openssl.h',
1401               'cert/ct_log_verifier_openssl.cc',
1402               'cert/ct_objects_extractor_openssl.cc',
1403               'cert/jwk_serializer_openssl.cc',
1404               'cert/test_root_certs_openssl.cc',
1405               'cert/x509_certificate_openssl.cc',
1406               'cert/x509_util_openssl.cc',
1407               'cert/x509_util_openssl.h',
1408               'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc',
1409               'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc',
1410               'quic/crypto/channel_id_openssl.cc',
1411               'quic/crypto/p256_key_exchange_openssl.cc',
1412               'quic/crypto/scoped_evp_aead_ctx.cc',
1413               'quic/crypto/scoped_evp_aead_ctx.h',
1414               'socket/ssl_client_socket_openssl.cc',
1415               'socket/ssl_client_socket_openssl.h',
1416               'socket/ssl_server_socket_openssl.cc',
1417               'socket/ssl_session_cache_openssl.cc',
1418               'socket/ssl_session_cache_openssl.h',
1419               'ssl/openssl_client_key_store.cc',
1420               'ssl/openssl_client_key_store.h',
1421             ],
1422           },
1423         ],
1424         [ 'use_glib == 1', {
1425             'dependencies': [
1426               '../build/linux/system.gyp:gconf',
1427               '../build/linux/system.gyp:gio',
1428             ],
1429         }],
1430         [ 'desktop_linux == 1 or chromeos == 1', {
1431             'conditions': [
1432               ['use_openssl==1', {
1433                 'dependencies': [
1434                   '../third_party/openssl/openssl.gyp:openssl',
1435                 ],
1436               },
1437               {  # else use_openssl==0, use NSS
1438                 'dependencies': [
1439                   '../build/linux/system.gyp:ssl',
1440                 ],
1441               }],
1442               ['os_bsd==1', {
1443                 'sources!': [
1444                   'base/network_change_notifier_linux.cc',
1445                   'base/network_change_notifier_netlink_linux.cc',
1446                   'proxy/proxy_config_service_linux.cc',
1447                 ],
1448               },{
1449                 'dependencies': [
1450                   '../build/linux/system.gyp:libresolv',
1451                 ],
1452               }],
1453               ['OS=="solaris"', {
1454                 'link_settings': {
1455                   'ldflags': [
1456                     '-R/usr/lib/mps',
1457                   ],
1458                 },
1459               }],
1460             ],
1461           },
1462           {  # else: OS is not in the above list
1463             'sources!': [
1464               'base/crypto_module_nss.cc',
1465               'base/keygen_handler_nss.cc',
1466               'cert/cert_database_nss.cc',
1467               'cert/nss_cert_database.cc',
1468               'cert/nss_cert_database.h',
1469               'cert/test_root_certs_nss.cc',
1470               'cert/x509_certificate_nss.cc',
1471               'ocsp/nss_ocsp.cc',
1472               'ocsp/nss_ocsp.h',
1473               'third_party/mozilla_security_manager/nsKeygenHandler.cpp',
1474               'third_party/mozilla_security_manager/nsKeygenHandler.h',
1475               'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp',
1476               'third_party/mozilla_security_manager/nsNSSCertificateDB.h',
1477               'third_party/mozilla_security_manager/nsPKCS12Blob.cpp',
1478               'third_party/mozilla_security_manager/nsPKCS12Blob.h',
1479             ],
1480           },
1481         ],
1482         [ 'toolkit_uses_gtk == 1', {
1483           'dependencies': [
1484             '../build/linux/system.gyp:gdk',
1485           ],
1486         }],
1487         [ 'use_nss != 1', {
1488             'sources!': [
1489               'cert/cert_verify_proc_nss.cc',
1490               'cert/cert_verify_proc_nss.h',
1491               'ssl/client_cert_store_nss.cc',
1492               'ssl/client_cert_store_nss.h',
1493             ],
1494         }],
1495         [ 'enable_websockets != 1', {
1496             'sources/': [
1497               ['exclude', '^socket_stream/'],
1498               ['exclude', '^websockets/'],
1499             ],
1500             'sources!': [
1501               'spdy/spdy_websocket_stream.cc',
1502               'spdy/spdy_websocket_stream.h',
1503             ],
1504         }],
1505         [ 'enable_mdns != 1', {
1506             'sources!' : [
1507               'dns/mdns_cache.cc',
1508               'dns/mdns_cache.h',
1509               'dns/mdns_client.cc',
1510               'dns/mdns_client.h',
1511               'dns/mdns_client_impl.cc',
1512               'dns/mdns_client_impl.h',
1513               'dns/record_parsed.cc',
1514               'dns/record_parsed.h',
1515               'dns/record_rdata.cc',
1516               'dns/record_rdata.h',
1517             ]
1518         }],
1519         [ 'OS == "win"', {
1520             'sources!': [
1521               'http/http_auth_handler_ntlm_portable.cc',
1522               'socket/tcp_socket_libevent.cc',
1523               'socket/tcp_socket_libevent.h',
1524               'udp/udp_socket_libevent.cc',
1525               'udp/udp_socket_libevent.h',
1526             ],
1527             'dependencies': [
1528               '../third_party/nss/nss.gyp:nspr',
1529               '../third_party/nss/nss.gyp:nss',
1530               'third_party/nss/ssl.gyp:libssl',
1531             ],
1532             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1533             'msvs_disabled_warnings': [4267, ],
1534           }, { # else: OS != "win"
1535             'sources!': [
1536               'base/winsock_init.cc',
1537               'base/winsock_init.h',
1538               'base/winsock_util.cc',
1539               'base/winsock_util.h',
1540               'proxy/proxy_resolver_winhttp.cc',
1541               'proxy/proxy_resolver_winhttp.h',
1542             ],
1543           },
1544         ],
1545         [ 'OS == "mac"', {
1546             'dependencies': [
1547               '../third_party/nss/nss.gyp:nspr',
1548               '../third_party/nss/nss.gyp:nss',
1549               'third_party/nss/ssl.gyp:libssl',
1550             ],
1551             'link_settings': {
1552               'libraries': [
1553                 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
1554                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
1555                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
1556                 '$(SDKROOT)/usr/lib/libresolv.dylib',
1557               ]
1558             },
1559           },
1560         ],
1561         [ 'OS == "ios"', {
1562             'dependencies': [
1563               '../third_party/nss/nss.gyp:nss',
1564               'third_party/nss/ssl.gyp:libssl',
1565             ],
1566             'sources!': [
1567               'disk_cache/file_posix.cc',
1568             ],
1569             'link_settings': {
1570               'libraries': [
1571                 '$(SDKROOT)/System/Library/Frameworks/CFNetwork.framework',
1572                 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework',
1573                 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
1574                 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framework',
1575                 '$(SDKROOT)/usr/lib/libresolv.dylib',
1576               ],
1577             },
1578           },
1579         ],
1580         ['OS=="android" and _toolset=="target" and android_webview_build == 0', {
1581           'dependencies': [
1582              'net_java',
1583           ],
1584         }],
1585         [ 'OS == "android"', {
1586             'dependencies': [
1587               '../third_party/openssl/openssl.gyp:openssl',
1588               'net_jni_headers',
1589             ],
1590             'sources!': [
1591               'base/openssl_private_key_store_memory.cc',
1592               'cert/cert_database_openssl.cc',
1593               'cert/cert_verify_proc_openssl.cc',
1594               'cert/test_root_certs_openssl.cc',
1595             ],
1596             # The net/android/keystore_openssl.cc source file needs to
1597             # access an OpenSSL-internal header.
1598             'include_dirs': [
1599               '../third_party/openssl',
1600             ],
1601           },
1602         ],
1603       ],
1604       'target_conditions': [
1605         # These source files are excluded by default platform rules, but they
1606         # are needed in specific cases on other platforms. Re-including them can
1607         # only be done in target_conditions as it is evaluated after the
1608         # platform rules.
1609         ['OS == "android"', {
1610           'sources/': [
1611             ['include', '^base/platform_mime_util_linux\\.cc$'],
1612             ['include', '^base/address_tracker_linux\\.cc$'],
1613             ['include', '^base/address_tracker_linux\\.h$'],
1614           ],
1615         }],
1616         ['OS == "ios"', {
1617           'sources/': [
1618             ['include', '^base/network_change_notifier_mac\\.cc$'],
1619             ['include', '^base/network_config_watcher_mac\\.cc$'],
1620             ['include', '^base/platform_mime_util_mac\\.mm$'],
1621             # The iOS implementation only partially uses NSS and thus does not
1622             # defines |use_nss|. In particular the |USE_NSS| preprocessor
1623             # definition is not used. The following files are needed though:
1624             ['include', '^cert/cert_verify_proc_nss\\.cc$'],
1625             ['include', '^cert/cert_verify_proc_nss\\.h$'],
1626             ['include', '^cert/test_root_certs_nss\\.cc$'],
1627             ['include', '^cert/x509_util_nss\\.cc$'],
1628             ['include', '^cert/x509_util_nss\\.h$'],
1629             ['include', '^proxy/proxy_resolver_mac\\.cc$'],
1630             ['include', '^proxy/proxy_server_mac\\.cc$'],
1631             ['include', '^ocsp/nss_ocsp\\.cc$'],
1632             ['include', '^ocsp/nss_ocsp\\.h$'],
1633           ],
1634         }],
1635       ],
1636     },
1637     {
1638       'target_name': 'net_unittests',
1639       'type': '<(gtest_target_type)',
1640       'dependencies': [
1641         '../base/base.gyp:base',
1642         '../base/base.gyp:base_i18n',
1643         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1644         '../crypto/crypto.gyp:crypto',
1645         '../testing/gmock.gyp:gmock',
1646         '../testing/gtest.gyp:gtest',
1647         '../third_party/zlib/zlib.gyp:zlib',
1648         '../url/url.gyp:url_lib',
1649         'http_server',
1650         'net',
1651         'net_test_support'
1652       ],
1653       'sources': [
1654         'android/keystore_unittest.cc',
1655         'android/network_change_notifier_android_unittest.cc',
1656         'base/address_list_unittest.cc',
1657         'base/address_tracker_linux_unittest.cc',
1658         'base/backoff_entry_unittest.cc',
1659         'base/data_url_unittest.cc',
1660         'base/directory_lister_unittest.cc',
1661         'base/dns_util_unittest.cc',
1662         'base/escape_unittest.cc',
1663         'base/expiring_cache_unittest.cc',
1664         'base/file_stream_unittest.cc',
1665         'base/int128_unittest.cc',
1666         'base/host_mapping_rules_unittest.cc',
1667         'base/host_port_pair_unittest.cc',
1668         'base/ip_endpoint_unittest.cc',
1669         'base/ip_mapping_rules_unittest.cc',
1670         'base/ip_pattern_unittest.cc',
1671         'base/keygen_handler_unittest.cc',
1672         'base/mime_sniffer_unittest.cc',
1673         'base/mime_util_unittest.cc',
1674         'base/net_log_logger_unittest.cc',
1675         'base/net_log_unittest.cc',
1676         'base/net_log_unittest.h',
1677         'base/net_util_unittest.cc',
1678         'base/network_change_notifier_win_unittest.cc',
1679         'base/prioritized_dispatcher_unittest.cc',
1680         'base/priority_queue_unittest.cc',
1681         'base/registry_controlled_domains/registry_controlled_domain_unittest.cc',
1682         'base/sdch_manager_unittest.cc',
1683         'base/static_cookie_policy_unittest.cc',
1684         'base/test_completion_callback_unittest.cc',
1685         'base/upload_bytes_element_reader_unittest.cc',
1686         'base/upload_data_stream_unittest.cc',
1687         'base/upload_file_element_reader_unittest.cc',
1688         'base/url_util_unittest.cc',
1689         'cert/cert_verify_proc_unittest.cc',
1690         'cert/crl_set_unittest.cc',
1691         'cert/ct_log_verifier_unittest.cc',
1692         'cert/ct_objects_extractor_unittest.cc',
1693         'cert/ct_serialization_unittest.cc',
1694         'cert/ev_root_ca_metadata_unittest.cc',
1695         'cert/jwk_serializer_unittest.cc',
1696         'cert/multi_log_ct_verifier_unittest.cc',
1697         'cert/multi_threaded_cert_verifier_unittest.cc',
1698         'cert/nss_cert_database_unittest.cc',
1699         'cert/nss_cert_database_chromeos_unittest.cc',
1700         'cert/nss_profile_filter_chromeos_unittest.cc',
1701         'cert/pem_tokenizer_unittest.cc',
1702         'cert/signed_certificate_timestamp_unittest.cc',
1703         'cert/test_root_certs_unittest.cc',
1704         'cert/x509_certificate_unittest.cc',
1705         'cert/x509_cert_types_unittest.cc',
1706         'cert/x509_util_unittest.cc',
1707         'cert/x509_util_nss_unittest.cc',
1708         'cert/x509_util_openssl_unittest.cc',
1709         'cookies/canonical_cookie_unittest.cc',
1710         'cookies/cookie_constants_unittest.cc',
1711         'cookies/cookie_monster_unittest.cc',
1712         'cookies/cookie_store_unittest.h',
1713         'cookies/cookie_util_unittest.cc',
1714         'cookies/parsed_cookie_unittest.cc',
1715         'disk_cache/backend_unittest.cc',
1716         'disk_cache/blockfile/addr_unittest.cc',
1717         'disk_cache/blockfile/bitmap_unittest.cc',
1718         'disk_cache/blockfile/block_bitmaps_v3_unittest.cc',
1719         'disk_cache/blockfile/block_bitmaps_v3_unittest.cc',
1720         'disk_cache/blockfile/block_files_unittest.cc',
1721         'disk_cache/blockfile/index_table_v3_unittest.cc',
1722         'disk_cache/blockfile/mapped_file_unittest.cc',
1723         'disk_cache/blockfile/storage_block_unittest.cc',
1724         'disk_cache/cache_util_unittest.cc',
1725         'disk_cache/entry_unittest.cc',
1726         'disk_cache/simple/simple_index_file_unittest.cc',
1727         'disk_cache/simple/simple_index_unittest.cc',
1728         'disk_cache/simple/simple_test_util.cc',
1729         'disk_cache/simple/simple_test_util.h',
1730         'disk_cache/simple/simple_util_unittest.cc',
1731         'disk_cache/simple/simple_version_upgrade_unittest.cc',
1732         'dns/address_sorter_posix_unittest.cc',
1733         'dns/address_sorter_unittest.cc',
1734         'dns/dns_config_service_posix_unittest.cc',
1735         'dns/dns_config_service_unittest.cc',
1736         'dns/dns_config_service_win_unittest.cc',
1737         'dns/dns_hosts_unittest.cc',
1738         'dns/dns_query_unittest.cc',
1739         'dns/dns_response_unittest.cc',
1740         'dns/dns_session_unittest.cc',
1741         'dns/dns_transaction_unittest.cc',
1742         'dns/host_cache_unittest.cc',
1743         'dns/host_resolver_impl_unittest.cc',
1744         'dns/mapped_host_resolver_unittest.cc',
1745         'dns/mdns_cache_unittest.cc',
1746         'dns/mdns_client_unittest.cc',
1747         'dns/serial_worker_unittest.cc',
1748         'dns/record_parsed_unittest.cc',
1749         'dns/record_rdata_unittest.cc',
1750         'dns/single_request_host_resolver_unittest.cc',
1751         'filter/filter_unittest.cc',
1752         'filter/gzip_filter_unittest.cc',
1753         'filter/mock_filter_context.cc',
1754         'filter/mock_filter_context.h',
1755         'filter/sdch_filter_unittest.cc',
1756         'ftp/ftp_auth_cache_unittest.cc',
1757         'ftp/ftp_ctrl_response_buffer_unittest.cc',
1758         'ftp/ftp_directory_listing_parser_ls_unittest.cc',
1759         'ftp/ftp_directory_listing_parser_netware_unittest.cc',
1760         'ftp/ftp_directory_listing_parser_os2_unittest.cc',
1761         'ftp/ftp_directory_listing_parser_unittest.cc',
1762         'ftp/ftp_directory_listing_parser_unittest.h',
1763         'ftp/ftp_directory_listing_parser_vms_unittest.cc',
1764         'ftp/ftp_directory_listing_parser_windows_unittest.cc',
1765         'ftp/ftp_network_transaction_unittest.cc',
1766         'ftp/ftp_util_unittest.cc',
1767         'http/des_unittest.cc',
1768         'http/disk_cache_based_quic_server_info_unittest.cc',
1769         'http/http_auth_cache_unittest.cc',
1770         'http/http_auth_controller_unittest.cc',
1771         'http/http_auth_filter_unittest.cc',
1772         'http/http_auth_gssapi_posix_unittest.cc',
1773         'http/http_auth_handler_basic_unittest.cc',
1774         'http/http_auth_handler_digest_unittest.cc',
1775         'http/http_auth_handler_factory_unittest.cc',
1776         'http/http_auth_handler_mock.cc',
1777         'http/http_auth_handler_mock.h',
1778         'http/http_auth_handler_negotiate_unittest.cc',
1779         'http/http_auth_handler_unittest.cc',
1780         'http/http_auth_sspi_win_unittest.cc',
1781         'http/http_auth_unittest.cc',
1782         'http/http_basic_state_unittest.cc',
1783         'http/http_byte_range_unittest.cc',
1784         'http/http_cache_unittest.cc',
1785         'http/http_chunked_decoder_unittest.cc',
1786         'http/http_content_disposition_unittest.cc',
1787         'http/http_network_layer_unittest.cc',
1788         'http/http_network_transaction_ssl_unittest.cc',
1789         'http/http_network_transaction_unittest.cc',
1790         'http/http_pipelined_connection_impl_unittest.cc',
1791         'http/http_pipelined_host_forced_unittest.cc',
1792         'http/http_pipelined_host_impl_unittest.cc',
1793         'http/http_pipelined_host_pool_unittest.cc',
1794         'http/http_pipelined_host_test_util.cc',
1795         'http/http_pipelined_host_test_util.h',
1796         'http/http_pipelined_network_transaction_unittest.cc',
1797         'http/http_proxy_client_socket_pool_unittest.cc',
1798         'http/http_request_headers_unittest.cc',
1799         'http/http_response_body_drainer_unittest.cc',
1800         'http/http_response_headers_unittest.cc',
1801         'http/http_security_headers_unittest.cc',
1802         'http/http_server_properties_impl_unittest.cc',
1803         'http/http_status_code_unittest.cc',
1804         'http/http_stream_factory_impl_request_unittest.cc',
1805         'http/http_stream_factory_impl_unittest.cc',
1806         'http/http_stream_parser_unittest.cc',
1807         'http/http_transaction_unittest.cc',
1808         'http/http_transaction_unittest.h',
1809         'http/http_util_unittest.cc',
1810         'http/http_vary_data_unittest.cc',
1811         'http/mock_allow_url_security_manager.cc',
1812         'http/mock_allow_url_security_manager.h',
1813         'http/mock_gssapi_library_posix.cc',
1814         'http/mock_gssapi_library_posix.h',
1815         'http/mock_http_cache.cc',
1816         'http/mock_http_cache.h',
1817         'http/mock_sspi_library_win.cc',
1818         'http/mock_sspi_library_win.h',
1819         'http/transport_security_persister_unittest.cc',
1820         'http/transport_security_state_unittest.cc',
1821         'http/url_security_manager_unittest.cc',
1822         'ocsp/nss_ocsp_unittest.cc',
1823         'proxy/dhcp_proxy_script_adapter_fetcher_win_unittest.cc',
1824         'proxy/dhcp_proxy_script_fetcher_factory_unittest.cc',
1825         'proxy/dhcp_proxy_script_fetcher_win_unittest.cc',
1826         'proxy/multi_threaded_proxy_resolver_unittest.cc',
1827         'proxy/network_delegate_error_observer_unittest.cc',
1828         'proxy/proxy_bypass_rules_unittest.cc',
1829         'proxy/proxy_config_service_android_unittest.cc',
1830         'proxy/proxy_config_service_linux_unittest.cc',
1831         'proxy/proxy_config_service_win_unittest.cc',
1832         'proxy/proxy_config_unittest.cc',
1833         'proxy/proxy_info_unittest.cc',
1834         'proxy/proxy_list_unittest.cc',
1835         'proxy/proxy_resolver_v8_tracing_unittest.cc',
1836         'proxy/proxy_resolver_v8_unittest.cc',
1837         'proxy/proxy_script_decider_unittest.cc',
1838         'proxy/proxy_script_fetcher_impl_unittest.cc',
1839         'proxy/proxy_server_unittest.cc',
1840         'proxy/proxy_service_unittest.cc',
1841         'quic/congestion_control/available_channel_estimator_test.cc',
1842         'quic/congestion_control/channel_estimator_test.cc',
1843         'quic/congestion_control/cube_root_test.cc',
1844         'quic/congestion_control/cubic_test.cc',
1845         'quic/congestion_control/fix_rate_test.cc',
1846         'quic/congestion_control/hybrid_slow_start_test.cc',
1847         'quic/congestion_control/inter_arrival_bitrate_ramp_up_test.cc',
1848         'quic/congestion_control/inter_arrival_overuse_detector_test.cc',
1849         'quic/congestion_control/inter_arrival_probe_test.cc',
1850         'quic/congestion_control/inter_arrival_receiver_test.cc',
1851         'quic/congestion_control/inter_arrival_state_machine_test.cc',
1852         'quic/congestion_control/inter_arrival_sender_test.cc',
1853         'quic/congestion_control/leaky_bucket_test.cc',
1854         'quic/congestion_control/paced_sender_test.cc',
1855         'quic/congestion_control/pacing_sender_test.cc',
1856         'quic/congestion_control/quic_max_sized_map_test.cc',
1857         'quic/congestion_control/tcp_cubic_sender_test.cc',
1858         'quic/congestion_control/tcp_loss_algorithm_test.cc',
1859         'quic/congestion_control/tcp_receiver_test.cc',
1860         'quic/congestion_control/time_loss_algorithm_test.cc',
1861         'quic/crypto/aes_128_gcm_12_decrypter_test.cc',
1862         'quic/crypto/aes_128_gcm_12_encrypter_test.cc',
1863         'quic/crypto/cert_compressor_test.cc',
1864         'quic/crypto/channel_id_test.cc',
1865         'quic/crypto/common_cert_set_test.cc',
1866         'quic/crypto/crypto_framer_test.cc',
1867         'quic/crypto/crypto_secret_boxer_test.cc',
1868         'quic/crypto/crypto_server_test.cc',
1869         'quic/crypto/crypto_utils_test.cc',
1870         'quic/crypto/curve25519_key_exchange_test.cc',
1871         'quic/crypto/local_strike_register_client_test.cc',
1872         'quic/crypto/null_decrypter_test.cc',
1873         'quic/crypto/null_encrypter_test.cc',
1874         'quic/crypto/p256_key_exchange_test.cc',
1875         'quic/crypto/proof_test.cc',
1876         'quic/crypto/quic_crypto_client_config_test.cc',
1877         'quic/crypto/quic_crypto_server_config_test.cc',
1878         'quic/crypto/quic_random_test.cc',
1879         'quic/crypto/strike_register_test.cc',
1880         'quic/iovector_test.cc',
1881         'quic/port_suggester_unittest.cc',
1882         'quic/test_tools/crypto_test_utils.cc',
1883         'quic/test_tools/crypto_test_utils.h',
1884         'quic/test_tools/crypto_test_utils_chromium.cc',
1885         'quic/test_tools/crypto_test_utils_nss.cc',
1886         'quic/test_tools/crypto_test_utils_openssl.cc',
1887         'quic/test_tools/delayed_verify_strike_register_client.cc',
1888         'quic/test_tools/delayed_verify_strike_register_client.h',
1889         'quic/test_tools/mock_clock.cc',
1890         'quic/test_tools/mock_clock.h',
1891         'quic/test_tools/mock_crypto_client_stream.cc',
1892         'quic/test_tools/mock_crypto_client_stream.h',
1893         'quic/test_tools/mock_crypto_client_stream_factory.cc',
1894         'quic/test_tools/mock_crypto_client_stream_factory.h',
1895         'quic/test_tools/mock_random.cc',
1896         'quic/test_tools/mock_random.h',
1897         'quic/test_tools/quic_client_session_peer.cc',
1898         'quic/test_tools/quic_client_session_peer.h',
1899         'quic/test_tools/quic_connection_peer.cc',
1900         'quic/test_tools/quic_connection_peer.h',
1901         'quic/test_tools/quic_data_stream_peer.cc',
1902         'quic/test_tools/quic_data_stream_peer.h',
1903         'quic/test_tools/quic_framer_peer.cc',
1904         'quic/test_tools/quic_framer_peer.h',
1905         'quic/test_tools/quic_packet_creator_peer.cc',
1906         'quic/test_tools/quic_packet_creator_peer.h',
1907         'quic/test_tools/quic_received_packet_manager_peer.cc',
1908         'quic/test_tools/quic_received_packet_manager_peer.h',
1909         'quic/test_tools/quic_sent_packet_manager_peer.cc',
1910         'quic/test_tools/quic_sent_packet_manager_peer.h',
1911         'quic/test_tools/quic_session_peer.cc',
1912         'quic/test_tools/quic_session_peer.h',
1913         'quic/test_tools/quic_test_packet_maker.cc',
1914         'quic/test_tools/quic_test_packet_maker.h',
1915         'quic/test_tools/quic_test_utils.cc',
1916         'quic/test_tools/quic_test_utils.h',
1917         'quic/test_tools/reliable_quic_stream_peer.cc',
1918         'quic/test_tools/reliable_quic_stream_peer.h',
1919         'quic/test_tools/simple_quic_framer.cc',
1920         'quic/test_tools/simple_quic_framer.h',
1921         'quic/test_tools/test_task_runner.cc',
1922         'quic/test_tools/test_task_runner.h',
1923         'quic/quic_ack_notifier_test.cc',
1924         'quic/quic_address_mismatch_test.cc',
1925         'quic/quic_alarm_test.cc',
1926         'quic/quic_bandwidth_test.cc',
1927         'quic/quic_client_session_test.cc',
1928         'quic/quic_clock_test.cc',
1929         'quic/quic_config_test.cc',
1930         'quic/quic_connection_helper_test.cc',
1931         'quic/quic_connection_test.cc',
1932         'quic/quic_crypto_client_stream_test.cc',
1933         'quic/quic_crypto_server_stream_test.cc',
1934         'quic/quic_crypto_stream_test.cc',
1935         'quic/quic_data_stream_test.cc',
1936         'quic/quic_data_writer_test.cc',
1937         'quic/quic_fec_group_test.cc',
1938         'quic/quic_framer_test.cc',
1939         'quic/quic_headers_stream_test.cc',
1940         'quic/quic_http_stream_test.cc',
1941         'quic/quic_http_utils_test.cc',
1942         'quic/quic_network_transaction_unittest.cc',
1943         'quic/quic_packet_creator_test.cc',
1944         'quic/quic_packet_generator_test.cc',
1945         'quic/quic_protocol_test.cc',
1946         'quic/quic_received_packet_manager_test.cc',
1947         'quic/quic_reliable_client_stream_test.cc',
1948         'quic/quic_sent_entropy_manager_test.cc',
1949         'quic/quic_sent_packet_manager_test.cc',
1950         'quic/quic_session_test.cc',
1951         'quic/quic_socket_address_coder_test.cc',
1952         'quic/quic_stream_factory_test.cc',
1953         'quic/quic_stream_sequencer_test.cc',
1954         'quic/quic_time_test.cc',
1955         'quic/quic_utils_chromium_test.cc',
1956         'quic/quic_utils_test.cc',
1957         'quic/quic_write_blocked_list_test.cc',
1958         'quic/reliable_quic_stream_test.cc',
1959         'server/http_server_response_info_unittest.cc',
1960         'server/http_server_unittest.cc',
1961         'socket/buffered_write_stream_socket_unittest.cc',
1962         'socket/client_socket_pool_base_unittest.cc',
1963         'socket/deterministic_socket_data_unittest.cc',
1964         'socket/mock_client_socket_pool_manager.cc',
1965         'socket/mock_client_socket_pool_manager.h',
1966         'socket/socks5_client_socket_unittest.cc',
1967         'socket/socks_client_socket_pool_unittest.cc',
1968         'socket/socks_client_socket_unittest.cc',
1969         'socket/ssl_client_socket_openssl_unittest.cc',
1970         'socket/ssl_client_socket_pool_unittest.cc',
1971         'socket/ssl_client_socket_unittest.cc',
1972         'socket/ssl_server_socket_unittest.cc',
1973         'socket/ssl_session_cache_openssl_unittest.cc',
1974         'socket/tcp_client_socket_unittest.cc',
1975         'socket/tcp_listen_socket_unittest.cc',
1976         'socket/tcp_listen_socket_unittest.h',
1977         'socket/tcp_server_socket_unittest.cc',
1978         'socket/tcp_socket_unittest.cc',
1979         'socket/transport_client_socket_pool_unittest.cc',
1980         'socket/transport_client_socket_unittest.cc',
1981         'socket/unix_domain_socket_posix_unittest.cc',
1982         'socket_stream/socket_stream_metrics_unittest.cc',
1983         'socket_stream/socket_stream_unittest.cc',
1984         'spdy/buffered_spdy_framer_unittest.cc',
1985         'spdy/hpack_decoder_test.cc',
1986         'spdy/hpack_encoder_test.cc',
1987         'spdy/hpack_encoding_context_test.cc',
1988         'spdy/hpack_entry_test.cc',
1989         'spdy/hpack_header_table_test.cc',
1990         'spdy/hpack_huffman_table_test.cc',
1991         'spdy/hpack_input_stream_test.cc',
1992         'spdy/hpack_output_stream_test.cc',
1993         'spdy/hpack_string_util_test.cc',
1994         'spdy/mock_spdy_framer_visitor.cc',
1995         'spdy/mock_spdy_framer_visitor.h',
1996         'spdy/spdy_buffer_unittest.cc',
1997         'spdy/spdy_frame_builder_test.cc',
1998         'spdy/spdy_frame_reader_test.cc',
1999         'spdy/spdy_framer_test.cc',
2000         'spdy/spdy_header_block_unittest.cc',
2001         'spdy/spdy_headers_block_parser_test.cc',
2002         'spdy/spdy_http_stream_unittest.cc',
2003         'spdy/spdy_http_utils_unittest.cc',
2004         'spdy/spdy_network_transaction_unittest.cc',
2005         'spdy/spdy_pinnable_buffer_piece_test.cc',
2006         'spdy/spdy_prefixed_buffer_reader_test.cc',
2007         'spdy/spdy_priority_forest_test.cc',
2008         'spdy/spdy_protocol_test.cc',
2009         'spdy/spdy_proxy_client_socket_unittest.cc',
2010         'spdy/spdy_read_queue_unittest.cc',
2011         'spdy/spdy_session_pool_unittest.cc',
2012         'spdy/spdy_session_test_util.cc',
2013         'spdy/spdy_session_test_util.h',
2014         'spdy/spdy_session_unittest.cc',
2015         'spdy/spdy_stream_test_util.cc',
2016         'spdy/spdy_stream_test_util.h',
2017         'spdy/spdy_stream_unittest.cc',
2018         'spdy/spdy_test_util_common.cc',
2019         'spdy/spdy_test_util_common.h',
2020         'spdy/spdy_test_utils.cc',
2021         'spdy/spdy_test_utils.h',
2022         'spdy/spdy_websocket_stream_unittest.cc',
2023         'spdy/spdy_websocket_test_util.cc',
2024         'spdy/spdy_websocket_test_util.h',
2025         'spdy/spdy_write_queue_unittest.cc',
2026         'spdy/write_blocked_list_test.cc',
2027         'ssl/client_cert_store_chromeos_unittest.cc',
2028         'ssl/client_cert_store_mac_unittest.cc',
2029         'ssl/client_cert_store_nss_unittest.cc',
2030         'ssl/client_cert_store_unittest-inl.h',
2031         'ssl/client_cert_store_win_unittest.cc',
2032         'ssl/default_server_bound_cert_store_unittest.cc',
2033         'ssl/openssl_client_key_store_unittest.cc',
2034         'ssl/server_bound_cert_service_unittest.cc',
2035         'ssl/ssl_cipher_suite_names_unittest.cc',
2036         'ssl/ssl_client_auth_cache_unittest.cc',
2037         'ssl/ssl_config_service_unittest.cc',
2038         'test/gtest_util.h',
2039         'test/embedded_test_server/embedded_test_server_unittest.cc',
2040         'test/embedded_test_server/http_request_unittest.cc',
2041         'test/embedded_test_server/http_response_unittest.cc',
2042         'test/python_utils_unittest.cc',
2043         'test/run_all_unittests.cc',
2044         'test/scoped_disable_exit_on_dfatal.cc',
2045         'test/scoped_disable_exit_on_dfatal.h',
2046         'test/scoped_mock_log.cc',
2047         'test/scoped_mock_log.h',
2048         'test/test_certificate_data.h',
2049         'tools/dump_cache/url_to_filename_encoder.cc',
2050         'tools/dump_cache/url_to_filename_encoder.h',
2051         'tools/dump_cache/url_to_filename_encoder_unittest.cc',
2052         'tools/dump_cache/url_utilities.h',
2053         'tools/dump_cache/url_utilities.cc',
2054         'tools/dump_cache/url_utilities_unittest.cc',
2055         'tools/tld_cleanup/tld_cleanup_util_unittest.cc',
2056         'udp/udp_socket_unittest.cc',
2057         'url_request/url_fetcher_impl_unittest.cc',
2058         'url_request/url_fetcher_response_writer_unittest.cc',
2059         'url_request/url_request_context_builder_unittest.cc',
2060         'url_request/url_request_filter_unittest.cc',
2061         'url_request/url_request_ftp_job_unittest.cc',
2062         'url_request/url_request_http_job_unittest.cc',
2063         'url_request/url_request_job_factory_impl_unittest.cc',
2064         'url_request/url_request_job_unittest.cc',
2065         'url_request/url_request_simple_job_unittest.cc',
2066         'url_request/url_request_throttler_simulation_unittest.cc',
2067         'url_request/url_request_throttler_test_support.cc',
2068         'url_request/url_request_throttler_test_support.h',
2069         'url_request/url_request_throttler_unittest.cc',
2070         'url_request/url_request_unittest.cc',
2071         'url_request/view_cache_helper_unittest.cc',
2072         'websockets/websocket_basic_stream_test.cc',
2073         'websockets/websocket_channel_test.cc',
2074         'websockets/websocket_deflate_predictor_impl_test.cc',
2075         'websockets/websocket_deflate_stream_test.cc',
2076         'websockets/websocket_deflater_test.cc',
2077         'websockets/websocket_errors_test.cc',
2078         'websockets/websocket_extension_parser_test.cc',
2079         'websockets/websocket_frame_parser_test.cc',
2080         'websockets/websocket_frame_test.cc',
2081         'websockets/websocket_handshake_handler_spdy_test.cc',
2082         'websockets/websocket_handshake_handler_test.cc',
2083         'websockets/websocket_handshake_stream_create_helper_test.cc',
2084         'websockets/websocket_inflater_test.cc',
2085         'websockets/websocket_job_test.cc',
2086         'websockets/websocket_net_log_params_test.cc',
2087         'websockets/websocket_stream_test.cc',
2088         'websockets/websocket_test_util.cc',
2089         'websockets/websocket_test_util.h',
2090         'websockets/websocket_throttle_test.cc',
2091       ],
2092       'conditions': [
2093         ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
2094           'dependencies': [
2095             'balsa',
2096             'epoll_server',
2097             'flip_in_mem_edsm_server_base',
2098             'quic_base',
2099           ],
2100           'sources': [
2101             'quic/quic_end_to_end_unittest.cc',
2102             'tools/balsa/balsa_frame_test.cc',
2103             'tools/balsa/balsa_headers_test.cc',
2104             'tools/quic/end_to_end_test.cc',
2105             'tools/quic/quic_client_session_test.cc',
2106             'tools/quic/quic_dispatcher_test.cc',
2107             'tools/quic/quic_epoll_clock_test.cc',
2108             'tools/quic/quic_epoll_connection_helper_test.cc',
2109             'tools/quic/quic_in_memory_cache_test.cc',
2110             'tools/quic/quic_server_session_test.cc',
2111             'tools/quic/quic_server_test.cc',
2112             'tools/quic/quic_spdy_client_stream_test.cc',
2113             'tools/quic/quic_spdy_server_stream_test.cc',
2114             'tools/quic/quic_time_wait_list_manager_test.cc',
2115             'tools/quic/test_tools/http_message.cc',
2116             'tools/quic/test_tools/http_message.h',
2117             'tools/quic/test_tools/mock_epoll_server.cc',
2118             'tools/quic/test_tools/mock_epoll_server.h',
2119             'tools/quic/test_tools/mock_quic_dispatcher.cc',
2120             'tools/quic/test_tools/mock_quic_dispatcher.h',
2121             'tools/quic/test_tools/packet_dropping_test_writer.cc',
2122             'tools/quic/test_tools/packet_dropping_test_writer.h',
2123             'tools/quic/test_tools/quic_client_peer.cc',
2124             'tools/quic/test_tools/quic_client_peer.h',
2125             'tools/quic/test_tools/quic_dispatcher_peer.cc',
2126             'tools/quic/test_tools/quic_dispatcher_peer.h',
2127             'tools/quic/test_tools/quic_in_memory_cache_peer.h',
2128             'tools/quic/test_tools/quic_in_memory_cache_peer.cc',
2129             'tools/quic/test_tools/quic_server_peer.cc',
2130             'tools/quic/test_tools/quic_server_peer.h',
2131             'tools/quic/test_tools/quic_test_client.cc',
2132             'tools/quic/test_tools/quic_test_client.h',
2133             'tools/quic/test_tools/quic_test_utils.cc',
2134             'tools/quic/test_tools/quic_test_utils.h',
2135             'tools/quic/test_tools/server_thread.h',
2136             'tools/quic/test_tools/server_thread.cc',
2137           ],
2138         }],
2139         ['chromeos==1', {
2140           'sources!': [
2141             'base/network_change_notifier_linux_unittest.cc',
2142             'proxy/proxy_config_service_linux_unittest.cc',
2143           ],
2144         }],
2145         [ 'OS == "android"', {
2146           'sources!': [
2147             # See bug 344533.
2148             'disk_cache/blockfile/index_table_v3unittest.cc',
2149             # No res_ninit() et al on Android, so this doesn't make a lot of
2150             # sense.
2151             'dns/dns_config_service_posix_unittest.cc',
2152           ],
2153           'dependencies': [
2154             'net_javatests',
2155             'net_test_jni_headers',
2156           ],
2157         }],
2158         [ 'use_nss != 1', {
2159           'sources!': [
2160             'ssl/client_cert_store_nss_unittest.cc',
2161           ],
2162         }],
2163         [ 'use_openssl == 1', {
2164           # Avoid compiling/linking with the system library.
2165           'dependencies': [
2166             '../third_party/openssl/openssl.gyp:openssl',
2167           ],
2168         }, {  # use_openssl == 0
2169           'conditions': [
2170             [ 'desktop_linux == 1 or chromeos == 1', {
2171               'dependencies': [
2172                 '../build/linux/system.gyp:ssl',
2173               ],
2174             }, {  # desktop_linux == 0 and chromeos == 0
2175               'sources!': [
2176                 'cert/nss_cert_database_unittest.cc',
2177               ],
2178             }],
2179           ],
2180         }],
2181         [ 'toolkit_uses_gtk == 1', {
2182             'dependencies': [
2183               '../build/linux/system.gyp:gtk',
2184             ],
2185           },
2186         ],
2187         [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
2188           'conditions': [
2189             # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
2190             ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
2191               'dependencies': [
2192                 '../base/allocator/allocator.gyp:allocator',
2193               ],
2194             }],
2195           ],
2196         }],
2197         [ 'use_kerberos==1', {
2198           'defines': [
2199             'USE_KERBEROS',
2200           ],
2201         }, { # use_kerberos == 0
2202           'sources!': [
2203             'http/http_auth_gssapi_posix_unittest.cc',
2204             'http/http_auth_handler_negotiate_unittest.cc',
2205             'http/mock_gssapi_library_posix.cc',
2206             'http/mock_gssapi_library_posix.h',
2207           ],
2208         }],
2209         [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', {
2210           # Only include this test when on Posix and using NSS for
2211           # cert verification or on iOS (which also uses NSS for certs).
2212           'sources!': [
2213             'ocsp/nss_ocsp_unittest.cc',
2214           ],
2215         }],
2216         [ 'use_openssl==1', {
2217             # When building for OpenSSL, we need to exclude NSS specific tests
2218             # or functionality not supported by OpenSSL yet.
2219             # TODO(bulach): Add equivalent tests when the underlying
2220             #               functionality is ported to OpenSSL.
2221             'sources!': [
2222               'cert/ct_objects_extractor_unittest.cc',
2223               'cert/multi_log_ct_verifier_unittest.cc',
2224               'cert/nss_cert_database_unittest.cc',
2225               'cert/x509_util_nss_unittest.cc',
2226               'quic/test_tools/crypto_test_utils_nss.cc',
2227             ],
2228           }, {  # else !use_openssl: remove the unneeded files
2229             'sources!': [
2230               'cert/x509_util_openssl_unittest.cc',
2231               'quic/test_tools/crypto_test_utils_openssl.cc',
2232               'socket/ssl_client_socket_openssl_unittest.cc',
2233               'socket/ssl_session_cache_openssl_unittest.cc',
2234               'ssl/openssl_client_key_store_unittest.cc',
2235             ],
2236           },
2237         ],
2238         [ 'enable_websockets != 1', {
2239             'sources/': [
2240               ['exclude', '^socket_stream/'],
2241               ['exclude', '^websockets/'],
2242               ['exclude', '^spdy/spdy_websocket_stream_unittest\\.cc$'],
2243             ],
2244         }],
2245         [ 'disable_ftp_support==1', {
2246             'sources/': [
2247               ['exclude', '^ftp/'],
2248             ],
2249             'sources!': [
2250               'url_request/url_request_ftp_job_unittest.cc',
2251             ],
2252           },
2253         ],
2254         [ 'enable_built_in_dns!=1', {
2255             'sources!': [
2256               'dns/address_sorter_posix_unittest.cc',
2257               'dns/address_sorter_unittest.cc',
2258             ],
2259           },
2260         ],
2261         [ 'use_v8_in_net==1', {
2262             'dependencies': [
2263               'net_with_v8',
2264             ],
2265           }, {  # else: !use_v8_in_net
2266             'sources!': [
2267               'proxy/proxy_resolver_v8_unittest.cc',
2268               'proxy/proxy_resolver_v8_tracing_unittest.cc',
2269             ],
2270           },
2271         ],
2273         [ 'enable_mdns != 1', {
2274             'sources!' : [
2275               'dns/mdns_cache_unittest.cc',
2276               'dns/mdns_client_unittest.cc',
2277               'dns/mdns_query_unittest.cc',
2278               'dns/record_parsed_unittest.cc',
2279               'dns/record_rdata_unittest.cc',
2280             ],
2281         }],
2282         [ 'OS == "win"', {
2283             'sources!': [
2284               'dns/dns_config_service_posix_unittest.cc',
2285               'http/http_auth_gssapi_posix_unittest.cc',
2286             ],
2287             'dependencies': [
2288               '../third_party/nss/nss.gyp:nspr',
2289               '../third_party/nss/nss.gyp:nss',
2290               'third_party/nss/ssl.gyp:libssl',
2291             ],
2292             'conditions': [
2293               [ 'icu_use_data_file_flag == 0', {
2294                 # This is needed to trigger the dll copy step on windows.
2295                 # TODO(mark): Specifying this here shouldn't be necessary.
2296                 'dependencies': [
2297                   '../third_party/icu/icu.gyp:icudata',
2298                 ],
2299               }],
2300             ],
2301             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2302             'msvs_disabled_warnings': [4267, ],
2303           },
2304         ],
2305         [ 'OS == "mac"', {
2306             'dependencies': [
2307               '../third_party/nss/nss.gyp:nspr',
2308               '../third_party/nss/nss.gyp:nss',
2309               'third_party/nss/ssl.gyp:libssl',
2310             ],
2311           },
2312         ],
2313         [ 'OS == "ios"', {
2314             'dependencies': [
2315               '../third_party/nss/nss.gyp:nss',
2316             ],
2317             'actions': [
2318               {
2319                 'action_name': 'copy_test_data',
2320                 'variables': {
2321                   'test_data_files': [
2322                     'data/ssl/certificates/',
2323                     'data/test.html',
2324                     'data/url_request_unittest/',
2325                   ],
2326                   'test_data_prefix': 'net',
2327                 },
2328                 'includes': [ '../build/copy_test_data_ios.gypi' ],
2329               },
2330             ],
2331             'sources!': [
2332               # TODO(droger): The following tests are disabled because the
2333               # implementation is missing or incomplete.
2334               # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
2335               'base/keygen_handler_unittest.cc',
2336               'disk_cache/backend_unittest.cc',
2337               'disk_cache/blockfile/block_files_unittest.cc',
2338               # Need to read input data files.
2339               'filter/gzip_filter_unittest.cc',
2340               'socket/ssl_server_socket_unittest.cc',
2341               # Need TestServer.
2342               'proxy/proxy_script_fetcher_impl_unittest.cc',
2343               'socket/ssl_client_socket_unittest.cc',
2344               'url_request/url_fetcher_impl_unittest.cc',
2345               'url_request/url_request_context_builder_unittest.cc',
2346               # Needs GetAppOutput().
2347               'test/python_utils_unittest.cc',
2349               # The following tests are disabled because they don't apply to
2350               # iOS.
2351               # OS is not "linux" or "freebsd" or "openbsd".
2352               'socket/unix_domain_socket_posix_unittest.cc',
2354               # See bug 344533.
2355               'disk_cache/v3/index_table_unittest.cc',
2356             ],
2357         }],
2358         [ 'OS == "android"', {
2359             'dependencies': [
2360               '../third_party/openssl/openssl.gyp:openssl',
2361             ],
2362             'sources!': [
2363               'dns/dns_config_service_posix_unittest.cc',
2364             ],
2365           },
2366         ],
2367         ['OS == "android" and gtest_target_type == "shared_library"', {
2368           'dependencies': [
2369             '../testing/android/native_test.gyp:native_test_native_code',
2370           ]
2371         }],
2372       ],
2373       'target_conditions': [
2374         # These source files are excluded by default platform rules, but they
2375         # are needed in specific cases on other platforms. Re-including them can
2376         # only be done in target_conditions as it is evaluated after the
2377         # platform rules.
2378         ['OS == "android"', {
2379           'sources/': [
2380             ['include', '^base/address_tracker_linux_unittest\\.cc$'],
2381           ],
2382         }],
2383       ],
2384     },
2385     {
2386       'target_name': 'net_perftests',
2387       'type': 'executable',
2388       'dependencies': [
2389         '../base/base.gyp:base',
2390         '../base/base.gyp:base_i18n',
2391         '../base/base.gyp:test_support_perf',
2392         '../testing/gtest.gyp:gtest',
2393         '../url/url.gyp:url_lib',
2394         'net',
2395         'net_test_support',
2396       ],
2397       'sources': [
2398         'cookies/cookie_monster_perftest.cc',
2399         'disk_cache/blockfile/disk_cache_perftest.cc',
2400         'proxy/proxy_resolver_perftest.cc',
2401       ],
2402       'conditions': [
2403         [ 'use_v8_in_net==1', {
2404             'dependencies': [
2405               'net_with_v8',
2406             ],
2407           }, {  # else: !use_v8_in_net
2408             'sources!': [
2409               'proxy/proxy_resolver_perftest.cc',
2410             ],
2411           },
2412         ],
2413         [ 'OS == "win"', {
2414             'conditions': [
2415               [ 'icu_use_data_file_flag == 0', {
2416                 # This is needed to trigger the dll copy step on windows.
2417                 # TODO(mark): Specifying this here shouldn't be necessary.
2418                 'dependencies': [
2419                   '../third_party/icu/icu.gyp:icudata',
2420                 ],
2421               }],
2422             ],
2423             # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2424             'msvs_disabled_warnings': [4267, ],
2425         }],
2426       ],
2427     },
2428     {
2429       'target_name': 'net_test_support',
2430       'type': 'static_library',
2431       'dependencies': [
2432         '../base/base.gyp:base',
2433         '../base/base.gyp:test_support_base',
2434         '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
2435         '../testing/gtest.gyp:gtest',
2436         '../testing/gmock.gyp:gmock',
2437         '../url/url.gyp:url_lib',
2438         'net',
2439       ],
2440       'export_dependent_settings': [
2441         '../base/base.gyp:base',
2442         '../base/base.gyp:test_support_base',
2443         '../testing/gtest.gyp:gtest',
2444         '../testing/gmock.gyp:gmock',
2445       ],
2446       'sources': [
2447         'base/capturing_net_log.cc',
2448         'base/capturing_net_log.h',
2449         'base/load_timing_info_test_util.cc',
2450         'base/load_timing_info_test_util.h',
2451         'base/mock_file_stream.cc',
2452         'base/mock_file_stream.h',
2453         'base/test_completion_callback.cc',
2454         'base/test_completion_callback.h',
2455         'base/test_data_directory.cc',
2456         'base/test_data_directory.h',
2457         'cert/mock_cert_verifier.cc',
2458         'cert/mock_cert_verifier.h',
2459         'cookies/cookie_monster_store_test.cc',
2460         'cookies/cookie_monster_store_test.h',
2461         'cookies/cookie_store_test_callbacks.cc',
2462         'cookies/cookie_store_test_callbacks.h',
2463         'cookies/cookie_store_test_helpers.cc',
2464         'cookies/cookie_store_test_helpers.h',
2465         'disk_cache/disk_cache_test_base.cc',
2466         'disk_cache/disk_cache_test_base.h',
2467         'disk_cache/disk_cache_test_util.cc',
2468         'disk_cache/disk_cache_test_util.h',
2469         'dns/dns_test_util.cc',
2470         'dns/dns_test_util.h',
2471         'dns/mock_host_resolver.cc',
2472         'dns/mock_host_resolver.h',
2473         'dns/mock_mdns_socket_factory.cc',
2474         'dns/mock_mdns_socket_factory.h',
2475         'proxy/mock_proxy_resolver.cc',
2476         'proxy/mock_proxy_resolver.h',
2477         'proxy/mock_proxy_script_fetcher.cc',
2478         'proxy/mock_proxy_script_fetcher.h',
2479         'proxy/proxy_config_service_common_unittest.cc',
2480         'proxy/proxy_config_service_common_unittest.h',
2481         'socket/socket_test_util.cc',
2482         'socket/socket_test_util.h',
2483         'test/cert_test_util.cc',
2484         'test/cert_test_util.h',
2485         'test/ct_test_util.cc',
2486         'test/ct_test_util.h',
2487         'test/embedded_test_server/embedded_test_server.cc',
2488         'test/embedded_test_server/embedded_test_server.h',
2489         'test/embedded_test_server/http_connection.cc',
2490         'test/embedded_test_server/http_connection.h',
2491         'test/embedded_test_server/http_request.cc',
2492         'test/embedded_test_server/http_request.h',
2493         'test/embedded_test_server/http_response.cc',
2494         'test/embedded_test_server/http_response.h',
2495         'test/net_test_suite.cc',
2496         'test/net_test_suite.h',
2497         'test/python_utils.cc',
2498         'test/python_utils.h',
2499         'test/spawned_test_server/base_test_server.cc',
2500         'test/spawned_test_server/base_test_server.h',
2501         'test/spawned_test_server/local_test_server_posix.cc',
2502         'test/spawned_test_server/local_test_server_win.cc',
2503         'test/spawned_test_server/local_test_server.cc',
2504         'test/spawned_test_server/local_test_server.h',
2505         'test/spawned_test_server/remote_test_server.cc',
2506         'test/spawned_test_server/remote_test_server.h',
2507         'test/spawned_test_server/spawned_test_server.h',
2508         'test/spawned_test_server/spawner_communicator.cc',
2509         'test/spawned_test_server/spawner_communicator.h',
2510         'url_request/test_url_fetcher_factory.cc',
2511         'url_request/test_url_fetcher_factory.h',
2512         'url_request/url_request_test_util.cc',
2513         'url_request/url_request_test_util.h',
2514       ],
2515       'conditions': [
2516         ['OS != "ios"', {
2517           'dependencies': [
2518             '../third_party/protobuf/protobuf.gyp:py_proto',
2519           ],
2520         }],
2521         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
2522           'conditions': [
2523             ['use_openssl==1', {
2524               'dependencies': [
2525                 '../third_party/openssl/openssl.gyp:openssl',
2526               ],
2527             }, {
2528               'dependencies': [
2529                 '../build/linux/system.gyp:ssl',
2530               ],
2531             }],
2532           ],
2533         }],
2534         ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
2535           'conditions': [
2536             # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
2537             ['(use_allocator!="none" and use_allocator!="see_use_tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1)', {
2538               'dependencies': [
2539                 '../base/allocator/allocator.gyp:allocator',
2540               ],
2541             }],
2542           ],
2543         }],
2544         ['OS != "android"', {
2545           'sources!': [
2546             'test/spawned_test_server/remote_test_server.cc',
2547             'test/spawned_test_server/remote_test_server.h',
2548             'test/spawned_test_server/spawner_communicator.cc',
2549             'test/spawned_test_server/spawner_communicator.h',
2550           ],
2551         }],
2552         ['OS == "ios"', {
2553           'dependencies': [
2554             '../third_party/nss/nss.gyp:nss',
2555           ],
2556         }],
2557         [ 'use_v8_in_net==1', {
2558             'dependencies': [
2559               'net_with_v8',
2560             ],
2561           },
2562         ],
2563         [ 'enable_mdns != 1', {
2564             'sources!' : [
2565               'dns/mock_mdns_socket_factory.cc',
2566               'dns/mock_mdns_socket_factory.h'
2567             ]
2568         }],
2569       ],
2570       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2571       'msvs_disabled_warnings': [4267, ],
2572     },
2573     {
2574       'target_name': 'net_resources',
2575       'type': 'none',
2576       'variables': {
2577         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
2578       },
2579       'actions': [
2580         {
2581           'action_name': 'net_resources',
2582           'variables': {
2583             'grit_grd_file': 'base/net_resources.grd',
2584           },
2585           'includes': [ '../build/grit_action.gypi' ],
2586         },
2587       ],
2588       'includes': [ '../build/grit_target.gypi' ],
2589     },
2590     {
2591       'target_name': 'http_server',
2592       'type': 'static_library',
2593       'variables': { 'enable_wexit_time_destructors': 1, },
2594       'dependencies': [
2595         '../base/base.gyp:base',
2596         'net',
2597       ],
2598       'sources': [
2599         'server/http_connection.cc',
2600         'server/http_connection.h',
2601         'server/http_server.cc',
2602         'server/http_server.h',
2603         'server/http_server_request_info.cc',
2604         'server/http_server_request_info.h',
2605         'server/http_server_response_info.cc',
2606         'server/http_server_response_info.h',
2607         'server/web_socket.cc',
2608         'server/web_socket.h',
2609       ],
2610       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2611       'msvs_disabled_warnings': [4267, ],
2612     },
2613     {
2614       'target_name': 'dump_cache',
2615       'type': 'executable',
2616       'dependencies': [
2617         '../base/base.gyp:base',
2618         'net',
2619         'net_test_support',
2620       ],
2621       'sources': [
2622         'tools/dump_cache/cache_dumper.cc',
2623         'tools/dump_cache/cache_dumper.h',
2624         'tools/dump_cache/dump_cache.cc',
2625         'tools/dump_cache/dump_files.cc',
2626         'tools/dump_cache/dump_files.h',
2627         'tools/dump_cache/simple_cache_dumper.cc',
2628         'tools/dump_cache/simple_cache_dumper.h',
2629         'tools/dump_cache/upgrade_win.cc',
2630         'tools/dump_cache/upgrade_win.h',
2631         'tools/dump_cache/url_to_filename_encoder.cc',
2632         'tools/dump_cache/url_to_filename_encoder.h',
2633         'tools/dump_cache/url_utilities.h',
2634         'tools/dump_cache/url_utilities.cc',
2635       ],
2636       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2637       'msvs_disabled_warnings': [4267, ],
2638     },
2639   ],
2640   'conditions': [
2641     ['use_v8_in_net == 1', {
2642       'targets': [
2643         {
2644           'target_name': 'net_with_v8',
2645           'type': '<(component)',
2646           'variables': { 'enable_wexit_time_destructors': 1, },
2647           'dependencies': [
2648             '../base/base.gyp:base',
2649             '../url/url.gyp:url_lib',
2650             '../v8/tools/gyp/v8.gyp:v8',
2651             'net'
2652           ],
2653           'defines': [
2654             'NET_IMPLEMENTATION',
2655           ],
2656           'sources': [
2657             'proxy/proxy_resolver_v8.cc',
2658             'proxy/proxy_resolver_v8.h',
2659             'proxy/proxy_resolver_v8_tracing.cc',
2660             'proxy/proxy_resolver_v8_tracing.h',
2661             'proxy/proxy_service_v8.cc',
2662             'proxy/proxy_service_v8.h',
2663           ],
2664           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2665           'msvs_disabled_warnings': [4267, ],
2666         },
2667       ],
2668     }],
2669     ['OS != "ios" and OS != "android"', {
2670       'targets': [
2671         # iOS doesn't have the concept of simple executables, these targets
2672         # can't be compiled on the platform.
2673         {
2674           'target_name': 'crash_cache',
2675           'type': 'executable',
2676           'dependencies': [
2677             '../base/base.gyp:base',
2678             'net',
2679             'net_test_support',
2680           ],
2681           'sources': [
2682             'tools/crash_cache/crash_cache.cc',
2683           ],
2684           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2685           'msvs_disabled_warnings': [4267, ],
2686         },
2687         {
2688           'target_name': 'crl_set_dump',
2689           'type': 'executable',
2690           'dependencies': [
2691             '../base/base.gyp:base',
2692             'net',
2693           ],
2694           'sources': [
2695             'tools/crl_set_dump/crl_set_dump.cc',
2696           ],
2697           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2698           'msvs_disabled_warnings': [4267, ],
2699         },
2700         {
2701           'target_name': 'dns_fuzz_stub',
2702           'type': 'executable',
2703           'dependencies': [
2704             '../base/base.gyp:base',
2705             'net',
2706           ],
2707           'sources': [
2708             'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
2709           ],
2710           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2711           'msvs_disabled_warnings': [4267, ],
2712         },
2713         {
2714           'target_name': 'fetch_client',
2715           'type': 'executable',
2716           'variables': { 'enable_wexit_time_destructors': 1, },
2717           'dependencies': [
2718             '../base/base.gyp:base',
2719             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
2720             '../testing/gtest.gyp:gtest',
2721             '../url/url.gyp:url_lib',
2722             'net',
2723             'net_with_v8',
2724           ],
2725           'sources': [
2726             'tools/fetch/fetch_client.cc',
2727           ],
2728           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2729           'msvs_disabled_warnings': [4267, ],
2730         },
2731         {
2732           'target_name': 'fetch_server',
2733           'type': 'executable',
2734           'variables': { 'enable_wexit_time_destructors': 1, },
2735           'dependencies': [
2736             '../base/base.gyp:base',
2737             '../url/url.gyp:url_lib',
2738             'net',
2739           ],
2740           'sources': [
2741             'tools/fetch/fetch_server.cc',
2742             'tools/fetch/http_listen_socket.cc',
2743             'tools/fetch/http_listen_socket.h',
2744             'tools/fetch/http_server.cc',
2745             'tools/fetch/http_server.h',
2746             'tools/fetch/http_server_request_info.cc',
2747             'tools/fetch/http_server_request_info.h',
2748             'tools/fetch/http_server_response_info.cc',
2749             'tools/fetch/http_server_response_info.h',
2750             'tools/fetch/http_session.cc',
2751             'tools/fetch/http_session.h',
2752           ],
2753           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2754           'msvs_disabled_warnings': [4267, ],
2755         },
2756         {
2757           'target_name': 'gdig',
2758           'type': 'executable',
2759           'dependencies': [
2760             '../base/base.gyp:base',
2761             'net',
2762           ],
2763           'sources': [
2764             'tools/gdig/file_net_log.cc',
2765             'tools/gdig/gdig.cc',
2766           ],
2767         },
2768         {
2769           'target_name': 'get_server_time',
2770           'type': 'executable',
2771           'dependencies': [
2772             '../base/base.gyp:base',
2773             '../base/base.gyp:base_i18n',
2774             '../url/url.gyp:url_lib',
2775             'net',
2776           ],
2777           'sources': [
2778             'tools/get_server_time/get_server_time.cc',
2779           ],
2780           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2781           'msvs_disabled_warnings': [4267, ],
2782         },
2783         {
2784           'target_name': 'net_watcher',
2785           'type': 'executable',
2786           'dependencies': [
2787             '../base/base.gyp:base',
2788             'net',
2789             'net_with_v8',
2790           ],
2791           'conditions': [
2792             [ 'use_glib == 1', {
2793                 'dependencies': [
2794                   '../build/linux/system.gyp:gconf',
2795                   '../build/linux/system.gyp:gio',
2796                 ],
2797               },
2798             ],
2799           ],
2800           'sources': [
2801             'tools/net_watcher/net_watcher.cc',
2802           ],
2803         },
2804         {
2805           'target_name': 'run_testserver',
2806           'type': 'executable',
2807           'dependencies': [
2808             '../base/base.gyp:base',
2809             '../base/base.gyp:test_support_base',
2810             '../testing/gtest.gyp:gtest',
2811             'net_test_support',
2812           ],
2813           'sources': [
2814             'tools/testserver/run_testserver.cc',
2815           ],
2816         },
2817         {
2818           'target_name': 'stress_cache',
2819           'type': 'executable',
2820           'dependencies': [
2821             '../base/base.gyp:base',
2822             'net',
2823             'net_test_support',
2824           ],
2825           'sources': [
2826             'disk_cache/blockfile/stress_cache.cc',
2827           ],
2828           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2829           'msvs_disabled_warnings': [4267, ],
2830         },
2831         {
2832           'target_name': 'tld_cleanup',
2833           'type': 'executable',
2834           'dependencies': [
2835             '../base/base.gyp:base',
2836             '../base/base.gyp:base_i18n',
2837             '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
2838           ],
2839           'sources': [
2840             'tools/tld_cleanup/tld_cleanup.cc',
2841           ],
2842           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
2843           'msvs_disabled_warnings': [4267, ],
2844         },
2845       ],
2846     }],
2847     ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
2848       'targets': [
2849         {
2850           'target_name': 'balsa',
2851           'type': 'static_library',
2852           'dependencies': [
2853             '../base/base.gyp:base',
2854             'net',
2855           ],
2856           'sources': [
2857             'tools/balsa/balsa_enums.h',
2858             'tools/balsa/balsa_frame.cc',
2859             'tools/balsa/balsa_frame.h',
2860             'tools/balsa/balsa_headers.cc',
2861             'tools/balsa/balsa_headers.h',
2862             'tools/balsa/balsa_headers_token_utils.cc',
2863             'tools/balsa/balsa_headers_token_utils.h',
2864             'tools/balsa/balsa_visitor_interface.h',
2865             'tools/balsa/http_message_constants.cc',
2866             'tools/balsa/http_message_constants.h',
2867             'tools/balsa/noop_balsa_visitor.h',
2868             'tools/balsa/simple_buffer.cc',
2869             'tools/balsa/simple_buffer.h',
2870             'tools/balsa/split.cc',
2871             'tools/balsa/split.h',
2872             'tools/balsa/string_piece_utils.h',
2873           ],
2874         },
2875         {
2876           'target_name': 'epoll_server',
2877           'type': 'static_library',
2878           'dependencies': [
2879             '../base/base.gyp:base',
2880             'net',
2881           ],
2882           'sources': [
2883             'tools/epoll_server/epoll_server.cc',
2884             'tools/epoll_server/epoll_server.h',
2885           ],
2886         },
2887         {
2888           'target_name': 'flip_in_mem_edsm_server_base',
2889           'type': 'static_library',
2890           'cflags': [
2891             '-Wno-deprecated',
2892           ],
2893           'dependencies': [
2894             '../base/base.gyp:base',
2895             '../third_party/openssl/openssl.gyp:openssl',
2896             'balsa',
2897             'epoll_server',
2898             'net',
2899           ],
2900           'sources': [
2901             'tools/dump_cache/url_to_filename_encoder.cc',
2902             'tools/dump_cache/url_to_filename_encoder.h',
2903             'tools/dump_cache/url_utilities.h',
2904             'tools/dump_cache/url_utilities.cc',
2905             'tools/flip_server/acceptor_thread.h',
2906             'tools/flip_server/acceptor_thread.cc',
2907             'tools/flip_server/create_listener.cc',
2908             'tools/flip_server/create_listener.h',
2909             'tools/flip_server/constants.h',
2910             'tools/flip_server/flip_config.cc',
2911             'tools/flip_server/flip_config.h',
2912             'tools/flip_server/http_interface.cc',
2913             'tools/flip_server/http_interface.h',
2914             'tools/flip_server/loadtime_measurement.h',
2915             'tools/flip_server/mem_cache.h',
2916             'tools/flip_server/mem_cache.cc',
2917             'tools/flip_server/output_ordering.cc',
2918             'tools/flip_server/output_ordering.h',
2919             'tools/flip_server/ring_buffer.cc',
2920             'tools/flip_server/ring_buffer.h',
2921             'tools/flip_server/sm_connection.cc',
2922             'tools/flip_server/sm_connection.h',
2923             'tools/flip_server/sm_interface.h',
2924             'tools/flip_server/spdy_ssl.cc',
2925             'tools/flip_server/spdy_ssl.h',
2926             'tools/flip_server/spdy_interface.cc',
2927             'tools/flip_server/spdy_interface.h',
2928             'tools/flip_server/spdy_util.cc',
2929             'tools/flip_server/spdy_util.h',
2930             'tools/flip_server/streamer_interface.cc',
2931             'tools/flip_server/streamer_interface.h',
2932           ],
2933         },
2934         {
2935           'target_name': 'flip_in_mem_edsm_server_unittests',
2936           'type': 'executable',
2937           'dependencies': [
2938               '../testing/gtest.gyp:gtest',
2939               '../testing/gmock.gyp:gmock',
2940               '../third_party/openssl/openssl.gyp:openssl',
2941               'flip_in_mem_edsm_server_base',
2942               'net',
2943               'net_test_support',
2944           ],
2945           'sources': [
2946             'tools/flip_server/flip_test_utils.cc',
2947             'tools/flip_server/flip_test_utils.h',
2948             'tools/flip_server/http_interface_test.cc',
2949             'tools/flip_server/mem_cache_test.cc',
2950             'tools/flip_server/run_all_tests.cc',
2951             'tools/flip_server/spdy_interface_test.cc',
2952           ],
2953         },
2954         {
2955           'target_name': 'flip_in_mem_edsm_server',
2956           'type': 'executable',
2957           'cflags': [
2958             '-Wno-deprecated',
2959           ],
2960           'dependencies': [
2961             '../base/base.gyp:base',
2962             'flip_in_mem_edsm_server_base',
2963             'net',
2964           ],
2965           'sources': [
2966             'tools/flip_server/flip_in_mem_edsm_server.cc',
2967           ],
2968         },
2969         {
2970           'target_name': 'quic_base',
2971           'type': 'static_library',
2972           'dependencies': [
2973             '../base/base.gyp:base',
2974             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
2975             '../crypto/crypto.gyp:crypto',
2976             '../third_party/openssl/openssl.gyp:openssl',
2977             '../url/url.gyp:url_lib',
2978             'balsa',
2979             'epoll_server',
2980             'net',
2981           ],
2982           'sources': [
2983             'tools/quic/quic_client.cc',
2984             'tools/quic/quic_client.h',
2985             'tools/quic/quic_client_session.cc',
2986             'tools/quic/quic_client_session.h',
2987             'tools/quic/quic_default_packet_writer.cc',
2988             'tools/quic/quic_default_packet_writer.h',
2989             'tools/quic/quic_dispatcher.h',
2990             'tools/quic/quic_dispatcher.cc',
2991             'tools/quic/quic_epoll_clock.cc',
2992             'tools/quic/quic_epoll_clock.h',
2993             'tools/quic/quic_epoll_connection_helper.cc',
2994             'tools/quic/quic_epoll_connection_helper.h',
2995             'tools/quic/quic_in_memory_cache.cc',
2996             'tools/quic/quic_in_memory_cache.h',
2997             'tools/quic/quic_packet_writer_wrapper.cc',
2998             'tools/quic/quic_packet_writer_wrapper.h',
2999             'tools/quic/quic_server.cc',
3000             'tools/quic/quic_server.h',
3001             'tools/quic/quic_server_session.cc',
3002             'tools/quic/quic_server_session.h',
3003             'tools/quic/quic_socket_utils.cc',
3004             'tools/quic/quic_socket_utils.h',
3005             'tools/quic/quic_spdy_client_stream.cc',
3006             'tools/quic/quic_spdy_client_stream.h',
3007             'tools/quic/quic_spdy_server_stream.cc',
3008             'tools/quic/quic_spdy_server_stream.h',
3009             'tools/quic/quic_time_wait_list_manager.h',
3010             'tools/quic/quic_time_wait_list_manager.cc',
3011             'tools/quic/spdy_utils.cc',
3012             'tools/quic/spdy_utils.h',
3013           ],
3014         },
3015         {
3016           'target_name': 'quic_client',
3017           'type': 'executable',
3018           'dependencies': [
3019             '../base/base.gyp:base',
3020             '../third_party/openssl/openssl.gyp:openssl',
3021             'net',
3022             'quic_base',
3023           ],
3024           'sources': [
3025             'tools/quic/quic_client_bin.cc',
3026           ],
3027         },
3028         {
3029           'target_name': 'quic_server',
3030           'type': 'executable',
3031           'dependencies': [
3032             '../base/base.gyp:base',
3033             '../third_party/openssl/openssl.gyp:openssl',
3034             'net',
3035             'quic_base',
3036           ],
3037           'sources': [
3038             'tools/quic/quic_server_bin.cc',
3039           ],
3040         }
3041       ]
3042     }],
3043     ['OS=="android"', {
3044       'targets': [
3045         {
3046           'target_name': 'net_jni_headers',
3047           'type': 'none',
3048           'sources': [
3049             'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
3050             'android/java/src/org/chromium/net/AndroidKeyStore.java',
3051             'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
3052             'android/java/src/org/chromium/net/AndroidPrivateKey.java',
3053             'android/java/src/org/chromium/net/GURLUtils.java',
3054             'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
3055             'android/java/src/org/chromium/net/ProxyChangeListener.java',
3056             'android/java/src/org/chromium/net/X509Util.java',
3057           ],
3058           'variables': {
3059             'jni_gen_package': 'net',
3060             'jni_generator_ptr_type': 'long',
3061           },
3062           'includes': [ '../build/jni_generator.gypi' ],
3063         },
3064         {
3065           'target_name': 'net_test_jni_headers',
3066           'type': 'none',
3067           'sources': [
3068             'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
3069           ],
3070           'variables': {
3071             'jni_gen_package': 'net',
3072             'jni_generator_ptr_type': 'long',
3073           },
3074           'includes': [ '../build/jni_generator.gypi' ],
3075         },
3076         {
3077           'target_name': 'net_java',
3078           'type': 'none',
3079           'variables': {
3080             'java_in_dir': '../net/android/java',
3081           },
3082           'dependencies': [
3083             '../base/base.gyp:base',
3084             'cert_verify_status_android_java',
3085             'certificate_mime_types_java',
3086             'net_errors_java',
3087             'private_key_types_java',
3088             'remote_android_keystore_aidl',
3089           ],
3090           'includes': [ '../build/java.gypi' ],
3091         },
3092         {
3093           # Processes the interface files for communication with an Android KeyStore
3094           # running in a separate process.
3095           'target_name': 'remote_android_keystore_aidl',
3096           'type': 'none',
3097           'variables': {
3098             'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
3099           },
3100           'sources': [
3101             '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
3102             '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
3103           ],
3104           'includes': [ '../build/java_aidl.gypi' ],
3105         },
3106         {
3107           'target_name': 'net_java_test_support',
3108           'type': 'none',
3109           'variables': {
3110             'java_in_dir': '../net/test/android/javatests',
3111           },
3112           'includes': [ '../build/java.gypi' ],
3113         },
3114         {
3115           'target_name': 'net_javatests',
3116           'type': 'none',
3117           'variables': {
3118             'java_in_dir': '../net/android/javatests',
3119           },
3120           'dependencies': [
3121             '../base/base.gyp:base',
3122             '../base/base.gyp:base_java_test_support',
3123             'net_java',
3124           ],
3125           'includes': [ '../build/java.gypi' ],
3126         },
3127         {
3128           'target_name': 'net_errors_java',
3129           'type': 'none',
3130           'sources': [
3131             'android/java/NetError.template',
3132           ],
3133           'variables': {
3134             'package_name': 'org/chromium/net',
3135             'template_deps': ['base/net_error_list.h'],
3136           },
3137           'includes': [ '../build/android/java_cpp_template.gypi' ],
3138         },
3139         {
3140           'target_name': 'certificate_mime_types_java',
3141           'type': 'none',
3142           'sources': [
3143             'android/java/CertificateMimeType.template',
3144           ],
3145           'variables': {
3146             'package_name': 'org/chromium/net',
3147             'template_deps': ['base/mime_util_certificate_type_list.h'],
3148           },
3149           'includes': [ '../build/android/java_cpp_template.gypi' ],
3150         },
3151         {
3152           'target_name': 'cert_verify_status_android_java',
3153           'type': 'none',
3154           'sources': [
3155             'android/java/CertVerifyStatusAndroid.template',
3156           ],
3157           'variables': {
3158             'package_name': 'org/chromium/net',
3159             'template_deps': ['android/cert_verify_status_android_list.h'],
3160           },
3161           'includes': [ '../build/android/java_cpp_template.gypi' ],
3162         },
3163         {
3164           'target_name': 'private_key_types_java',
3165           'type': 'none',
3166           'sources': [
3167             'android/java/PrivateKeyType.template',
3168           ],
3169           'variables': {
3170             'package_name': 'org/chromium/net',
3171             'template_deps': ['android/private_key_type_list.h'],
3172           },
3173           'includes': [ '../build/android/java_cpp_template.gypi' ],
3174         },
3175       ],
3176     }],
3177     # Special target to wrap a gtest_target_type==shared_library
3178     # net_unittests into an android apk for execution.
3179     # See base.gyp for TODO(jrg)s about this strategy.
3180     ['OS == "android" and gtest_target_type == "shared_library"', {
3181       'targets': [
3182         {
3183           'target_name': 'net_unittests_apk',
3184           'type': 'none',
3185           'dependencies': [
3186             'net_java',
3187             'net_javatests',
3188             'net_unittests',
3189           ],
3190           'variables': {
3191             'test_suite_name': 'net_unittests',
3192             'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)net_unittests<(SHARED_LIB_SUFFIX)',
3193           },
3194           'includes': [ '../build/apk_test.gypi' ],
3195         },
3196       ],
3197     }],
3198     ['OS == "android" or OS == "linux"', {
3199       'targets': [
3200         {
3201           'target_name': 'disk_cache_memory_test',
3202           'type': 'executable',
3203           'dependencies': [
3204             '../base/base.gyp:base',
3205             'net',
3206           ],
3207           'sources': [
3208             'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
3209           ],
3210         },
3211       ],
3212     }],
3213     ['test_isolation_mode != "noop"', {
3214       'targets': [
3215         {
3216           'target_name': 'net_unittests_run',
3217           'type': 'none',
3218           'dependencies': [
3219             'net_unittests',
3220           ],
3221           'includes': [
3222             '../build/isolate.gypi',
3223             'net_unittests.isolate',
3224           ],
3225           'sources': [
3226             'net_unittests.isolate',
3227           ],
3228         },
3229       ],
3230     }],
3231   ],