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