1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/dom_storage/session_storage_database_adapter.h"
7 #include "content/browser/dom_storage/session_storage_database.h"
11 SessionStorageDatabaseAdapter::SessionStorageDatabaseAdapter(
12 SessionStorageDatabase
* db
,
13 const std::string
& permanent_namespace_id
,
16 permanent_namespace_id_(permanent_namespace_id
),
20 SessionStorageDatabaseAdapter::~SessionStorageDatabaseAdapter() { }
22 void SessionStorageDatabaseAdapter::ReadAllValues(DOMStorageValuesMap
* result
) {
23 db_
->ReadAreaValues(permanent_namespace_id_
, origin_
, result
);
26 bool SessionStorageDatabaseAdapter::CommitChanges(
27 bool clear_all_first
, const DOMStorageValuesMap
& changes
) {
28 return db_
->CommitAreaChanges(permanent_namespace_id_
, origin_
,
29 clear_all_first
, changes
);
32 } // namespace content