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 d0947896e9b05a5a8f25744c2032f3d62bc9c431..a6f99c576e8d06bb1abaf067d97fbb4d02fb290c 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, |
@@ -152,6 +158,8 @@ class CONTENT_EXPORT DOMStorageArea |
void ShutdownInCommitSequence(); |
+ static bool s_aggressive_flushing_enabled_; |
+ |
int64 namespace_id_; |
std::string persistent_namespace_id_; |
GURL origin_; |