#include "third_party/blink/renderer/modules/storage/storage_controller.h"
#include "base/feature_list.h"
#include "base/system/sys_info.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/thread_safe_browser_interface_broker_proxy.h"
#include "third_party/blink/public/platform/platform.h"
#include "third_party/blink/public/platform/web_content_settings_client.h"
#include "third_party/blink/renderer/core/frame/local_frame.h"
#include "third_party/blink/renderer/modules/storage/cached_storage_area.h"
#include "third_party/blink/renderer/modules/storage/storage_namespace.h"
#include "third_party/blink/renderer/platform/scheduler/public/main_thread.h"
#include "third_party/blink/renderer/platform/scheduler/public/thread_scheduler.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
#include "third_party/blink/renderer/platform/wtf/text/string_utf8_adaptor.h"
namespace blink {
namespace {
const size_t kStorageControllerTotalCacheLimitInBytesLowEnd = …;
const size_t kStorageControllerTotalCacheLimitInBytes = …;
StorageController::DomStorageConnection GetDomStorageConnection() { … }
}
StorageController* StorageController::GetInstance() { … }
bool StorageController::CanAccessStorageArea(LocalFrame* frame,
StorageArea::StorageType type) { … }
StorageController::StorageController(DomStorageConnection connection,
size_t total_cache_limit)
: … { … }
StorageNamespace* StorageController::CreateSessionStorageNamespace(
Page& page,
const String& namespace_id) { … }
size_t StorageController::TotalCacheSize() const { … }
void StorageController::ClearAreasIfNeeded() { … }
scoped_refptr<CachedStorageArea> StorageController::GetLocalStorageArea(
LocalDOMWindow* local_dom_window,
mojo::PendingRemote<mojom::blink::StorageArea> local_storage_area,
StorageNamespace::StorageContext context) { … }
void StorageController::AddLocalStorageInspectorStorageAgent(
InspectorDOMStorageAgent* agent) { … }
void StorageController::RemoveLocalStorageInspectorStorageAgent(
InspectorDOMStorageAgent* agent) { … }
void StorageController::EnsureLocalStorageNamespaceCreated() { … }
void StorageController::ResetStorageAreaAndNamespaceConnections() { … }
}