Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: net/reporting/reporting_persister.h

Issue 2835923005: Reporting: Remove persistence for now. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/reporting/reporting_garbage_collector.cc ('k') | net/reporting/reporting_persister.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_persister.h
diff --git a/net/reporting/reporting_persister.h b/net/reporting/reporting_persister.h
index 27463a516bf7d781be38ffc15fc79def83b7e2d9..c6b52f87148563d41e7805523cfcab907504a528 100644
--- a/net/reporting/reporting_persister.h
+++ b/net/reporting/reporting_persister.h
@@ -9,30 +9,18 @@
#include "net/base/net_export.h"
-namespace base {
-class Timer;
-} // namespace base
-
namespace net {
class ReportingContext;
-// Periodically persists the state of the Reporting system to (reasonably)
-// stable storage using the methods provided by the ReportingDelegate.
+// Will persist the state of the Reporting system to (reasonably) stable
+// storage using an as-yet-unwritten persistence mechanism within //net.
class NET_EXPORT ReportingPersister {
public:
// Creates a ReportingPersister. |context| must outlive the persister.
static std::unique_ptr<ReportingPersister> Create(ReportingContext* context);
virtual ~ReportingPersister();
-
- // Initializes the Persister, which deserializes any previously-persisted data
- // that is available through the Context's Delegate.
- virtual void Initialize() = 0;
-
- // Replaces the internal Timer used for scheduling writes to stable storage
- // with a caller-specified one so that unittests can provide a MockTimer.
- virtual void SetTimerForTesting(std::unique_ptr<base::Timer> timer) = 0;
};
} // namespace net
« no previous file with comments | « net/reporting/reporting_garbage_collector.cc ('k') | net/reporting/reporting_persister.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698