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