Index: content/browser/dom_storage/dom_storage_area.h |
diff --git a/content/browser/dom_storage/dom_storage_area.h b/content/browser/dom_storage/dom_storage_area.h |
index 3a4b1660598ccb4a08e189daaaac6af6c81c58b9..dd0df52bdc218ad594be92e41aca00e7fcecc79c 100644 |
--- a/content/browser/dom_storage/dom_storage_area.h |
+++ b/content/browser/dom_storage/dom_storage_area.h |
@@ -35,6 +35,12 @@ class CONTENT_EXPORT DOMStorageArea |
static base::FilePath DatabaseFileNameFromOrigin(const GURL& origin); |
static GURL OriginFromDatabaseFileName(const base::FilePath& file_name); |
+ // Commence aggressive flushing. This should be called early in the startup - |
+ // before any localStorage writing. Currently scheduled writes will not be |
+ // rescheduled and will be flushed at the scheduled time after which |
+ // aggressive flushing will commence. |
+ static void EnableAggressiveCommitDelay(); |
+ |
// Local storage. Backed on disk if directory is nonempty. |
DOMStorageArea(const GURL& origin, |
const base::FilePath& directory, |
@@ -153,6 +159,8 @@ class CONTENT_EXPORT DOMStorageArea |
void ShutdownInCommitSequence(); |
+ static bool s_aggressive_flushing_enabled_; |
+ |
int64 namespace_id_; |
std::string persistent_namespace_id_; |
GURL origin_; |