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

Side by Side Diff: webkit/dom_storage/dom_storage_namespace.cc

Issue 9389009: Hook up DomStorageArea with a DomStorageDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename CommitChanges* methods. Created 8 years, 10 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/dom_storage/dom_storage_namespace.h" 5 #include "webkit/dom_storage/dom_storage_namespace.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "webkit/dom_storage/dom_storage_area.h" 9 #include "webkit/dom_storage/dom_storage_area.h"
10 #include "webkit/dom_storage/dom_storage_task_runner.h"
10 #include "webkit/dom_storage/dom_storage_types.h" 11 #include "webkit/dom_storage/dom_storage_types.h"
11 12
12 namespace dom_storage { 13 namespace dom_storage {
13 14
14 DomStorageNamespace::DomStorageNamespace( 15 DomStorageNamespace::DomStorageNamespace(
15 const FilePath& directory, 16 const FilePath& directory,
16 DomStorageTaskRunner* task_runner) 17 DomStorageTaskRunner* task_runner)
17 : namespace_id_(kLocalStorageNamespaceId), 18 : namespace_id_(kLocalStorageNamespaceId),
18 directory_(directory), 19 directory_(directory),
19 task_runner_(task_runner) { 20 task_runner_(task_runner) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 DomStorageNamespace::AreaHolder::AreaHolder( 81 DomStorageNamespace::AreaHolder::AreaHolder(
81 DomStorageArea* area, int count) 82 DomStorageArea* area, int count)
82 : area_(area), open_count_(count) { 83 : area_(area), open_count_(count) {
83 } 84 }
84 85
85 DomStorageNamespace::AreaHolder::~AreaHolder() { 86 DomStorageNamespace::AreaHolder::~AreaHolder() {
86 } 87 }
87 88
88 } // namespace dom_storage 89 } // namespace dom_storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698