Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Side by Side Diff: sql/connection.h

Issue 2827673006: [sql] Verify control of close-time WAL checkpoint. (Closed)
Patch Set: comment tweaks Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sql/sqlite_features_unittest.cc » ('j') | sql/sqlite_features_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | sql/sqlite_features_unittest.cc » ('j') | sql/sqlite_features_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698