OLD | NEW |
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_SESSION_STORAGE_DATABASE_H_ | 5 #ifndef WEBKIT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_H_ |
6 #define WEBKIT_DOM_STORAGE_SESSION_STORAGE_DATABASE_H_ | 6 #define WEBKIT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
15 #include "third_party/leveldatabase/src/include/leveldb/status.h" | 15 #include "third_party/leveldatabase/src/include/leveldb/status.h" |
16 #include "webkit/dom_storage/dom_storage_types.h" | 16 #include "webkit/common/dom_storage/dom_storage_types.h" |
17 #include "webkit/storage/webkit_storage_export.h" | 17 #include "webkit/storage/webkit_storage_export.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace leveldb { | 21 namespace leveldb { |
22 class DB; | 22 class DB; |
23 struct ReadOptions; | 23 struct ReadOptions; |
24 class WriteBatch; | 24 class WriteBatch; |
25 } // namespace leveldb | 25 } // namespace leveldb |
26 | 26 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // True if a database error has occurred (e.g., cannot read data). | 195 // True if a database error has occurred (e.g., cannot read data). |
196 bool db_error_; | 196 bool db_error_; |
197 // True if the database is in an inconsistent state. | 197 // True if the database is in an inconsistent state. |
198 bool is_inconsistent_; | 198 bool is_inconsistent_; |
199 | 199 |
200 DISALLOW_COPY_AND_ASSIGN(SessionStorageDatabase); | 200 DISALLOW_COPY_AND_ASSIGN(SessionStorageDatabase); |
201 }; | 201 }; |
202 | 202 |
203 } // namespace dom_storage | 203 } // namespace dom_storage |
204 | 204 |
205 #endif // WEBKIT_DOM_STORAGE_SESSION_STORAGE_DATABASE_H_ | 205 #endif // WEBKIT_BROWSER_DOM_STORAGE_SESSION_STORAGE_DATABASE_H_ |
OLD | NEW |