#include "content/browser/dom_storage/session_storage_namespace_impl.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/ptr_util.h"
#include "components/services/storage/public/mojom/session_storage_control.mojom.h"
#include "content/browser/dom_storage/dom_storage_context_wrapper.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "third_party/blink/public/common/dom_storage/session_storage_namespace_id.h"
#include "third_party/blink/public/common/features.h"
namespace content {
scoped_refptr<SessionStorageNamespaceImpl> SessionStorageNamespaceImpl::Create(
scoped_refptr<DOMStorageContextWrapper> context) { … }
scoped_refptr<SessionStorageNamespaceImpl> SessionStorageNamespaceImpl::Create(
scoped_refptr<DOMStorageContextWrapper> context,
std::string namespace_id) { … }
scoped_refptr<SessionStorageNamespaceImpl>
SessionStorageNamespaceImpl::CloneFrom(
scoped_refptr<DOMStorageContextWrapper> context,
std::string namespace_id,
const std::string& namespace_id_to_clone,
bool immediately) { … }
const std::string& SessionStorageNamespaceImpl::id() { … }
void SessionStorageNamespaceImpl::SetShouldPersist(bool should_persist) { … }
bool SessionStorageNamespaceImpl::should_persist() { … }
scoped_refptr<SessionStorageNamespaceImpl>
SessionStorageNamespaceImpl::Clone() { … }
bool SessionStorageNamespaceImpl::IsFromContext(
DOMStorageContextWrapper* context) { … }
SessionStorageNamespaceImpl::SessionStorageNamespaceImpl(
scoped_refptr<DOMStorageContextWrapper> context,
std::string namespace_id)
: … { … }
SessionStorageNamespaceImpl::~SessionStorageNamespaceImpl() { … }
void SessionStorageNamespaceImpl::DeleteSessionNamespaceFromUIThread(
scoped_refptr<DOMStorageContextWrapper> context_wrapper,
std::string namespace_id,
bool should_persist) { … }
}