Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: content/browser/dom_storage/session_storage_database_adapter.cc

Issue 22297005: Move webkit/{browser,common}/dom_storage into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/browser/dom_storage/session_storage_database_adapter.h" 5 #include "content/browser/dom_storage/session_storage_database_adapter.h"
6 6
7 #include "webkit/browser/dom_storage/session_storage_database.h" 7 #include "content/browser/dom_storage/session_storage_database.h"
8 8
9 namespace dom_storage { 9 namespace content {
10 10
11 SessionStorageDatabaseAdapter::SessionStorageDatabaseAdapter( 11 SessionStorageDatabaseAdapter::SessionStorageDatabaseAdapter(
12 SessionStorageDatabase* db, 12 SessionStorageDatabase* db,
13 const std::string& permanent_namespace_id, 13 const std::string& permanent_namespace_id,
14 const GURL& origin) 14 const GURL& origin)
15 : db_(db), 15 : db_(db),
16 permanent_namespace_id_(permanent_namespace_id), 16 permanent_namespace_id_(permanent_namespace_id),
17 origin_(origin) { 17 origin_(origin) {
18 } 18 }
19 19
20 SessionStorageDatabaseAdapter::~SessionStorageDatabaseAdapter() { } 20 SessionStorageDatabaseAdapter::~SessionStorageDatabaseAdapter() { }
21 21
22 void SessionStorageDatabaseAdapter::ReadAllValues(ValuesMap* result) { 22 void SessionStorageDatabaseAdapter::ReadAllValues(DOMStorageValuesMap* result) {
23 db_->ReadAreaValues(permanent_namespace_id_, origin_, result); 23 db_->ReadAreaValues(permanent_namespace_id_, origin_, result);
24 } 24 }
25 25
26 bool SessionStorageDatabaseAdapter::CommitChanges( 26 bool SessionStorageDatabaseAdapter::CommitChanges(
27 bool clear_all_first, const ValuesMap& changes) { 27 bool clear_all_first, const DOMStorageValuesMap& changes) {
28 return db_->CommitAreaChanges(permanent_namespace_id_, origin_, 28 return db_->CommitAreaChanges(permanent_namespace_id_, origin_,
29 clear_all_first, changes); 29 clear_all_first, changes);
30 } 30 }
31 31
32 } // namespace dom_storage 32 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698