tree: 1abe312a94e5de2974eb14a299e5f9425dd6439d [path history] [tgz]
  1. DIR_METADATA
  2. direct_sockets_open_browsertest.cc
  3. direct_sockets_service_impl.cc
  4. direct_sockets_service_impl.h
  5. direct_sockets_tcp_browsertest.cc
  6. direct_sockets_test_utils.cc
  7. direct_sockets_test_utils.h
  8. direct_sockets_udp_browsertest.cc
  9. direct_sockets_udp_unittest.cc
  10. direct_sockets_unittest.cc
  11. direct_udp_socket_impl.cc
  12. direct_udp_socket_impl.h
  13. OWNERS
  14. README.md
  15. resolve_host_and_open_socket.cc
  16. resolve_host_and_open_socket.h
content/browser/direct_sockets/README.md

This directory implements permission and user consent checks for the browser side of socket opening for the Direct Sockets API.

Examples of the checks include

  • user dialog, allowing user to enter destination address
  • permissions policy
  • rate limiting
  • checking hostnames resolve to public addresses
  • content security policy

When requests to establish TCP or UDP communication have passed the various checks, they are forwarded to the network service.