tree: 72cfab750c9d40c19b55936432a83183ddf303fd [path history] [tgz]
  1. BUILD.gn
  2. DEPS
  3. OWNERS
  4. README.md
  5. cert_verifier_config_type_converter.cc
  6. cert_verifier_config_type_converter.h
  7. cert_verifier_with_trust_anchors.cc
  8. cert_verifier_with_trust_anchors.h
  9. cert_verifier_with_trust_anchors_unittest.cc
  10. cert_verify_proc_chromeos.cc
  11. cert_verify_proc_chromeos.h
  12. cert_verify_proc_chromeos_unittest.cc
  13. chunked_data_pipe_upload_data_stream.cc
  14. chunked_data_pipe_upload_data_stream.h
  15. chunked_data_pipe_upload_data_stream_unittest.cc
  16. conditional_cache_deletion_helper.cc
  17. conditional_cache_deletion_helper.h
  18. cookie_manager.cc
  19. cookie_manager.h
  20. cookie_manager_unittest.cc
  21. cookie_managers_shared.cc
  22. cookie_managers_shared.h
  23. cookie_settings.cc
  24. cookie_settings.h
  25. cookie_settings_unittest.cc
  26. cors/
  27. crl_set_distributor.cc
  28. crl_set_distributor.h
  29. cross_origin_read_blocking.cc
  30. cross_origin_read_blocking.h
  31. cross_origin_read_blocking_explainer.md
  32. cross_origin_read_blocking_unittest.cc
  33. cross_origin_resource_policy.cc
  34. cross_origin_resource_policy.h
  35. cross_origin_resource_policy_unittest.cc
  36. data_pipe_element_reader.cc
  37. data_pipe_element_reader.h
  38. data_pipe_element_reader_unittest.cc
  39. dns_config_change_manager.cc
  40. dns_config_change_manager.h
  41. dns_config_change_manager_unittest.cc
  42. empty_url_loader_client.cc
  43. empty_url_loader_client.h
  44. expect_ct_reporter.cc
  45. expect_ct_reporter.h
  46. expect_ct_reporter_unittest.cc
  47. host_resolver.cc
  48. host_resolver.h
  49. host_resolver_mdns_listener.cc
  50. host_resolver_mdns_listener.h
  51. host_resolver_unittest.cc
  52. http_auth_cache_copier.cc
  53. http_auth_cache_copier.h
  54. http_cache_data_counter.cc
  55. http_cache_data_counter.h
  56. http_cache_data_counter_unittest.cc
  57. http_cache_data_remover.cc
  58. http_cache_data_remover.h
  59. http_cache_data_remover_unittest.cc
  60. http_server_properties_pref_delegate.cc
  61. http_server_properties_pref_delegate.h
  62. ignore_errors_cert_verifier.cc
  63. ignore_errors_cert_verifier.h
  64. ignore_errors_cert_verifier_unittest.cc
  65. initiator_lock_compatibility.cc
  66. initiator_lock_compatibility.h
  67. initiator_lock_compatibility_unittest.cc
  68. keepalive_statistics_recorder.cc
  69. keepalive_statistics_recorder.h
  70. keepalive_statistics_recorder_unittest.cc
  71. loader_util.cc
  72. loader_util.h
  73. loader_util_unittest.cc
  74. mdns_responder.cc
  75. mdns_responder.h
  76. mdns_responder_unittest.cc
  77. mojo_host_resolver_impl.cc
  78. mojo_host_resolver_impl.h
  79. mojo_host_resolver_impl_unittest.cc
  80. mojo_socket_test_util.cc
  81. mojo_socket_test_util.h
  82. net_log_exporter.cc
  83. net_log_exporter.h
  84. network_change_manager.cc
  85. network_change_manager.h
  86. network_change_manager_unittest.cc
  87. network_context.cc
  88. network_context.h
  89. network_context_unittest.cc
  90. network_qualities_pref_delegate.cc
  91. network_qualities_pref_delegate.h
  92. network_qualities_pref_delegate_unittest.cc
  93. network_quality_estimator_manager.cc
  94. network_quality_estimator_manager.h
  95. network_quality_estimator_manager_unittest.cc
  96. network_sandbox_hook_linux.cc
  97. network_sandbox_hook_linux.h
  98. network_sandbox_win.cc
  99. network_sandbox_win.h
  100. network_service.cc
  101. network_service.h
  102. network_service_network_delegate.cc
  103. network_service_network_delegate.h
  104. network_service_proxy_delegate.cc
  105. network_service_proxy_delegate.h
  106. network_service_proxy_delegate_unittest.cc
  107. network_service_unittest.cc
  108. network_usage_accumulator.cc
  109. network_usage_accumulator.h
  110. network_usage_accumulator_unittest.cc
  111. nss_temp_certs_cache_chromeos.cc
  112. nss_temp_certs_cache_chromeos.h
  113. nss_temp_certs_cache_chromeos_unittest.cc
  114. origin_policy/
  115. p2p/
  116. pending_callback_chain.cc
  117. pending_callback_chain.h
  118. pending_callback_chain_unittest.cc
  119. proxy_config_service_mojo.cc
  120. proxy_config_service_mojo.h
  121. proxy_config_service_mojo_unittest.cc
  122. proxy_lookup_request.cc
  123. proxy_lookup_request.h
  124. proxy_resolver_factory_mojo.cc
  125. proxy_resolver_factory_mojo.h
  126. proxy_resolver_factory_mojo_unittest.cc
  127. proxy_resolving_client_socket.cc
  128. proxy_resolving_client_socket.h
  129. proxy_resolving_client_socket_factory.cc
  130. proxy_resolving_client_socket_factory.h
  131. proxy_resolving_client_socket_unittest.cc
  132. proxy_resolving_socket_factory_mojo.cc
  133. proxy_resolving_socket_factory_mojo.h
  134. proxy_resolving_socket_mojo.cc
  135. proxy_resolving_socket_mojo.h
  136. proxy_resolving_socket_mojo_unittest.cc
  137. proxy_service_mojo.cc
  138. proxy_service_mojo.h
  139. public/
  140. resolve_host_request.cc
  141. resolve_host_request.h
  142. resource_scheduler.cc
  143. resource_scheduler.h
  144. resource_scheduler_client.cc
  145. resource_scheduler_client.h
  146. resource_scheduler_params_manager.cc
  147. resource_scheduler_params_manager.h
  148. resource_scheduler_params_manager_unittest.cc
  149. resource_scheduler_unittest.cc
  150. restricted_cookie_manager.cc
  151. restricted_cookie_manager.h
  152. restricted_cookie_manager_unittest.cc
  153. sec_header_helpers.cc
  154. sec_header_helpers.h
  155. sec_header_helpers_unittest.cc
  156. session_cleanup_cookie_store.cc
  157. session_cleanup_cookie_store.h
  158. session_cleanup_cookie_store_unittest.cc
  159. socket_data_pump.cc
  160. socket_data_pump.h
  161. socket_data_pump_unittest.cc
  162. socket_factory.cc
  163. socket_factory.h
  164. ssl_config_service_mojo.cc
  165. ssl_config_service_mojo.h
  166. ssl_config_service_mojo_unittest.cc
  167. ssl_config_type_converter.cc
  168. ssl_config_type_converter.h
  169. tcp_bound_socket.cc
  170. tcp_bound_socket.h
  171. tcp_bound_socket_unittest.cc
  172. tcp_connected_socket.cc
  173. tcp_connected_socket.h
  174. tcp_server_socket.cc
  175. tcp_server_socket.h
  176. tcp_socket_unittest.cc
  177. test/
  178. test_chunked_data_pipe_getter.cc
  179. test_chunked_data_pipe_getter.h
  180. throttling/
  181. tls_client_socket.cc
  182. tls_client_socket.h
  183. tls_client_socket_unittest.cc
  184. tls_socket_factory.cc
  185. tls_socket_factory.h
  186. transitional_url_loader_factory_owner.cc
  187. transitional_url_loader_factory_owner.h
  188. transitional_url_loader_factory_owner_unittest.cc
  189. trial_comparison_cert_verifier_mojo.cc
  190. trial_comparison_cert_verifier_mojo.h
  191. udp_socket.cc
  192. udp_socket.h
  193. udp_socket_test_util.cc
  194. udp_socket_test_util.h
  195. udp_socket_unittest.cc
  196. upload_progress_tracker.cc
  197. upload_progress_tracker.h
  198. upload_progress_tracker_unittest.cc
  199. url_loader.cc
  200. url_loader.h
  201. url_loader_factory.cc
  202. url_loader_factory.h
  203. url_loader_unittest.cc
  204. url_request_context_builder_mojo.cc
  205. url_request_context_builder_mojo.h
  206. url_request_context_owner.cc
  207. url_request_context_owner.h
  208. websocket.cc
  209. websocket.h
  210. websocket_factory.cc
  211. websocket_factory.h
  212. websocket_throttler.cc
  213. websocket_throttler.h
  214. websocket_throttler_unittest.cc
services/network/README.md

Network Service.

This is a service for networking. It‘s meant to be oblivious to Chrome’s features. Some design goals

  • this only contains features that go over the network. e.g. no file loading, data URLs etc...
  • only the lowest-level of networking should be here. e.g. http, sockets, web sockets. Anything that is built on top of this should be in higher layers.
  • higher level web platform and browser features should be built outside of this code. Safe browsing, Service Worker, extensions, devtools etc... should not have hooks here. The only exception is when it's impossible for these features to function without some hooks in the network service. In that case, we add the minimal code required. Some examples included traffic shaping for devtools and CORB blocking.
  • every PostTask, thread hop and process hop (IPC) should be counted carefully as they introduce delays which could harm this performance critical code.
  • NetworkContext and NetworkService are trusted interfaces that aren't meant to be sent to the renderer. Only the browser should have access to them.

See https://bugs.chromium.org/p/chromium/issues/detail?id=598073

See the design doc https://docs.google.com/document/d/1wAHLw9h7gGuqJNCgG1mP1BmLtCGfZ2pys-PdZQ1vg7M/edit?pref=2&pli=1#