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

Side by Side Diff: webkit/dom_storage/dom_storage_database.h

Issue 9467003: Delete empty dom storage databases on destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_database.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_H_ 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_H_
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_H_ 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // inside LazyOpen. This constructor will allow us to bypass the 99 // inside LazyOpen. This constructor will allow us to bypass the
100 // DCHECK when running the unit tests. 100 // DCHECK when running the unit tests.
101 DomStorageDatabase(); 101 DomStorageDatabase();
102 #endif 102 #endif
103 103
104 // Path to the database on disk. 104 // Path to the database on disk.
105 FilePath file_path_; 105 FilePath file_path_;
106 scoped_ptr<sql::Connection> db_; 106 scoped_ptr<sql::Connection> db_;
107 bool failed_to_open_; 107 bool failed_to_open_;
108 bool tried_to_recreate_; 108 bool tried_to_recreate_;
109 bool known_to_be_empty_;
109 }; 110 };
110 111
111 } // namespace dom_storage 112 } // namespace dom_storage
112 113
113 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_H_ 114 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_DATABASE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/dom_storage/dom_storage_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698