| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "sql/recovery.h" | 5 #include "sql/recovery.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram_macros.h" |
| 13 #include "base/metrics/sparse_histogram.h" | 13 #include "base/metrics/sparse_histogram.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "sql/connection.h" | 16 #include "sql/connection.h" |
| 17 #include "sql/statement.h" | 17 #include "sql/statement.h" |
| 18 #include "third_party/sqlite/sqlite3.h" | 18 #include "third_party/sqlite/sqlite3.h" |
| 19 #include "third_party/sqlite/src/src/recover.h" | 19 #include "third_party/sqlite/src/src/recover.h" |
| 20 | 20 |
| 21 namespace sql { | 21 namespace sql { |
| 22 | 22 |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 // - SQLITE_READONLY - permissions could be fixed. | 706 // - SQLITE_READONLY - permissions could be fixed. |
| 707 // - SQLITE_IOERR - rewrite using new blocks. | 707 // - SQLITE_IOERR - rewrite using new blocks. |
| 708 // - SQLITE_FULL - recover in memory and rewrite subset of data. | 708 // - SQLITE_FULL - recover in memory and rewrite subset of data. |
| 709 | 709 |
| 710 default: | 710 default: |
| 711 return false; | 711 return false; |
| 712 } | 712 } |
| 713 } | 713 } |
| 714 | 714 |
| 715 } // namespace sql | 715 } // namespace sql |
| OLD | NEW |