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, |
| 13 const std::string& namespace_id, |
| 14 const GURL& origin) |
| 15 : db_(db), |
| 16 namespace_id_(namespace_id), |
| 17 origin_(origin) { |
| 18 } |
| 19 |
| 20 SessionStorageDatabaseAdapter::~SessionStorageDatabaseAdapter() { } |
| 21 |
| 22 void SessionStorageDatabaseAdapter::ReadAllValues(ValuesMap* result) { |
| 23 db_->ReadAreaValues(namespace_id_, origin_, result); |
| 24 } |
| 25 |
| 26 bool SessionStorageDatabaseAdapter::CommitChanges( |
| 27 bool clear_all_first, const ValuesMap& changes) { |
| 28 return db_->CommitAreaChanges(namespace_id_, origin_, |
| 29 clear_all_first, changes); |
| 30 } |
| 31 |
| 32 } // namespace dom_storage |
OLD | NEW |