summaryrefslogtreecommitdiffstats
path: root/webkit/dom_storage
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/dom_storage')
-rw-r--r--webkit/dom_storage/dom_storage_session.cc4
-rw-r--r--webkit/dom_storage/dom_storage_session.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/dom_storage/dom_storage_session.cc b/webkit/dom_storage/dom_storage_session.cc
index 57aedfa..76b58a4 100644
--- a/webkit/dom_storage/dom_storage_session.cc
+++ b/webkit/dom_storage/dom_storage_session.cc
@@ -40,6 +40,10 @@ void DomStorageSession::SetShouldPersist(bool should_persist) {
should_persist_ = should_persist;
}
+bool DomStorageSession::should_persist() const {
+ return should_persist_;
+}
+
bool DomStorageSession::IsFromContext(DomStorageContext* context) {
return context_.get() == context;
}
diff --git a/webkit/dom_storage/dom_storage_session.h b/webkit/dom_storage/dom_storage_session.h
index db4d88a..1f5294e 100644
--- a/webkit/dom_storage/dom_storage_session.h
+++ b/webkit/dom_storage/dom_storage_session.h
@@ -34,6 +34,7 @@ class DomStorageSession
return persistent_namespace_id_;
}
void SetShouldPersist(bool should_persist);
+ bool should_persist() const;
bool IsFromContext(DomStorageContext* context);
DomStorageSession* Clone();