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

Unified Diff: components/history/core/browser/history_service.h

Issue 1015153002: Commit History transaction when app is backgrounded on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
Index: components/history/core/browser/history_service.h
diff --git a/components/history/core/browser/history_service.h b/components/history/core/browser/history_service.h
index f61e3dc3d29cd1238779b6dbb08c7eac037b3b18..5231a03f738df101f0a5ad50f08a6a6b68a23796 100644
--- a/components/history/core/browser/history_service.h
+++ b/components/history/core/browser/history_service.h
@@ -105,6 +105,12 @@ class HistoryService : public syncer::SyncableService, public KeyedService {
// Returns true if the backend has finished loading.
bool backend_loaded() const { return backend_loaded_; }
+#if defined(OS_IOS)
+ // Causes the history backend to commit any in-progress transactions. Called
+ // when the application is being backgrounded.
+ void HandleBackgrounding();
+#endif
+
// Context ids are used to scope page IDs (see AddPage). These contexts
// must tell us when they are being invalidated so that we can clear
// out any cached data associated with that context.
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/history/core/browser/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698