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 SQL_CONNECTION_H_ | 5 #ifndef SQL_CONNECTION_H_ |
6 #define SQL_CONNECTION_H_ | 6 #define SQL_CONNECTION_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 #include <map> | 10 #include <map> |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 | 520 |
521 friend class test::ScopedCommitHook; | 521 friend class test::ScopedCommitHook; |
522 friend class test::ScopedScalarFunction; | 522 friend class test::ScopedScalarFunction; |
523 friend class test::ScopedMockTimeSource; | 523 friend class test::ScopedMockTimeSource; |
524 | 524 |
525 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, CollectDiagnosticInfo); | 525 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, CollectDiagnosticInfo); |
526 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, GetAppropriateMmapSize); | 526 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, GetAppropriateMmapSize); |
527 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, GetAppropriateMmapSizeAltStatus); | 527 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, GetAppropriateMmapSizeAltStatus); |
528 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, OnMemoryDump); | 528 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, OnMemoryDump); |
529 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, RegisterIntentToUpload); | 529 FRIEND_TEST_ALL_PREFIXES(SQLConnectionTest, RegisterIntentToUpload); |
| 530 FRIEND_TEST_ALL_PREFIXES(SQLiteFeaturesTest, WALNoClose); |
530 | 531 |
531 // Internal initialize function used by both Init and InitInMemory. The file | 532 // Internal initialize function used by both Init and InitInMemory. The file |
532 // name is always 8 bits since we want to use the 8-bit version of | 533 // name is always 8 bits since we want to use the 8-bit version of |
533 // sqlite3_open. The string can also be sqlite's special ":memory:" string. | 534 // sqlite3_open. The string can also be sqlite's special ":memory:" string. |
534 // | 535 // |
535 // |retry_flag| controls retrying the open if the error callback | 536 // |retry_flag| controls retrying the open if the error callback |
536 // addressed errors using RazeAndClose(). | 537 // addressed errors using RazeAndClose(). |
537 enum Retry { | 538 enum Retry { |
538 NO_RETRY = 0, | 539 NO_RETRY = 0, |
539 RETRY_ON_POISON | 540 RETRY_ON_POISON |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 | 826 |
826 // Stores the dump provider object when db is open. | 827 // Stores the dump provider object when db is open. |
827 std::unique_ptr<ConnectionMemoryDumpProvider> memory_dump_provider_; | 828 std::unique_ptr<ConnectionMemoryDumpProvider> memory_dump_provider_; |
828 | 829 |
829 DISALLOW_COPY_AND_ASSIGN(Connection); | 830 DISALLOW_COPY_AND_ASSIGN(Connection); |
830 }; | 831 }; |
831 | 832 |
832 } // namespace sql | 833 } // namespace sql |
833 | 834 |
834 #endif // SQL_CONNECTION_H_ | 835 #endif // SQL_CONNECTION_H_ |
OLD | NEW |