| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/appcache/appcache_database.h" | 5 #include "webkit/appcache/appcache_database.h" |
| 6 | 6 |
| 7 #include "app/sql/connection.h" | |
| 8 #include "app/sql/diagnostic_error_delegate.h" | |
| 9 #include "app/sql/meta_table.h" | |
| 10 #include "app/sql/statement.h" | |
| 11 #include "app/sql/transaction.h" | |
| 12 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 13 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 14 #include "base/logging.h" | 9 #include "base/logging.h" |
| 15 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "sql/connection.h" |
| 12 #include "sql/diagnostic_error_delegate.h" |
| 13 #include "sql/meta_table.h" |
| 14 #include "sql/statement.h" |
| 15 #include "sql/transaction.h" |
| 16 #include "webkit/appcache/appcache_entry.h" | 16 #include "webkit/appcache/appcache_entry.h" |
| 17 #include "webkit/appcache/appcache_histograms.h" | 17 #include "webkit/appcache/appcache_histograms.h" |
| 18 | 18 |
| 19 // Schema ------------------------------------------------------------------- | 19 // Schema ------------------------------------------------------------------- |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const int kCurrentVersion = 3; | 22 const int kCurrentVersion = 3; |
| 23 const int kCompatibleVersion = 3; | 23 const int kCompatibleVersion = 3; |
| 24 | 24 |
| 25 const char* kGroupsTable = "Groups"; | 25 const char* kGroupsTable = "Groups"; |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 | 1131 |
| 1132 // So we can't go recursive. | 1132 // So we can't go recursive. |
| 1133 if (is_recreating_) | 1133 if (is_recreating_) |
| 1134 return false; | 1134 return false; |
| 1135 | 1135 |
| 1136 AutoReset<bool> auto_reset(&is_recreating_, true); | 1136 AutoReset<bool> auto_reset(&is_recreating_, true); |
| 1137 return LazyOpen(true); | 1137 return LazyOpen(true); |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 } // namespace appcache | 1140 } // namespace appcache |
| OLD | NEW |