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