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