| 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_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 Loading... |
| 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_ |
| OLD | NEW |