summaryrefslogtreecommitdiff
path: root/chromium/components/history/core/browser/history_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/history/core/browser/history_backend.h')
-rw-r--r--chromium/components/history/core/browser/history_backend.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/chromium/components/history/core/browser/history_backend.h b/chromium/components/history/core/browser/history_backend.h
index 0b952b4b4b8..0d044f7b334 100644
--- a/chromium/components/history/core/browser/history_backend.h
+++ b/chromium/components/history/core/browser/history_backend.h
@@ -113,7 +113,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
virtual ~Delegate() {}
// Called when the database cannot be read correctly for some reason.
- virtual void NotifyProfileError(sql::InitStatus init_status) = 0;
+ // |diagnostics| contains information about the underlying database
+ // which can help in identifying the cause of the profile error.
+ virtual void NotifyProfileError(sql::InitStatus init_status,
+ const std::string& diagnostics) = 0;
// Sets the in-memory history backend. The in-memory backend is created by
// the main backend. For non-unit tests, this happens on the background
@@ -860,7 +863,7 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
bool segment_queried_;
// List of QueuedHistoryDBTasks to run;
- std::list<QueuedHistoryDBTask*> queued_history_db_tasks_;
+ std::list<std::unique_ptr<QueuedHistoryDBTask>> queued_history_db_tasks_;
// Used to determine if a URL is bookmarked; may be null.
std::unique_ptr<HistoryBackendClient> backend_client_;
@@ -879,6 +882,10 @@ class HistoryBackend : public base::RefCountedThreadSafe<HistoryBackend>,
// Listens for the system being under memory pressure.
std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
+ // Contains diagnostic information about the sql database that is non-empty
+ // when a catastrophic error occurs.
+ std::string db_diagnostics_;
+
// Map from host to index in the TopHosts list. It is updated only by
// TopHosts(), so it's usually stale.
mutable base::hash_map<std::string, int> host_ranks_;