#include "third_party/blink/renderer/modules/storage/storage_area.h"
#include "base/feature_list.h"
#include "base/memory/scoped_refptr.h"
#include "base/metrics/histogram_macros.h"
#include "base/trace_event/trace_event.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/platform/task_type.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/modules/storage/dom_window_storage.h"
#include "third_party/blink/renderer/modules/storage/inspector_dom_storage_agent.h"
#include "third_party/blink/renderer/modules/storage/storage_controller.h"
#include "third_party/blink/renderer/modules/storage/storage_event.h"
#include "third_party/blink/renderer/modules/storage/storage_namespace.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/storage/blink_storage_key.h"
#include "third_party/blink/renderer/platform/weborigin/security_origin.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
const char StorageArea::kAccessDataMessage[] = …;
const char StorageArea::kAccessDeniedMessage[] = …;
const char StorageArea::kAccessSandboxedMessage[] = …;
StorageArea* StorageArea::Create(LocalDOMWindow* window,
scoped_refptr<CachedStorageArea> storage_area,
StorageType storage_type) { … }
StorageArea* StorageArea::CreateForInspectorAgent(
LocalDOMWindow* window,
scoped_refptr<CachedStorageArea> storage_area,
StorageType storage_type) { … }
StorageArea::StorageArea(LocalDOMWindow* window,
scoped_refptr<CachedStorageArea> storage_area,
StorageType storage_type,
bool should_enqueue_events)
: … { … }
unsigned StorageArea::length(ExceptionState& exception_state) const { … }
String StorageArea::key(unsigned index, ExceptionState& exception_state) const { … }
String StorageArea::getItem(const String& key,
ExceptionState& exception_state) const { … }
NamedPropertySetterResult StorageArea::setItem(
const String& key,
const String& value,
ExceptionState& exception_state) { … }
NamedPropertyDeleterResult StorageArea::removeItem(
const String& key,
ExceptionState& exception_state) { … }
void StorageArea::clear(ExceptionState& exception_state) { … }
bool StorageArea::Contains(const String& key,
ExceptionState& exception_state) const { … }
void StorageArea::NamedPropertyEnumerator(Vector<String>& names,
ExceptionState& exception_state) { … }
bool StorageArea::NamedPropertyQuery(const AtomicString& name,
ExceptionState& exception_state) { … }
void StorageArea::Trace(Visitor* visitor) const { … }
bool StorageArea::CanAccessStorage() const { … }
KURL StorageArea::GetPageUrl() const { … }
bool StorageArea::EnqueueStorageEvent(const String& key,
const String& old_value,
const String& new_value,
const String& url) { … }
blink::WebScopedVirtualTimePauser StorageArea::CreateWebScopedVirtualTimePauser(
const char* name,
WebScopedVirtualTimePauser::VirtualTaskDuration duration) { … }
LocalDOMWindow* StorageArea::GetDOMWindow() { … }
void StorageArea::OnDocumentActivatedForPrerendering() { … }
}