Cast: Skip receiver log messages with time delta that can't be encoded.
[chromium-blink-merge.git] / content / browser / dom_storage / session_storage_database_adapter.cc
blob69f5bcdc414f0d5ec64948b972d22f8e7f4da289
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"
9 namespace content {
11 SessionStorageDatabaseAdapter::SessionStorageDatabaseAdapter(
12 SessionStorageDatabase* db,
13 const std::string& permanent_namespace_id,
14 const GURL& origin)
15 : db_(db),
16 permanent_namespace_id_(permanent_namespace_id),
17 origin_(origin) {
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