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 COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ | 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ |
6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ | 6 #define COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 virtual base::Time GetEarlyExpirationThreshold(); | 162 virtual base::Time GetEarlyExpirationThreshold(); |
163 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); | 163 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); |
164 | 164 |
165 private: | 165 private: |
166 #if defined(OS_ANDROID) | 166 #if defined(OS_ANDROID) |
167 // AndroidProviderBackend uses the |db_|. | 167 // AndroidProviderBackend uses the |db_|. |
168 friend class AndroidProviderBackend; | 168 friend class AndroidProviderBackend; |
169 FRIEND_TEST_ALL_PREFIXES(AndroidURLsMigrationTest, MigrateToVersion22); | 169 FRIEND_TEST_ALL_PREFIXES(AndroidURLsMigrationTest, MigrateToVersion22); |
170 #endif | 170 #endif |
171 friend class ::HistoryQuickProviderTest; | 171 friend class ::HistoryQuickProviderTest; |
| 172 friend class HQPPerfTestBase; |
172 friend class ::InMemoryURLIndexTest; | 173 friend class ::InMemoryURLIndexTest; |
173 | 174 |
174 // Overridden from URLDatabase: | 175 // Overridden from URLDatabase: |
175 sql::Connection& GetDB() override; | 176 sql::Connection& GetDB() override; |
176 | 177 |
177 // Migration ----------------------------------------------------------------- | 178 // Migration ----------------------------------------------------------------- |
178 | 179 |
179 // Makes sure the version is up to date, updating if necessary. If the | 180 // Makes sure the version is up to date, updating if necessary. If the |
180 // database is too old to migrate, the user will be notified. Returns | 181 // database is too old to migrate, the user will be notified. Returns |
181 // sql::INIT_OK iff the DB is up to date and ready for use. | 182 // sql::INIT_OK iff the DB is up to date and ready for use. |
(...skipping 14 matching lines...) Expand all Loading... |
196 sql::MetaTable meta_table_; | 197 sql::MetaTable meta_table_; |
197 | 198 |
198 base::Time cached_early_expiration_threshold_; | 199 base::Time cached_early_expiration_threshold_; |
199 | 200 |
200 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); | 201 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); |
201 }; | 202 }; |
202 | 203 |
203 } // namespace history | 204 } // namespace history |
204 | 205 |
205 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ | 206 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ |
OLD | NEW |