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 #include "webkit/browser/appcache/appcache_database.h" | 5 #include "webkit/browser/appcache/appcache_database.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "sql/connection.h" | 12 #include "sql/connection.h" |
13 #include "sql/meta_table.h" | 13 #include "sql/meta_table.h" |
14 #include "sql/statement.h" | 14 #include "sql/statement.h" |
15 #include "sql/transaction.h" | 15 #include "sql/transaction.h" |
16 #include "webkit/browser/appcache/appcache_entry.h" | 16 #include "webkit/browser/appcache/appcache_entry.h" |
17 #include "webkit/browser/appcache/appcache_histograms.h" | 17 #include "webkit/browser/appcache/appcache_histograms.h" |
18 | 18 |
19 namespace appcache { | 19 namespace appcache { |
20 | 20 |
21 // Schema ------------------------------------------------------------------- | 21 // Schema ------------------------------------------------------------------- |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 | 1197 |
1198 // So we can't go recursive. | 1198 // So we can't go recursive. |
1199 if (is_recreating_) | 1199 if (is_recreating_) |
1200 return false; | 1200 return false; |
1201 | 1201 |
1202 base::AutoReset<bool> auto_reset(&is_recreating_, true); | 1202 base::AutoReset<bool> auto_reset(&is_recreating_, true); |
1203 return LazyOpen(true); | 1203 return LazyOpen(true); |
1204 } | 1204 } |
1205 | 1205 |
1206 } // namespace appcache | 1206 } // namespace appcache |
OLD | NEW |