| Index: webkit/dom_storage/session_storage_database_adapter.cc
|
| diff --git a/webkit/dom_storage/session_storage_database_adapter.cc b/webkit/dom_storage/session_storage_database_adapter.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a16ab655a46d97985f20dbd5dffb27f33d61e05d
|
| --- /dev/null
|
| +++ b/webkit/dom_storage/session_storage_database_adapter.cc
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2012 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.
|
| +
|
| +#include "webkit/dom_storage/session_storage_database_adapter.h"
|
| +
|
| +#include "webkit/dom_storage/session_storage_database.h"
|
| +
|
| +namespace dom_storage {
|
| +
|
| +SessionStorageDatabaseAdapter::SessionStorageDatabaseAdapter(
|
| + SessionStorageDatabase* db, int64 namespace_id, const GURL& origin)
|
| + : db_(db),
|
| + namespace_id_(namespace_id),
|
| + origin_(origin) {
|
| +}
|
| +
|
| +SessionStorageDatabaseAdapter::~SessionStorageDatabaseAdapter() { }
|
| +
|
| +void SessionStorageDatabaseAdapter::ReadAllValues(ValuesMap* result) {
|
| + db_->ReadAreaValues(namespace_id_, origin_, result);
|
| +}
|
| +
|
| +bool SessionStorageDatabaseAdapter::CommitChanges(
|
| + bool clear_all_first, const ValuesMap& changes) {
|
| + return db_->CommitAreaChanges(namespace_id_, origin_, clear_all_first,
|
| + changes);
|
| +}
|
| +
|
| +} // namespace dom_storage
|
|
|