blob: 9068af21f9769dae0b8d629d4be696b02ba5b1c0 [file] [log] [blame]
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Database interface used by DOMStorageArea. Abstracts the differences between
// the per-origin DOMStorageDatabases for localStorage and
// SessionStorageDatabase which stores multiple origins.
#include "content/common/content_export.h"
#include "content/common/dom_storage/dom_storage_types.h"
namespace content {
class CONTENT_EXPORT DOMStorageDatabaseAdapter {
virtual ~DOMStorageDatabaseAdapter() {}
virtual void ReadAllValues(DOMStorageValuesMap* result) = 0;
virtual bool CommitChanges(
bool clear_all_first, const DOMStorageValuesMap& changes) = 0;
virtual void DeleteFiles() {}
virtual void Reset() {}
} // namespace content