Movatterモバイル変換


[0]ホーム

URL:


Google Git
Sign in
chromium /chromium /src /refs/heads/main /. /net /network_error_logging
tree: 61dc3ea242ed3b336c3f33bc265d99ebc9e5f553 [path history][tgz]
  1. DIR_METADATA
  2. mock_persistent_nel_store.cc
  3. mock_persistent_nel_store.h
  4. mock_persistent_nel_store_unittest.cc
  5. network_error_logging_service.cc
  6. network_error_logging_service.h
  7. network_error_logging_service_unittest.cc
  8. network_error_logging_test_util.cc
  9. network_error_logging_test_util.h
  10. OWNERS
  11. persistent_reporting_and_nel_store.h
  12. README.md
net/network_error_logging/README.md

Network Error Logging (NEL)

Network Error Logging (NEL) provides out-of-band reporting of network errors via the Reporting API (see//net/reporting). Site operators can specify a NEL policy that defines the Reporting endpoint(s) on which they wish to receive reports about client-side errors encountered while connecting to the site. The draft spec can be foundhere.

This directory contains the core implementation of NEL.

Implementation overview

Most of the action takes place inNetworkErrorLoggingService, which handles receiving/processingNEL: response headers and generating/queueing reports about network requests. TheNetworkErrorLoggingService is owned by theURLRequestContext.

Information about network requests comes directly fromHttpNetworkTransaction, which informsNetworkErrorLoggingService of the details of the request such as the remote IP address and outcome (anet::Error code).

TheNetworkErrorLoggingService finds a NEL policy applicable to the request (previously set by aNEL header), and if one exists, potentially queues a NEL report to be uploaded out-of-band to the policy's specified Reporting endpoint via theReportingService.

Received NEL policies are persisted to disk by aPersistentNelStore, whose main implementation is theSqlitePersistentReportingAndNelStore.


[8]ページ先頭

©2009-2025 Movatter.jp