class Queue
Defined at line 31 of file ../../src/developer/forensics/crash_reports/queue.h
Queues pending reports and processes them according to the reporting policy.
Public Methods
void Queue (async_dispatcher_t *dispatcher,std::shared_ptr<sys::ServiceDirectory>services,std::shared_ptr<InfoContext>info_context,LogTags *tags,ReportStore *report_store,CrashServer *crash_server)
Defined at line 29 of file ../../src/developer/forensics/crash_reports/queue.cc
void WatchReportingPolicy (ReportingPolicyWatcher * watcher)
Watcher functions that allow the queue to react to external events, such as
1) the reporting policy changing or
2) the network status changing.
Defined at line 544 of file ../../src/developer/forensics/crash_reports/queue.cc
void SetNetworkIsReachable (bool is_reachable)
Defined at line 571 of file ../../src/developer/forensics/crash_reports/queue.cc
bool Add (Report report, FilingResultFn callback)
Defined at line 172 of file ../../src/developer/forensics/crash_reports/queue.cc
void AddReportUsingSnapshot (const std::string & uuid, ReportId report)
Identifies |report| as a crash report that used the snapshot referred to by |uuid|.
Note: this is needed because the Queue manages the lifetime of snapshots. Reports are added
asynchronously and it may be possible for the Queue to think all reports using a snapshot are
retired depending on how Add and Upload are ordered.
Defined at line 429 of file ../../src/developer/forensics/crash_reports/queue.cc
uint64_t Size ()
Defined at line 80 of file ../../src/developer/forensics/crash_reports/queue.cc
bool IsEmpty ()
Defined at line 84 of file ../../src/developer/forensics/crash_reports/queue.cc
ReportId LatestReport ()
Defined at line 86 of file ../../src/developer/forensics/crash_reports/queue.cc
bool Contains (ReportId report_id)
Defined at line 95 of file ../../src/developer/forensics/crash_reports/queue.cc
bool IsPeriodicUploadScheduled ()
Defined at line 149 of file ../../src/developer/forensics/crash_reports/queue.cc
void StopUploading ()
Forces the queue to automatically put all reports in the store and stop all uploads.
Defined at line 153 of file ../../src/developer/forensics/crash_reports/queue.cc