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

Buildbot

The Network Service Linux buildbot runs browser tests with the network service in non-default but supported configurations. Ideally this bot would be on the CQ, but it is expensive and would affect CQ time, so it's on the main waterfall but not the CQ.

Its steps are:

  • network_service_in_process_browser_tests: Runs browser_tests with the network service in-process (--enable-features=NetworkServiceInProcess). This step is important because Chrome on Android runs with the network service in-process by default (https://crbug.com/1049008). However, browser_tests are not well-supported on Android (https://crbug.com/611756), so we run them on this Linux bot. Furthermore, there is a flag and group policy to run the network service in-process on Desktop, but there are efforts to remove this (https://crbug.com/1036230).
  • network_service_in_process_content_browsertests: Same as above but for content_browsertests. We might consider removing this from the bot, since the Android bots run content_browsertests which should give enough coverage, but maybe we can remove the Desktop flag and group policy first.
  • network_service_web_request_proxy_browser_tests: Runs browser_tests while forcing the “network request proxying” code path that is taken when the browser has an extension installed that uses the Web Request API (--enable-features=ForceWebRequestProxyForTest). This step has caught bugs that would be Stable Release Blockers, so it's important to keep it.