OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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. |
| 4 |
| 5 #include "webkit/dom_storage/session_storage_database_adapter.h" |
| 6 |
| 7 #include "webkit/dom_storage/session_storage_database.h" |
| 8 |
| 9 namespace dom_storage { |
| 10 |
| 11 SessionStorageDatabaseAdapter::SessionStorageDatabaseAdapter( |
| 12 SessionStorageDatabase* db, int64 namespace_id, const GURL& origin) |
| 13 : db_(db), |
| 14 namespace_id_(namespace_id), |
| 15 origin_(origin) { |
| 16 } |
| 17 |
| 18 SessionStorageDatabaseAdapter::~SessionStorageDatabaseAdapter() { } |
| 19 |
| 20 void SessionStorageDatabaseAdapter::ReadAllValues(ValuesMap* result) { |
| 21 db_->ReadAllValues(namespace_id_, origin_, result); |
| 22 } |
| 23 |
| 24 bool SessionStorageDatabaseAdapter::CommitChanges( |
| 25 bool clear_all_first, const ValuesMap& changes) { |
| 26 return db_->CommitChanges(namespace_id_, origin_, clear_all_first, changes); |
| 27 } |
| 28 |
| 29 } // namespace dom_storage |
OLD | NEW |