[go: nahoru, domu]

tree: ef42f510473905f6164ee6fe8bfa11b32158cf1d [path history] [tgz]
  1. proto/
  2. aggregatable_report.cc
  3. aggregatable_report.h
  4. aggregatable_report_assembler.cc
  5. aggregatable_report_assembler.h
  6. aggregatable_report_assembler_unittest.cc
  7. aggregatable_report_request_storage_id.h
  8. aggregatable_report_scheduler.cc
  9. aggregatable_report_scheduler.h
  10. aggregatable_report_scheduler_unittest.cc
  11. aggregatable_report_sender.cc
  12. aggregatable_report_sender.h
  13. aggregatable_report_sender_unittest.cc
  14. aggregatable_report_unittest.cc
  15. aggregation_service.cc
  16. aggregation_service.h
  17. aggregation_service_features.cc
  18. aggregation_service_features.h
  19. aggregation_service_impl.cc
  20. aggregation_service_impl.h
  21. aggregation_service_impl_unittest.cc
  22. aggregation_service_key_fetcher.cc
  23. aggregation_service_key_fetcher.h
  24. aggregation_service_key_fetcher_unittest.cc
  25. aggregation_service_network_fetcher_impl.cc
  26. aggregation_service_network_fetcher_impl.h
  27. aggregation_service_network_fetcher_impl_unittest.cc
  28. aggregation_service_observer.h
  29. aggregation_service_storage.h
  30. aggregation_service_storage_context.h
  31. aggregation_service_storage_sql.cc
  32. aggregation_service_storage_sql.h
  33. aggregation_service_storage_sql_unittest.cc
  34. aggregation_service_test_utils.cc
  35. aggregation_service_test_utils.h
  36. COMMON_METADATA
  37. DEPS
  38. DIR_METADATA
  39. OWNERS
  40. payload_encryption.md
  41. public_key.cc
  42. public_key.h
  43. public_key_parsing_utils.cc
  44. public_key_parsing_utils.h
  45. public_key_parsing_utils_unittest.cc
  46. README.md
  47. report_scheduler_timer.cc
  48. report_scheduler_timer.h
  49. report_scheduler_timer_unittest.cc
content/browser/aggregation_service/README.md

Aggregation service

This directory contains the implementation of the client-side logic for the Aggregation service proposed for the Attribution Reporting API.

Currently, this library's consumers are:

Processing pipeline

In broad strokes, this library exposes functions built from a few basic operations:

  • Scheduling a report means assembling and sending the report at a randomly selected time. This library schedules reports by configuring a timer that will run the assemble-and-send procedure when it fires. Because the browser may be killed at any time, it must also save the reporting time to persistent storage.
  • Assembly takes a report request (AggregatableReportRequest) and serializes and encrypts its cleartext payload with the aggregation service‘s public key to produce an aggregatable report (AggregatableReport). This library automatically fetches the aggregation service server’s public key if a valid key is not already stored on disk. For more information on payload encryption, see payload_encryption.md.
  • Sending an aggregatable report means serializing it and delivering the bytes to the associated reporting origin via HTTP. This library implements retry logic in order to tolerate transient network interruptions. (From there, the reporting origin batches and forwards the aggregatable reports to the aggregation service server, but we are now well outside the scope of the client-side logic implemented by this library. For more info, see this section of the Attribution Reporting documentation.)

Consumers can use the following methods of the public interface, defined in aggregation_service.h.

  1. AggregationService::ScheduleReport() schedules a report to be assembled and sent after a randomized delay. This is used for standard Private Aggregation reports.
  2. AggregationService::AssembleAndSendReport() assembles and sends a report immediately. This is used for Private Aggregation duplicate debug reports.
  3. AggregationService::AssembleReport() just assembles a report. This is used for Attribution Reporting aggregatable reports. Note that this consumer implements their own scheduling and sending logic.

Histogram naming

  • PrivacySandbox.AggregationService.ScheduledRequests contains histograms that pertain to requests created by ScheduleReport().
  • PrivacySandbox.AggregationService.UnscheduledRequests contains histograms that pertain to requests created by AssembleAndSendReport().

Command-line tool

A command-line tool that generates aggregatable reports for testing is available. Please see //tools/aggregation_service's README for more detail


TODO: Expand this README.