class ReportingPolicyWatcher
Defined at line 45 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.h
Notifies interested parties when the component's reporting policy changes.
Note: This class is inert and must inherited from to be used in a meaningful way.
Public Methods
void OnPolicyChange (::fit::function<void (ReportingPolicy)> on_change)
Register a callback that will be executed each time the reporting policy changes.
Defined at line 27 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.cc
void ~ReportingPolicyWatcher ()
Defined at line 47 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.h
ReportingPolicy CurrentPolicy ()
Defined at line 49 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.h
Protected Methods
void ReportingPolicyWatcher (ReportingPolicy policy)
Defined at line 25 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.cc
void SetPolicy (ReportingPolicy policy)
Set |policy_| and execute all registered callbacks if it changes.
Defined at line 31 of file ../../src/developer/forensics/crash_reports/reporting_policy_watcher.cc