1 // Copyright 2018 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SQL_INTERNAL_API_TOKEN_H_
6 #define SQL_INTERNAL_API_TOKEN_H_
16 bool CorruptSizeInHeader(const base::FilePath&);
19 // Restricts access to APIs internal to the //sql package.
21 // This implements Java's package-private via the passkey idiom.
22 class InternalApiToken {
24 // Must NOT be =default to disallow creation by uniform initialization.
26 InternalApiToken(const InternalApiToken&) = default;
28 friend class BuiltInRecovery;
29 friend class DatabaseTestPeer;
30 friend class Recovery;
31 friend struct test::ColumnInfo;
32 friend bool test::CorruptSizeInHeader(const base::FilePath&);
37 #endif // SQL_INTERNAL_API_TOKEN_H_