| Index: content/browser/dom_storage/dom_storage_namespace.h
|
| diff --git a/content/browser/dom_storage/dom_storage_namespace.h b/content/browser/dom_storage/dom_storage_namespace.h
|
| index f572284d5aea7f1484b768884f55f311e63c3d58..8529c148644101da8fae5c4cd45ca2c57aa1cbf6 100644
|
| --- a/content/browser/dom_storage/dom_storage_namespace.h
|
| +++ b/content/browser/dom_storage/dom_storage_namespace.h
|
| @@ -34,6 +34,9 @@ class CONTENT_EXPORT DOMStorageNamespace
|
| public:
|
| // Option for PurgeMemory.
|
| enum PurgeOption {
|
| + // Determines is purging is required based on the usage and the platform.
|
| + PURGE_IF_NEEDED,
|
| +
|
| // Purge unopened areas only.
|
| PURGE_UNOPENED,
|
|
|
| @@ -80,8 +83,6 @@ class CONTENT_EXPORT DOMStorageNamespace
|
| void Shutdown();
|
| void Flush();
|
|
|
| - unsigned int CountInMemoryAreas() const;
|
| -
|
| // Adds memory statistics to |pmd| for chrome://tracing.
|
| void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd);
|
|
|
| @@ -107,12 +108,17 @@ class CONTENT_EXPORT DOMStorageNamespace
|
| // Returns a pointer to the area holder in our map or NULL.
|
| AreaHolder* GetAreaHolder(const GURL& origin);
|
|
|
| + // Helper to determine is purging is needed based on the usage and the
|
| + // platform.
|
| + bool ShouldPurgeMemory();
|
| +
|
| int64_t namespace_id_;
|
| std::string persistent_namespace_id_;
|
| base::FilePath directory_;
|
| AreaMap areas_;
|
| scoped_refptr<DOMStorageTaskRunner> task_runner_;
|
| scoped_refptr<SessionStorageDatabase> session_storage_database_;
|
| + bool is_low_end_device_;
|
| };
|
|
|
| } // namespace content
|
|
|