shess | 5f2c344 | 2017-01-24 02:15:10 | [diff] [blame^] | 1 | // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SQL_VFS_WRAPPER_H_ |
| 6 | #define SQL_VFS_WRAPPER_H_ |
| 7 | |
| 8 | #include "third_party/sqlite/sqlite3.h" |
| 9 | |
| 10 | namespace sql { |
| 11 | |
| 12 | // A wrapper around the default VFS. |
| 13 | // |
| 14 | // On OSX, the wrapper propagates Time Machine exclusions from the main database |
| 15 | // file to associated files such as journals. <http://crbug.com/23619> and |
| 16 | // <http://crbug.com/25959> and others. |
| 17 | // |
| 18 | // TODO(shess): On Windows, wrap xFetch() with a structured exception handler. |
| 19 | sqlite3_vfs* VFSWrapper(); |
| 20 | |
| 21 | } // namespace sql |
| 22 | |
| 23 | #endif // SQL_VFS_WRAPPER_H_ |