diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:20:33 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:28:57 +0000 |
commit | d17ea114e5ef69ad5d5d7413280a13e6428098aa (patch) | |
tree | 2c01a75df69f30d27b1432467cfe7c1467a498da /chromium/content/browser/dom_storage/session_storage_context_mojo.h | |
parent | 8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (diff) | |
download | qtwebengine-chromium-d17ea114e5ef69ad5d5d7413280a13e6428098aa.tar.gz |
BASELINE: Update Chromium to 67.0.3396.47
Change-Id: Idcb1341782e417561a2473eeecc82642dafda5b7
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/content/browser/dom_storage/session_storage_context_mojo.h')
-rw-r--r-- | chromium/content/browser/dom_storage/session_storage_context_mojo.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chromium/content/browser/dom_storage/session_storage_context_mojo.h b/chromium/content/browser/dom_storage/session_storage_context_mojo.h index 078bcdde09e..919c1356d22 100644 --- a/chromium/content/browser/dom_storage/session_storage_context_mojo.h +++ b/chromium/content/browser/dom_storage/session_storage_context_mojo.h @@ -54,8 +54,14 @@ class CONTENT_EXPORT SessionStorageContextMojo { bool should_persist); void Flush(); + // Used by content settings to alter the behavior around + // what data to keep and what data to discard at shutdown. + // The policy is not so straight forward to describe, see + // the implementation for details. + void SetForceKeepSessionState() { force_keep_session_state_ = true; } + void GetStorageUsage(GetStorageUsageCallback callback); - void DeleteStorage(const GURL& origin, + void DeleteStorage(const url::Origin& origin, const std::string& persistent_namespace_id); // Called when the owning BrowserContext is ending. @@ -80,6 +86,8 @@ class CONTENT_EXPORT SessionStorageContextMojo { const base::Optional<base::FilePath> partition_directory_path_; std::string leveldb_name_; + bool force_keep_session_state_ = false; + base::WeakPtrFactory<SessionStorageContextMojo> weak_ptr_factory_; }; |