- add sources.
[platform/framework/web/crosswalk.git] / src / tools / gn / secondary / net / BUILD.gn
1 # Copyright (c) 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.
4
5 import("//crypto/ssl/flags.gni")
6 import("//tools/grit/grit_rule.gni")
7
8 component("net") {
9   external = true
10   sources = [
11     "android/cert_verify_result_android.h",
12     "android/cert_verify_result_android_list.h",
13     "android/gurl_utils.cc",
14     "android/gurl_utils.h",
15     "android/keystore.cc",
16     "android/keystore.h",
17     "android/keystore_openssl.cc",
18     "android/keystore_openssl.h",
19     "android/net_jni_registrar.cc",
20     "android/net_jni_registrar.h",
21     "android/network_change_notifier_android.cc",
22     "android/network_change_notifier_android.h",
23     "android/network_change_notifier_delegate_android.cc",
24     "android/network_change_notifier_delegate_android.h",
25     "android/network_change_notifier_factory_android.cc",
26     "android/network_change_notifier_factory_android.h",
27     "android/network_library.cc",
28     "android/network_library.h",
29     "base/address_family.h",
30     "base/address_list.cc",
31     "base/address_list.h",
32     "base/address_tracker_linux.cc",
33     "base/address_tracker_linux.h",
34     "base/auth.cc",
35     "base/auth.h",
36     "base/backoff_entry.cc",
37     "base/backoff_entry.h",
38     "base/bandwidth_metrics.cc",
39     "base/bandwidth_metrics.h",
40     "base/big_endian.cc",
41     "base/big_endian.h",
42     "base/cache_type.h",
43     "base/completion_callback.h",
44     "base/connection_type_histograms.cc",
45     "base/connection_type_histograms.h",
46     "base/crypto_module.h",
47     "base/crypto_module_nss.cc",
48     "base/crypto_module_openssl.cc",
49     "base/data_url.cc",
50     "base/data_url.h",
51     "base/directory_lister.cc",
52     "base/directory_lister.h",
53     "base/dns_reloader.cc",
54     "base/dns_reloader.h",
55     "base/dns_util.cc",
56     "base/dns_util.h",
57     "base/escape.cc",
58     "base/escape.h",
59     "base/expiring_cache.h",
60     "base/file_stream.cc",
61     "base/file_stream.h",
62     "base/file_stream_context.cc",
63     "base/file_stream_context.h",
64     "base/file_stream_context_posix.cc",
65     "base/file_stream_context_win.cc",
66     "base/file_stream_metrics.cc",
67     "base/file_stream_metrics.h",
68     "base/file_stream_metrics_posix.cc",
69     "base/file_stream_metrics_win.cc",
70     "base/file_stream_net_log_parameters.cc",
71     "base/file_stream_net_log_parameters.h",
72     "base/file_stream_whence.h",
73     "base/filter.cc",
74     "base/filter.h",
75     "base/int128.cc",
76     "base/int128.h",
77     "base/gzip_filter.cc",
78     "base/gzip_filter.h",
79     "base/gzip_header.cc",
80     "base/gzip_header.h",
81     "base/hash_value.cc",
82     "base/hash_value.h",
83     "base/host_mapping_rules.cc",
84     "base/host_mapping_rules.h",
85     "base/host_port_pair.cc",
86     "base/host_port_pair.h",
87     "base/io_buffer.cc",
88     "base/io_buffer.h",
89     "base/iovec.h",
90     "base/ip_endpoint.cc",
91     "base/ip_endpoint.h",
92     "base/keygen_handler.cc",
93     "base/keygen_handler.h",
94     "base/keygen_handler_mac.cc",
95     "base/keygen_handler_nss.cc",
96     "base/keygen_handler_openssl.cc",
97     "base/keygen_handler_win.cc",
98     "base/linked_hash_map.h",
99     "base/load_flags.h",
100     "base/load_flags_list.h",
101     "base/load_states.h",
102     "base/load_states_list.h",
103     "base/load_timing_info.cc",
104     "base/load_timing_info.h",
105     "base/mime_sniffer.cc",
106     "base/mime_sniffer.h",
107     "base/mime_util.cc",
108     "base/mime_util.h",
109     "base/net_error_list.h",
110     "base/net_errors.cc",
111     "base/net_errors.h",
112     "base/net_errors_posix.cc",
113     "base/net_errors_win.cc",
114     "base/net_export.h",
115     "base/net_log.cc",
116     "base/net_log.h",
117     "base/net_log_logger.cc",
118     "base/net_log_logger.h",
119     "base/net_log_event_type_list.h",
120     "base/net_log_source_type_list.h",
121     "base/net_module.cc",
122     "base/net_module.h",
123     "base/net_util.cc",
124     "base/net_util.h",
125     "base/net_util_posix.cc",
126     "base/net_util_win.cc",
127     "base/network_change_notifier.cc",
128     "base/network_change_notifier.h",
129     "base/network_change_notifier_factory.h",
130     "base/network_change_notifier_linux.cc",
131     "base/network_change_notifier_linux.h",
132     "base/network_change_notifier_mac.cc",
133     "base/network_change_notifier_mac.h",
134     "base/network_change_notifier_win.cc",
135     "base/network_change_notifier_win.h",
136     "base/network_config_watcher_mac.cc",
137     "base/network_config_watcher_mac.h",
138     "base/network_delegate.cc",
139     "base/network_delegate.h",
140     "base/network_time_notifier.cc",
141     "base/network_time_notifier.h",
142     "base/nss_memio.c",
143     "base/nss_memio.h",
144     "base/openssl_private_key_store.h",
145     "base/openssl_private_key_store_android.cc",
146     "base/openssl_private_key_store_memory.cc",
147     "base/platform_mime_util.h",
148     # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
149     "base/platform_mime_util_linux.cc",
150     "base/platform_mime_util_mac.mm",
151     "base/platform_mime_util_win.cc",
152     "base/prioritized_dispatcher.cc",
153     "base/prioritized_dispatcher.h",
154     "base/priority_queue.h",
155     "base/rand_callback.h",
156     "base/registry_controlled_domains/registry_controlled_domain.cc",
157     "base/registry_controlled_domains/registry_controlled_domain.h",
158     "base/request_priority.h",
159     "base/sdch_filter.cc",
160     "base/sdch_filter.h",
161     "base/sdch_manager.cc",
162     "base/sdch_manager.h",
163     "base/static_cookie_policy.cc",
164     "base/static_cookie_policy.h",
165     "base/sys_addrinfo.h",
166     "base/test_data_stream.cc",
167     "base/test_data_stream.h",
168     "base/upload_bytes_element_reader.cc",
169     "base/upload_bytes_element_reader.h",
170     "base/upload_data.cc",
171     "base/upload_data.h",
172     "base/upload_data_stream.cc",
173     "base/upload_data_stream.h",
174     "base/upload_element.cc",
175     "base/upload_element.h",
176     "base/upload_element_reader.cc",
177     "base/upload_element_reader.h",
178     "base/upload_file_element_reader.cc",
179     "base/upload_file_element_reader.h",
180     "base/upload_progress.h",
181     "base/url_util.cc",
182     "base/url_util.h",
183     "base/winsock_init.cc",
184     "base/winsock_init.h",
185     "base/winsock_util.cc",
186     "base/winsock_util.h",
187     "base/zap.cc",
188     "base/zap.h",
189     "cert/asn1_util.cc",
190     "cert/asn1_util.h",
191     "cert/cert_database.cc",
192     "cert/cert_database.h",
193     "cert/cert_database_android.cc",
194     "cert/cert_database_ios.cc",
195     "cert/cert_database_mac.cc",
196     "cert/cert_database_nss.cc",
197     "cert/cert_database_openssl.cc",
198     "cert/cert_database_win.cc",
199     "cert/cert_status_flags.cc",
200     "cert/cert_status_flags.h",
201     "cert/cert_trust_anchor_provider.h",
202     "cert/cert_verifier.cc",
203     "cert/cert_verifier.h",
204     "cert/cert_verify_proc.cc",
205     "cert/cert_verify_proc.h",
206     "cert/cert_verify_proc_android.cc",
207     "cert/cert_verify_proc_android.h",
208     "cert/cert_verify_proc_mac.cc",
209     "cert/cert_verify_proc_mac.h",
210     "cert/cert_verify_proc_nss.cc",
211     "cert/cert_verify_proc_nss.h",
212     "cert/cert_verify_proc_openssl.cc",
213     "cert/cert_verify_proc_openssl.h",
214     "cert/cert_verify_proc_win.cc",
215     "cert/cert_verify_proc_win.h",
216     "cert/cert_verify_result.cc",
217     "cert/cert_verify_result.h",
218     "cert/crl_set.cc",
219     "cert/crl_set.h",
220     "cert/ev_root_ca_metadata.cc",
221     "cert/ev_root_ca_metadata.h",
222     "cert/jwk_serializer_nss.cc",
223     "cert/jwk_serializer_openssl.cc",
224     "cert/jwk_serializer.h",
225     "cert/multi_threaded_cert_verifier.cc",
226     "cert/multi_threaded_cert_verifier.h",
227     "cert/nss_cert_database.cc",
228     "cert/nss_cert_database.h",
229     "cert/pem_tokenizer.cc",
230     "cert/pem_tokenizer.h",
231     "cert/single_request_cert_verifier.cc",
232     "cert/single_request_cert_verifier.h",
233     "cert/test_root_certs.cc",
234     "cert/test_root_certs.h",
235     "cert/test_root_certs_mac.cc",
236     "cert/test_root_certs_nss.cc",
237     "cert/test_root_certs_openssl.cc",
238     "cert/test_root_certs_android.cc",
239     "cert/test_root_certs_win.cc",
240     "cert/x509_cert_types.cc",
241     "cert/x509_cert_types.h",
242     "cert/x509_cert_types_mac.cc",
243     "cert/x509_cert_types_win.cc",
244     "cert/x509_certificate.cc",
245     "cert/x509_certificate.h",
246     "cert/x509_certificate_ios.cc",
247     "cert/x509_certificate_mac.cc",
248     "cert/x509_certificate_net_log_param.cc",
249     "cert/x509_certificate_net_log_param.h",
250     "cert/x509_certificate_nss.cc",
251     "cert/x509_certificate_openssl.cc",
252     "cert/x509_certificate_win.cc",
253     "cert/x509_util.h",
254     "cert/x509_util.cc",
255     "cert/x509_util_android.cc",
256     "cert/x509_util_android.h",
257     "cert/x509_util_ios.cc",
258     "cert/x509_util_ios.h",
259     "cert/x509_util_mac.cc",
260     "cert/x509_util_mac.h",
261     "cert/x509_util_nss.cc",
262     "cert/x509_util_nss.h",
263     "cert/x509_util_openssl.cc",
264     "cert/x509_util_openssl.h",
265     "cookies/canonical_cookie.cc",
266     "cookies/canonical_cookie.h",
267     "cookies/cookie_constants.cc",
268     "cookies/cookie_constants.h",
269     "cookies/cookie_monster.cc",
270     "cookies/cookie_monster.h",
271     "cookies/cookie_options.h",
272     "cookies/cookie_store.cc",
273     "cookies/cookie_store.h",
274     "cookies/cookie_util.cc",
275     "cookies/cookie_util.h",
276     "cookies/parsed_cookie.cc",
277     "cookies/parsed_cookie.h",
278     "disk_cache/addr.cc",
279     "disk_cache/addr.h",
280     "disk_cache/backend_impl.cc",
281     "disk_cache/backend_impl.h",
282     "disk_cache/bitmap.cc",
283     "disk_cache/bitmap.h",
284     "disk_cache/block_files.cc",
285     "disk_cache/block_files.h",
286     "disk_cache/cache_creator.cc",
287     "disk_cache/cache_util.h",
288     "disk_cache/cache_util.cc",
289     "disk_cache/cache_util_posix.cc",
290     "disk_cache/cache_util_win.cc",
291     "disk_cache/disk_cache.h",
292     "disk_cache/disk_format.cc",
293     "disk_cache/disk_format.h",
294     "disk_cache/disk_format_base.h",
295     "disk_cache/entry_impl.cc",
296     "disk_cache/entry_impl.h",
297     "disk_cache/errors.h",
298     "disk_cache/eviction.cc",
299     "disk_cache/eviction.h",
300     "disk_cache/experiments.h",
301     "disk_cache/file.cc",
302     "disk_cache/file.h",
303     "disk_cache/file_block.h",
304     "disk_cache/file_lock.cc",
305     "disk_cache/file_lock.h",
306     "disk_cache/file_posix.cc",
307     "disk_cache/file_win.cc",
308     "disk_cache/histogram_macros.h",
309     "disk_cache/in_flight_backend_io.cc",
310     "disk_cache/in_flight_backend_io.h",
311     "disk_cache/in_flight_io.cc",
312     "disk_cache/in_flight_io.h",
313     "disk_cache/mapped_file.h",
314     "disk_cache/mapped_file_posix.cc",
315     "disk_cache/mapped_file_avoid_mmap_posix.cc",
316     "disk_cache/mapped_file_win.cc",
317     "disk_cache/mem_backend_impl.cc",
318     "disk_cache/mem_backend_impl.h",
319     "disk_cache/mem_entry_impl.cc",
320     "disk_cache/mem_entry_impl.h",
321     "disk_cache/mem_rankings.cc",
322     "disk_cache/mem_rankings.h",
323     "disk_cache/net_log_parameters.cc",
324     "disk_cache/net_log_parameters.h",
325     "disk_cache/rankings.cc",
326     "disk_cache/rankings.h",
327     "disk_cache/sparse_control.cc",
328     "disk_cache/sparse_control.h",
329     "disk_cache/stats.cc",
330     "disk_cache/stats.h",
331     "disk_cache/stats_histogram.cc",
332     "disk_cache/stats_histogram.h",
333     "disk_cache/storage_block-inl.h",
334     "disk_cache/storage_block.h",
335     "disk_cache/stress_support.h",
336     "disk_cache/trace.cc",
337     "disk_cache/trace.h",
338     "disk_cache/tracing_cache_backend.cc",
339     "disk_cache/tracing_cache_backend.h",
340     "disk_cache/simple/simple_backend_impl.cc",
341     "disk_cache/simple/simple_backend_impl.h",
342     "disk_cache/simple/simple_entry_format.cc",
343     "disk_cache/simple/simple_entry_format.h",
344     "disk_cache/simple/simple_entry_impl.cc",
345     "disk_cache/simple/simple_entry_impl.h",
346     "disk_cache/simple/simple_entry_operation.cc",
347     "disk_cache/simple/simple_entry_operation.h",
348     "disk_cache/simple/simple_index.cc",
349     "disk_cache/simple/simple_index.h",
350     "disk_cache/simple/simple_index_file.cc",
351     "disk_cache/simple/simple_index_file.h",
352     "disk_cache/simple/simple_index_file_posix.cc",
353     "disk_cache/simple/simple_index_file_win.cc",
354     "disk_cache/simple/simple_net_log_parameters.cc",
355     "disk_cache/simple/simple_net_log_parameters.h",
356     "disk_cache/simple/simple_synchronous_entry.cc",
357     "disk_cache/simple/simple_synchronous_entry.h",
358     "disk_cache/simple/simple_util.cc",
359     "disk_cache/simple/simple_util.h",
360     "disk_cache/flash/flash_entry_impl.cc",
361     "disk_cache/flash/flash_entry_impl.h",
362     "disk_cache/flash/format.h",
363     "disk_cache/flash/internal_entry.cc",
364     "disk_cache/flash/internal_entry.h",
365     "disk_cache/flash/log_store.cc",
366     "disk_cache/flash/log_store.h",
367     "disk_cache/flash/log_store_entry.cc",
368     "disk_cache/flash/log_store_entry.h",
369     "disk_cache/flash/segment.cc",
370     "disk_cache/flash/segment.h",
371     "disk_cache/flash/storage.cc",
372     "disk_cache/flash/storage.h",
373     "disk_cache/v3/disk_format_v3.h",
374     "dns/address_sorter.h",
375     "dns/address_sorter_posix.cc",
376     "dns/address_sorter_posix.h",
377     "dns/address_sorter_win.cc",
378     "dns/dns_client.cc",
379     "dns/dns_client.h",
380     "dns/dns_config_service.cc",
381     "dns/dns_config_service.h",
382     "dns/dns_config_service_posix.cc",
383     "dns/dns_config_service_posix.h",
384     "dns/dns_config_service_win.cc",
385     "dns/dns_config_service_win.h",
386     "dns/dns_hosts.cc",
387     "dns/dns_hosts.h",
388     "dns/dns_protocol.h",
389     "dns/dns_query.cc",
390     "dns/dns_query.h",
391     "dns/dns_response.cc",
392     "dns/dns_response.h",
393     "dns/dns_session.cc",
394     "dns/dns_session.h",
395     "dns/dns_socket_pool.cc",
396     "dns/dns_socket_pool.h",
397     "dns/dns_transaction.cc",
398     "dns/dns_transaction.h",
399     "dns/host_cache.cc",
400     "dns/host_cache.h",
401     "dns/host_resolver.cc",
402     "dns/host_resolver.h",
403     "dns/host_resolver_impl.cc",
404     "dns/host_resolver_impl.h",
405     "dns/host_resolver_proc.cc",
406     "dns/host_resolver_proc.h",
407     "dns/mapped_host_resolver.cc",
408     "dns/mapped_host_resolver.h",
409     "dns/mdns_cache.cc",
410     "dns/mdns_cache.h",
411     "dns/mdns_client.cc",
412     "dns/mdns_client.h",
413     "dns/mdns_client_impl.cc",
414     "dns/mdns_client_impl.h",
415     "dns/notify_watcher_mac.cc",
416     "dns/notify_watcher_mac.h",
417     "dns/record_parsed.cc",
418     "dns/record_parsed.h",
419     "dns/record_rdata.cc",
420     "dns/record_rdata.h",
421     "dns/serial_worker.cc",
422     "dns/serial_worker.h",
423     "dns/single_request_host_resolver.cc",
424     "dns/single_request_host_resolver.h",
425     "ftp/ftp_auth_cache.cc",
426     "ftp/ftp_auth_cache.h",
427     "ftp/ftp_ctrl_response_buffer.cc",
428     "ftp/ftp_ctrl_response_buffer.h",
429     "ftp/ftp_directory_listing_parser.cc",
430     "ftp/ftp_directory_listing_parser.h",
431     "ftp/ftp_directory_listing_parser_ls.cc",
432     "ftp/ftp_directory_listing_parser_ls.h",
433     "ftp/ftp_directory_listing_parser_netware.cc",
434     "ftp/ftp_directory_listing_parser_netware.h",
435     "ftp/ftp_directory_listing_parser_os2.cc",
436     "ftp/ftp_directory_listing_parser_os2.h",
437     "ftp/ftp_directory_listing_parser_vms.cc",
438     "ftp/ftp_directory_listing_parser_vms.h",
439     "ftp/ftp_directory_listing_parser_windows.cc",
440     "ftp/ftp_directory_listing_parser_windows.h",
441     "ftp/ftp_network_layer.cc",
442     "ftp/ftp_network_layer.h",
443     "ftp/ftp_network_session.cc",
444     "ftp/ftp_network_session.h",
445     "ftp/ftp_network_transaction.cc",
446     "ftp/ftp_network_transaction.h",
447     "ftp/ftp_request_info.h",
448     "ftp/ftp_response_info.cc",
449     "ftp/ftp_response_info.h",
450     "ftp/ftp_server_type_histograms.cc",
451     "ftp/ftp_server_type_histograms.h",
452     "ftp/ftp_transaction.h",
453     "ftp/ftp_transaction_factory.h",
454     "ftp/ftp_util.cc",
455     "ftp/ftp_util.h",
456     "http/des.cc",
457     "http/des.h",
458     "http/http_atom_list.h",
459     "http/http_auth.cc",
460     "http/http_auth.h",
461     "http/http_auth_cache.cc",
462     "http/http_auth_cache.h",
463     "http/http_auth_controller.cc",
464     "http/http_auth_controller.h",
465     "http/http_auth_filter.cc",
466     "http/http_auth_filter.h",
467     "http/http_auth_filter_win.h",
468     "http/http_auth_gssapi_posix.cc",
469     "http/http_auth_gssapi_posix.h",
470     "http/http_auth_handler.cc",
471     "http/http_auth_handler.h",
472     "http/http_auth_handler_basic.cc",
473     "http/http_auth_handler_basic.h",
474     "http/http_auth_handler_digest.cc",
475     "http/http_auth_handler_digest.h",
476     "http/http_auth_handler_factory.cc",
477     "http/http_auth_handler_factory.h",
478     "http/http_auth_handler_negotiate.cc",
479     "http/http_auth_handler_negotiate.h",
480     "http/http_auth_handler_ntlm.cc",
481     "http/http_auth_handler_ntlm.h",
482     "http/http_auth_handler_ntlm_portable.cc",
483     "http/http_auth_handler_ntlm_win.cc",
484     "http/http_auth_sspi_win.cc",
485     "http/http_auth_sspi_win.h",
486     "http/http_basic_stream.cc",
487     "http/http_basic_stream.h",
488     "http/http_byte_range.cc",
489     "http/http_byte_range.h",
490     "http/http_cache.cc",
491     "http/http_cache.h",
492     "http/http_cache_transaction.cc",
493     "http/http_cache_transaction.h",
494     "http/http_content_disposition.cc",
495     "http/http_content_disposition.h",
496     "http/http_chunked_decoder.cc",
497     "http/http_chunked_decoder.h",
498     "http/http_network_layer.cc",
499     "http/http_network_layer.h",
500     "http/http_network_session.cc",
501     "http/http_network_session.h",
502     "http/http_network_session_peer.cc",
503     "http/http_network_session_peer.h",
504     "http/http_network_transaction.cc",
505     "http/http_network_transaction.h",
506     "http/http_pipelined_connection.h",
507     "http/http_pipelined_connection_impl.cc",
508     "http/http_pipelined_connection_impl.h",
509     "http/http_pipelined_host.cc",
510     "http/http_pipelined_host.h",
511     "http/http_pipelined_host_capability.h",
512     "http/http_pipelined_host_forced.cc",
513     "http/http_pipelined_host_forced.h",
514     "http/http_pipelined_host_impl.cc",
515     "http/http_pipelined_host_impl.h",
516     "http/http_pipelined_host_pool.cc",
517     "http/http_pipelined_host_pool.h",
518     "http/http_pipelined_stream.cc",
519     "http/http_pipelined_stream.h",
520     "http/http_proxy_client_socket.cc",
521     "http/http_proxy_client_socket.h",
522     "http/http_proxy_client_socket_pool.cc",
523     "http/http_proxy_client_socket_pool.h",
524     "http/http_request_headers.cc",
525     "http/http_request_headers.h",
526     "http/http_request_info.cc",
527     "http/http_request_info.h",
528     "http/http_response_body_drainer.cc",
529     "http/http_response_body_drainer.h",
530     "http/http_response_headers.cc",
531     "http/http_response_headers.h",
532     "http/http_response_info.cc",
533     "http/http_response_info.h",
534     "http/http_security_headers.cc",
535     "http/http_security_headers.h",
536     "http/http_server_properties.cc",
537     "http/http_server_properties.h",
538     "http/http_server_properties_impl.cc",
539     "http/http_server_properties_impl.h",
540     "http/http_status_code.cc",
541     "http/http_status_code.h",
542     "http/http_stream.h",
543     "http/http_stream_base.h",
544     "http/http_stream_factory.cc",
545     "http/http_stream_factory.h",
546     "http/http_stream_factory_impl.cc",
547     "http/http_stream_factory_impl.h",
548     "http/http_stream_factory_impl_job.cc",
549     "http/http_stream_factory_impl_job.h",
550     "http/http_stream_factory_impl_request.cc",
551     "http/http_stream_factory_impl_request.h",
552     "http/http_stream_parser.cc",
553     "http/http_stream_parser.h",
554     "http/http_transaction.h",
555     "http/http_transaction_delegate.h",
556     "http/http_transaction_factory.h",
557     "http/http_util.cc",
558     "http/http_util.h",
559     "http/http_util_icu.cc",
560     "http/http_vary_data.cc",
561     "http/http_vary_data.h",
562     "http/http_version.h",
563     "http/md4.cc",
564     "http/md4.h",
565     "http/partial_data.cc",
566     "http/partial_data.h",
567     "http/proxy_client_socket.h",
568     "http/proxy_client_socket.cc",
569     "http/proxy_connect_redirect_http_stream.h",
570     "http/proxy_connect_redirect_http_stream.cc",
571     "http/transport_security_state.cc",
572     "http/transport_security_state.h",
573     "http/transport_security_state_static.h",
574     "http/url_security_manager.cc",
575     "http/url_security_manager.h",
576     "http/url_security_manager_posix.cc",
577     "http/url_security_manager_win.cc",
578     "ocsp/nss_ocsp.cc",
579     "ocsp/nss_ocsp.h",
580     "proxy/dhcp_proxy_script_adapter_fetcher_win.cc",
581     "proxy/dhcp_proxy_script_adapter_fetcher_win.h",
582     "proxy/dhcp_proxy_script_fetcher.cc",
583     "proxy/dhcp_proxy_script_fetcher.h",
584     "proxy/dhcp_proxy_script_fetcher_factory.cc",
585     "proxy/dhcp_proxy_script_fetcher_factory.h",
586     "proxy/dhcp_proxy_script_fetcher_win.cc",
587     "proxy/dhcp_proxy_script_fetcher_win.h",
588     "proxy/dhcpcsvc_init_win.cc",
589     "proxy/dhcpcsvc_init_win.h",
590     "proxy/multi_threaded_proxy_resolver.cc",
591     "proxy/multi_threaded_proxy_resolver.h",
592     "proxy/network_delegate_error_observer.cc",
593     "proxy/network_delegate_error_observer.h",
594     "proxy/polling_proxy_config_service.cc",
595     "proxy/polling_proxy_config_service.h",
596     "proxy/proxy_bypass_rules.cc",
597     "proxy/proxy_bypass_rules.h",
598     "proxy/proxy_config.cc",
599     "proxy/proxy_config.h",
600     "proxy/proxy_config_service.h",
601     "proxy/proxy_config_service_android.cc",
602     "proxy/proxy_config_service_android.h",
603     "proxy/proxy_config_service_fixed.cc",
604     "proxy/proxy_config_service_fixed.h",
605     "proxy/proxy_config_service_ios.cc",
606     "proxy/proxy_config_service_ios.h",
607     "proxy/proxy_config_service_linux.cc",
608     "proxy/proxy_config_service_linux.h",
609     "proxy/proxy_config_service_mac.cc",
610     "proxy/proxy_config_service_mac.h",
611     "proxy/proxy_config_service_win.cc",
612     "proxy/proxy_config_service_win.h",
613     "proxy/proxy_config_source.cc",
614     "proxy/proxy_config_source.h",
615     "proxy/proxy_info.cc",
616     "proxy/proxy_info.h",
617     "proxy/proxy_list.cc",
618     "proxy/proxy_list.h",
619     "proxy/proxy_resolver.h",
620     "proxy/proxy_resolver_error_observer.h",
621     "proxy/proxy_resolver_mac.cc",
622     "proxy/proxy_resolver_mac.h",
623     "proxy/proxy_resolver_script.h",
624     "proxy/proxy_resolver_script_data.cc",
625     "proxy/proxy_resolver_script_data.h",
626     "proxy/proxy_resolver_winhttp.cc",
627     "proxy/proxy_resolver_winhttp.h",
628     "proxy/proxy_retry_info.h",
629     "proxy/proxy_script_decider.cc",
630     "proxy/proxy_script_decider.h",
631     "proxy/proxy_script_fetcher.h",
632     "proxy/proxy_script_fetcher_impl.cc",
633     "proxy/proxy_script_fetcher_impl.h",
634     "proxy/proxy_server.cc",
635     "proxy/proxy_server.h",
636     "proxy/proxy_server_mac.cc",
637     "proxy/proxy_service.cc",
638     "proxy/proxy_service.h",
639     "quic/congestion_control/available_channel_estimator.cc",
640     "quic/congestion_control/available_channel_estimator.h",
641     "quic/congestion_control/channel_estimator.cc",
642     "quic/congestion_control/channel_estimator.h",
643     "quic/congestion_control/cube_root.cc",
644     "quic/congestion_control/cube_root.h",
645     "quic/congestion_control/cubic.cc",
646     "quic/congestion_control/cubic.h",
647     "quic/congestion_control/fix_rate_receiver.cc",
648     "quic/congestion_control/fix_rate_receiver.h",
649     "quic/congestion_control/fix_rate_sender.cc",
650     "quic/congestion_control/fix_rate_sender.h",
651     "quic/congestion_control/hybrid_slow_start.cc",
652     "quic/congestion_control/hybrid_slow_start.h",
653     "quic/congestion_control/inter_arrival_bitrate_ramp_up.cc",
654     "quic/congestion_control/inter_arrival_bitrate_ramp_up.h",
655     "quic/congestion_control/inter_arrival_overuse_detector.cc",
656     "quic/congestion_control/inter_arrival_overuse_detector.h",
657     "quic/congestion_control/inter_arrival_probe.cc",
658     "quic/congestion_control/inter_arrival_probe.h",
659     "quic/congestion_control/inter_arrival_receiver.cc",
660     "quic/congestion_control/inter_arrival_receiver.h",
661     "quic/congestion_control/inter_arrival_sender.cc",
662     "quic/congestion_control/inter_arrival_sender.h",
663     "quic/congestion_control/inter_arrival_state_machine.cc",
664     "quic/congestion_control/inter_arrival_state_machine.h",
665     "quic/congestion_control/leaky_bucket.cc",
666     "quic/congestion_control/leaky_bucket.h",
667     "quic/congestion_control/paced_sender.cc",
668     "quic/congestion_control/paced_sender.h",
669     "quic/congestion_control/quic_congestion_manager.cc",
670     "quic/congestion_control/quic_congestion_manager.h",
671     "quic/congestion_control/quic_max_sized_map.h",
672     "quic/congestion_control/receive_algorithm_interface.cc",
673     "quic/congestion_control/receive_algorithm_interface.h",
674     "quic/congestion_control/send_algorithm_interface.cc",
675     "quic/congestion_control/send_algorithm_interface.h",
676     "quic/congestion_control/tcp_cubic_sender.cc",
677     "quic/congestion_control/tcp_cubic_sender.h",
678     "quic/congestion_control/tcp_receiver.cc",
679     "quic/congestion_control/tcp_receiver.h",
680     "quic/crypto/aes_128_gcm_12_decrypter.h",
681     "quic/crypto/aes_128_gcm_12_decrypter_nss.cc",
682     "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc",
683     "quic/crypto/aes_128_gcm_12_encrypter.h",
684     "quic/crypto/aes_128_gcm_12_encrypter_nss.cc",
685     "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc",
686     "quic/crypto/cert_compressor.cc",
687     "quic/crypto/cert_compressor.h",
688     "quic/crypto/channel_id.cc",
689     "quic/crypto/channel_id.h",
690     "quic/crypto/channel_id_nss.cc",
691     "quic/crypto/channel_id_openssl.cc",
692     "quic/crypto/common_cert_set.cc",
693     "quic/crypto/common_cert_set.h",
694     "quic/crypto/crypto_framer.cc",
695     "quic/crypto/crypto_framer.h",
696     "quic/crypto/crypto_handshake.cc",
697     "quic/crypto/crypto_handshake.h",
698     "quic/crypto/crypto_protocol.h",
699     "quic/crypto/crypto_secret_boxer.cc",
700     "quic/crypto/crypto_secret_boxer.h",
701     "quic/crypto/crypto_server_config.cc",
702     "quic/crypto/crypto_server_config.h",
703     "quic/crypto/crypto_server_config_protobuf.cc",
704     "quic/crypto/crypto_server_config_protobuf.h",
705     "quic/crypto/crypto_utils.cc",
706     "quic/crypto/crypto_utils.h",
707     "quic/crypto/curve25519_key_exchange.cc",
708     "quic/crypto/curve25519_key_exchange.h",
709     "quic/crypto/ephemeral_key_source.h",
710     "quic/crypto/key_exchange.h",
711     "quic/crypto/null_decrypter.cc",
712     "quic/crypto/null_decrypter.h",
713     "quic/crypto/null_encrypter.cc",
714     "quic/crypto/null_encrypter.h",
715     "quic/crypto/p256_key_exchange.h",
716     "quic/crypto/p256_key_exchange_nss.cc",
717     "quic/crypto/p256_key_exchange_openssl.cc",
718     "quic/crypto/proof_source.h",
719     "quic/crypto/proof_source_chromium.cc",
720     "quic/crypto/proof_source_chromium.h",
721     "quic/crypto/proof_verifier.cc",
722     "quic/crypto/proof_verifier_chromium.cc",
723     "quic/crypto/proof_verifier_chromium.h",
724     "quic/crypto/quic_decrypter.cc",
725     "quic/crypto/quic_decrypter.h",
726     "quic/crypto/quic_encrypter.cc",
727     "quic/crypto/quic_encrypter.h",
728     "quic/crypto/quic_random.cc",
729     "quic/crypto/quic_random.h",
730     "quic/crypto/scoped_evp_cipher_ctx.cc",
731     "quic/crypto/scoped_evp_cipher_ctx.h",
732     "quic/crypto/strike_register.cc",
733     "quic/crypto/strike_register.h",
734     "quic/crypto/source_address_token.cc",
735     "quic/crypto/source_address_token.h",
736     "quic/quic_alarm.cc",
737     "quic/quic_alarm.h",
738     "quic/quic_bandwidth.cc",
739     "quic/quic_bandwidth.h",
740     "quic/quic_blocked_writer_interface.h",
741     "quic/quic_client_session.cc",
742     "quic/quic_client_session.h",
743     "quic/quic_config.cc",
744     "quic/quic_config.h",
745     "quic/quic_crypto_client_stream.cc",
746     "quic/quic_crypto_client_stream.h",
747     "quic/quic_crypto_client_stream_factory.h",
748     "quic/quic_crypto_server_stream.cc",
749     "quic/quic_crypto_server_stream.h",
750     "quic/quic_crypto_stream.cc",
751     "quic/quic_crypto_stream.h",
752     "quic/quic_clock.cc",
753     "quic/quic_clock.h",
754     "quic/quic_connection.cc",
755     "quic/quic_connection.h",
756     "quic/quic_connection_helper.cc",
757     "quic/quic_connection_helper.h",
758     "quic/quic_connection_logger.cc",
759     "quic/quic_connection_logger.h",
760     "quic/quic_connection_stats.cc",
761     "quic/quic_connection_stats.h",
762     "quic/quic_data_reader.cc",
763     "quic/quic_data_reader.h",
764     "quic/quic_data_writer.cc",
765     "quic/quic_data_writer.h",
766     "quic/quic_fec_group.cc",
767     "quic/quic_fec_group.h",
768     "quic/quic_framer.cc",
769     "quic/quic_framer.h",
770     "quic/quic_http_stream.cc",
771     "quic/quic_http_stream.h",
772     "quic/quic_packet_creator.cc",
773     "quic/quic_packet_creator.h",
774     "quic/quic_packet_generator.cc",
775     "quic/quic_packet_generator.h",
776     "quic/quic_protocol.cc",
777     "quic/quic_protocol.h",
778     "quic/quic_received_packet_manager.cc",
779     "quic/quic_received_packet_manager.h",
780     "quic/quic_reliable_client_stream.cc",
781     "quic/quic_reliable_client_stream.h",
782     "quic/quic_sent_entropy_manager.cc",
783     "quic/quic_sent_entropy_manager.h",
784     "quic/quic_session.cc",
785     "quic/quic_session.h",
786     "quic/quic_spdy_compressor.cc",
787     "quic/quic_spdy_compressor.h",
788     "quic/quic_spdy_decompressor.cc",
789     "quic/quic_spdy_decompressor.h",
790     "quic/quic_stream_factory.cc",
791     "quic/quic_stream_factory.h",
792     "quic/quic_stream_sequencer.cc",
793     "quic/quic_stream_sequencer.h",
794     "quic/quic_time.cc",
795     "quic/quic_time.h",
796     "quic/quic_utils.cc",
797     "quic/quic_utils.h",
798     "quic/reliable_quic_stream.cc",
799     "quic/reliable_quic_stream.h",
800     "quic/spdy_utils.cc",
801     "quic/spdy_utils.h",
802     "socket/buffered_write_stream_socket.cc",
803     "socket/buffered_write_stream_socket.h",
804     "socket/client_socket_factory.cc",
805     "socket/client_socket_factory.h",
806     "socket/client_socket_handle.cc",
807     "socket/client_socket_handle.h",
808     "socket/client_socket_pool.cc",
809     "socket/client_socket_pool.h",
810     "socket/client_socket_pool_base.cc",
811     "socket/client_socket_pool_base.h",
812     "socket/client_socket_pool_histograms.cc",
813     "socket/client_socket_pool_histograms.h",
814     "socket/client_socket_pool_manager.cc",
815     "socket/client_socket_pool_manager.h",
816     "socket/client_socket_pool_manager_impl.cc",
817     "socket/client_socket_pool_manager_impl.h",
818     "socket/next_proto.h",
819     "socket/nss_ssl_util.cc",
820     "socket/nss_ssl_util.h",
821     "socket/server_socket.h",
822     "socket/socket_net_log_params.cc",
823     "socket/socket_net_log_params.h",
824     "socket/socket.h",
825     "socket/socks5_client_socket.cc",
826     "socket/socks5_client_socket.h",
827     "socket/socks_client_socket.cc",
828     "socket/socks_client_socket.h",
829     "socket/socks_client_socket_pool.cc",
830     "socket/socks_client_socket_pool.h",
831     "socket/ssl_client_socket.cc",
832     "socket/ssl_client_socket.h",
833     "socket/ssl_client_socket_nss.cc",
834     "socket/ssl_client_socket_nss.h",
835     "socket/ssl_client_socket_openssl.cc",
836     "socket/ssl_client_socket_openssl.h",
837     "socket/ssl_client_socket_pool.cc",
838     "socket/ssl_client_socket_pool.h",
839     "socket/ssl_error_params.cc",
840     "socket/ssl_error_params.h",
841     "socket/ssl_server_socket.h",
842     "socket/ssl_server_socket_nss.cc",
843     "socket/ssl_server_socket_nss.h",
844     "socket/ssl_server_socket_openssl.cc",
845     "socket/ssl_socket.h",
846     "socket/stream_listen_socket.cc",
847     "socket/stream_listen_socket.h",
848     "socket/stream_socket.cc",
849     "socket/stream_socket.h",
850     "socket/tcp_client_socket.cc",
851     "socket/tcp_client_socket.h",
852     "socket/tcp_listen_socket.cc",
853     "socket/tcp_listen_socket.h",
854     "socket/tcp_server_socket.cc",
855     "socket/tcp_server_socket.h",
856     "socket/tcp_socket_libevent.cc",
857     "socket/tcp_socket_libevent.h",
858     "socket/tcp_socket_win.cc",
859     "socket/tcp_socket_win.h",
860     "socket/transport_client_socket_pool.cc",
861     "socket/transport_client_socket_pool.h",
862     "socket/unix_domain_socket_posix.cc",
863     "socket/unix_domain_socket_posix.h",
864     "socket_stream/socket_stream.cc",
865     "socket_stream/socket_stream.h",
866     "socket_stream/socket_stream_job.cc",
867     "socket_stream/socket_stream_job.h",
868     "socket_stream/socket_stream_job_manager.cc",
869     "socket_stream/socket_stream_job_manager.h",
870     "socket_stream/socket_stream_metrics.cc",
871     "socket_stream/socket_stream_metrics.h",
872     "spdy/buffered_spdy_framer.cc",
873     "spdy/buffered_spdy_framer.h",
874     "spdy/spdy_bitmasks.h",
875     "spdy/spdy_buffer.cc",
876     "spdy/spdy_buffer.h",
877     "spdy/spdy_buffer_producer.cc",
878     "spdy/spdy_buffer_producer.h",
879     "spdy/spdy_credential_builder.cc",
880     "spdy/spdy_credential_builder.h",
881     "spdy/spdy_credential_state.cc",
882     "spdy/spdy_credential_state.h",
883     "spdy/spdy_frame_builder.cc",
884     "spdy/spdy_frame_builder.h",
885     "spdy/spdy_frame_reader.cc",
886     "spdy/spdy_frame_reader.h",
887     "spdy/spdy_framer.cc",
888     "spdy/spdy_framer.h",
889     "spdy/spdy_header_block.cc",
890     "spdy/spdy_header_block.h",
891     "spdy/spdy_http_stream.cc",
892     "spdy/spdy_http_stream.h",
893     "spdy/spdy_http_utils.cc",
894     "spdy/spdy_http_utils.h",
895     "spdy/spdy_priority_forest.h",
896     "spdy/spdy_protocol.cc",
897     "spdy/spdy_protocol.h",
898     "spdy/spdy_proxy_client_socket.cc",
899     "spdy/spdy_proxy_client_socket.h",
900     "spdy/spdy_read_queue.cc",
901     "spdy/spdy_read_queue.h",
902     "spdy/spdy_session.cc",
903     "spdy/spdy_session.h",
904     "spdy/spdy_session_key.cc",
905     "spdy/spdy_session_key.h",
906     "spdy/spdy_session_pool.cc",
907     "spdy/spdy_session_pool.h",
908     "spdy/spdy_stream.cc",
909     "spdy/spdy_stream.h",
910     "spdy/spdy_websocket_stream.cc",
911     "spdy/spdy_websocket_stream.h",
912     "spdy/spdy_write_queue.cc",
913     "spdy/spdy_write_queue.h",
914     "spdy/write_blocked_list.h",
915     "ssl/client_cert_store.h",
916     "ssl/client_cert_store_impl.h",
917     "ssl/client_cert_store_impl_mac.cc",
918     "ssl/client_cert_store_impl_nss.cc",
919     "ssl/client_cert_store_impl_win.cc",
920     "ssl/default_server_bound_cert_store.cc",
921     "ssl/default_server_bound_cert_store.h",
922     "ssl/openssl_client_key_store.cc",
923     "ssl/openssl_client_key_store.h",
924     "ssl/server_bound_cert_service.cc",
925     "ssl/server_bound_cert_service.h",
926     "ssl/server_bound_cert_store.cc",
927     "ssl/server_bound_cert_store.h",
928     "ssl/ssl_cert_request_info.cc",
929     "ssl/ssl_cert_request_info.h",
930     "ssl/ssl_cipher_suite_names.cc",
931     "ssl/ssl_cipher_suite_names.h",
932     "ssl/ssl_client_auth_cache.cc",
933     "ssl/ssl_client_auth_cache.h",
934     "ssl/ssl_client_cert_type.h",
935     "ssl/ssl_config_service.cc",
936     "ssl/ssl_config_service.h",
937     "ssl/ssl_config_service_defaults.cc",
938     "ssl/ssl_config_service_defaults.h",
939     "ssl/ssl_info.cc",
940     "ssl/ssl_info.h",
941     "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
942     "third_party/mozilla_security_manager/nsKeygenHandler.h",
943     "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
944     "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
945     "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
946     "third_party/mozilla_security_manager/nsPKCS12Blob.h",
947     "udp/datagram_client_socket.h",
948     "udp/datagram_server_socket.h",
949     "udp/datagram_socket.h",
950     "udp/udp_client_socket.cc",
951     "udp/udp_client_socket.h",
952     "udp/udp_net_log_parameters.cc",
953     "udp/udp_net_log_parameters.h",
954     "udp/udp_server_socket.cc",
955     "udp/udp_server_socket.h",
956     "udp/udp_socket.h",
957     "udp/udp_socket_libevent.cc",
958     "udp/udp_socket_libevent.h",
959     "udp/udp_socket_win.cc",
960     "udp/udp_socket_win.h",
961     "url_request/data_protocol_handler.cc",
962     "url_request/data_protocol_handler.h",
963     "url_request/file_protocol_handler.cc",
964     "url_request/file_protocol_handler.h",
965     "url_request/fraudulent_certificate_reporter.h",
966     "url_request/ftp_protocol_handler.cc",
967     "url_request/ftp_protocol_handler.h",
968     "url_request/http_user_agent_settings.h",
969     "url_request/protocol_intercept_job_factory.cc",
970     "url_request/protocol_intercept_job_factory.h",
971     "url_request/static_http_user_agent_settings.cc",
972     "url_request/static_http_user_agent_settings.h",
973     "url_request/url_fetcher.cc",
974     "url_request/url_fetcher.h",
975     "url_request/url_fetcher_core.cc",
976     "url_request/url_fetcher_core.h",
977     "url_request/url_fetcher_delegate.cc",
978     "url_request/url_fetcher_delegate.h",
979     "url_request/url_fetcher_factory.h",
980     "url_request/url_fetcher_impl.cc",
981     "url_request/url_fetcher_impl.h",
982     "url_request/url_fetcher_response_writer.cc",
983     "url_request/url_fetcher_response_writer.h",
984     "url_request/url_request.cc",
985     "url_request/url_request.h",
986     "url_request/url_request_about_job.cc",
987     "url_request/url_request_about_job.h",
988     "url_request/url_request_context.cc",
989     "url_request/url_request_context.h",
990     "url_request/url_request_context_builder.cc",
991     "url_request/url_request_context_builder.h",
992     "url_request/url_request_context_getter.cc",
993     "url_request/url_request_context_getter.h",
994     "url_request/url_request_context_storage.cc",
995     "url_request/url_request_context_storage.h",
996     "url_request/url_request_data_job.cc",
997     "url_request/url_request_data_job.h",
998     "url_request/url_request_error_job.cc",
999     "url_request/url_request_error_job.h",
1000     "url_request/url_request_file_dir_job.cc",
1001     "url_request/url_request_file_dir_job.h",
1002     "url_request/url_request_file_job.cc",
1003     "url_request/url_request_file_job.h",
1004     "url_request/url_request_filter.cc",
1005     "url_request/url_request_filter.h",
1006     "url_request/url_request_ftp_job.cc",
1007     "url_request/url_request_ftp_job.h",
1008     "url_request/url_request_http_job.cc",
1009     "url_request/url_request_http_job.h",
1010     "url_request/url_request_job.cc",
1011     "url_request/url_request_job.h",
1012     "url_request/url_request_job_factory.cc",
1013     "url_request/url_request_job_factory.h",
1014     "url_request/url_request_job_factory_impl.cc",
1015     "url_request/url_request_job_factory_impl.h",
1016     "url_request/url_request_job_manager.cc",
1017     "url_request/url_request_job_manager.h",
1018     "url_request/url_request_netlog_params.cc",
1019     "url_request/url_request_netlog_params.h",
1020     "url_request/url_request_redirect_job.cc",
1021     "url_request/url_request_redirect_job.h",
1022     "url_request/url_request_simple_job.cc",
1023     "url_request/url_request_simple_job.h",
1024     "url_request/url_request_status.h",
1025     "url_request/url_request_test_job.cc",
1026     "url_request/url_request_test_job.h",
1027     "url_request/url_request_throttler_entry.cc",
1028     "url_request/url_request_throttler_entry.h",
1029     "url_request/url_request_throttler_entry_interface.h",
1030     "url_request/url_request_throttler_header_adapter.cc",
1031     "url_request/url_request_throttler_header_adapter.h",
1032     "url_request/url_request_throttler_header_interface.h",
1033     "url_request/url_request_throttler_manager.cc",
1034     "url_request/url_request_throttler_manager.h",
1035     "url_request/view_cache_helper.cc",
1036     "url_request/view_cache_helper.h",
1037     "websockets/websocket_channel.cc",
1038     "websockets/websocket_channel.h",
1039     "websockets/websocket_errors.cc",
1040     "websockets/websocket_errors.h",
1041     "websockets/websocket_frame.cc",
1042     "websockets/websocket_frame.h",
1043     "websockets/websocket_frame_parser.cc",
1044     "websockets/websocket_frame_parser.h",
1045     "websockets/websocket_handshake_handler.cc",
1046     "websockets/websocket_handshake_handler.h",
1047     "websockets/websocket_job.cc",
1048     "websockets/websocket_job.h",
1049     "websockets/websocket_mux.h",
1050     "websockets/websocket_net_log_params.cc",
1051     "websockets/websocket_net_log_params.h",
1052     "websockets/websocket_stream.cc",
1053     "websockets/websocket_stream.h",
1054     "websockets/websocket_stream_base.h",
1055     "websockets/websocket_throttle.cc",
1056     "websockets/websocket_throttle.h",
1057   ]
1058
1059   defines = [ "NET_IMPLEMENTATION" ]
1060
1061   deps = [
1062     #":net_resources",
1063     "//base",
1064     "//base:base_i18n",
1065     "//base/third_party/dynamic_annotations",
1066     "//crypto",
1067     "//crypto/ssl:metassl",
1068     "//sdch",
1069     "//third_party/icu:icui18n",
1070     "//third_party/icu:icuuc",
1071     "//third_party/zlib",
1072     "//url",
1073   ]
1074
1075   if (is_win) {
1076     sources -= [
1077       "http/http_auth_handler_ntlm_portable.cc",
1078       "socket/tcp_socket_libevent.cc",
1079       "socket/tcp_socket_libevent.h",
1080       "ssl/client_cert_store_impl_nss.cc",
1081       "udp/udp_socket_libevent.cc",
1082       "udp/udp_socket_libevent.h",
1083     ]
1084     deps += [
1085       #"//net/third_party/nss:ssl",
1086       #"//third_party/nss:nspr",
1087       #"//third_party/nss:nss",
1088     ]
1089   } else {  # !is_win
1090     sources -= [
1091       "base/winsock_init.cc",
1092       "base/winsock_init.h",
1093       "base/winsock_util.cc",
1094       "base/winsock_util.h",
1095       "proxy/proxy_resolver_winhttp.cc",
1096       "proxy/proxy_resolver_winhttp.h",
1097     ]
1098   }
1099
1100   if (is_mac) {
1101     sources -= [
1102       "ssl/client_cert_store_impl_nss.cc",
1103     ]
1104     deps += [
1105       #"//net/third_party/nss:ssl",
1106       #"//third_party/nss:nspr",
1107       #"//third_party/nss:nss",
1108     ]
1109   }
1110
1111   if (is_linux && use_nss) {
1112     configs += "//third_party/nss:nss_linux_config"
1113   }
1114
1115   if (is_chromeos) {
1116     sources -= [
1117        "base/network_change_notifier_linux.cc",
1118        "base/network_change_notifier_linux.h",
1119        "base/network_change_notifier_netlink_linux.cc",
1120        "base/network_change_notifier_netlink_linux.h",
1121        "proxy/proxy_config_service_linux.cc",
1122        "proxy/proxy_config_service_linux.h",
1123     ]
1124   }
1125
1126   if (use_openssl) {
1127     sources -= [
1128       "base/crypto_module_nss.cc",
1129       "base/keygen_handler_nss.cc",
1130       "base/nss_memio.c",
1131       "base/nss_memio.h",
1132       "cert/cert_database_nss.cc",
1133       "cert/cert_verify_proc_nss.cc",
1134       "cert/cert_verify_proc_nss.h",
1135       "cert/jwk_serializer_nss.cc",
1136       "cert/nss_cert_database.cc",
1137       "cert/nss_cert_database.h",
1138       "cert/test_root_certs_nss.cc",
1139       "cert/x509_certificate_nss.cc",
1140       "cert/x509_util_nss.cc",
1141       "cert/x509_util_nss.h",
1142       "ocsp/nss_ocsp.cc",
1143       "ocsp/nss_ocsp.h",
1144       "quic/crypto/aes_128_gcm_12_decrypter_nss.cc",
1145       "quic/crypto/aes_128_gcm_12_encrypter_nss.cc",
1146       "quic/crypto/channel_id_nss.cc",
1147       "quic/crypto/p256_key_exchange_nss.cc",
1148       "socket/nss_ssl_util.cc",
1149       "socket/nss_ssl_util.h",
1150       "socket/ssl_client_socket_nss.cc",
1151       "socket/ssl_client_socket_nss.h",
1152       "socket/ssl_server_socket_nss.cc",
1153       "socket/ssl_server_socket_nss.h",
1154       "ssl/client_cert_store_impl_nss.cc",
1155       "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
1156       "third_party/mozilla_security_manager/nsKeygenHandler.h",
1157       "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
1158       "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
1159       "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
1160       "third_party/mozilla_security_manager/nsPKCS12Blob.h",
1161     ]
1162   } else {  # !use_openssl
1163     sources -= [
1164       "base/crypto_module_openssl.cc",
1165       "base/keygen_handler_openssl.cc",
1166       "base/openssl_private_key_store.h",
1167       #"base/openssl_private_key_store_android.cc",
1168       "base/openssl_private_key_store_memory.cc",
1169       "cert/cert_database_openssl.cc",
1170       "cert/cert_verify_proc_openssl.cc",
1171       "cert/cert_verify_proc_openssl.h",
1172       "cert/jwk_serializer_openssl.cc",
1173       "cert/test_root_certs_openssl.cc",
1174       "cert/x509_certificate_openssl.cc",
1175       "cert/x509_util_openssl.cc",
1176       "cert/x509_util_openssl.h",
1177       "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc",
1178       "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc",
1179       "quic/crypto/channel_id_openssl.cc",
1180       "quic/crypto/p256_key_exchange_openssl.cc",
1181       "quic/crypto/scoped_evp_cipher_ctx.cc",
1182       "quic/crypto/scoped_evp_cipher_ctx.h",
1183       "socket/ssl_client_socket_openssl.cc",
1184       "socket/ssl_client_socket_openssl.h",
1185       "socket/ssl_server_socket_openssl.cc",
1186       "ssl/openssl_client_key_store.cc",
1187       "ssl/openssl_client_key_store.h",
1188     ]
1189   }
1190
1191   if (is_posix) {
1192     posix_avoid_mmap = false  # TODO(brettw) should be true on 32-bit Android.
1193     if (posix_avoid_mmap) {
1194       defines = [ "POSIX_AVOID_MMAP" ]
1195       sources -= "disk_cache/mapped_file_posix.cc"
1196     } else {  # !posix_avoid_mmap
1197       sources -= "disk_cache/mapped_file_avoid_mmap_posix.cc"
1198     }
1199   }
1200 }
1201
1202 #grit("net_resources") {
1203 #  external = true
1204 #  source = "base/net_resources.grd"
1205 #}
1206
1207 static_library("http_server") {
1208   external = true
1209   sources = [
1210     "server/http_connection.cc",
1211     "server/http_connection.h",
1212     "server/http_server.cc",
1213     "server/http_server.h",
1214     "server/http_server_request_info.cc",
1215     "server/http_server_request_info.h",
1216     "server/http_server_response_info.cc",
1217     "server/http_server_response_info.h",
1218     "server/web_socket.cc",
1219     "server/web_socket.h",
1220   ]
1221   deps = [
1222     ":net",
1223     "//base",
1224   ]
1225
1226   # TODO(brettw) figure out how to get this:
1227   # 'variables': { 'enable_wexit_time_destructors': 1, },
1228 }