| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // early expiration (AUTO_SUBFRAMES). | 161 // early expiration (AUTO_SUBFRAMES). |
| 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; | |
| 172 friend class ::InMemoryURLIndexTest; | 171 friend class ::InMemoryURLIndexTest; |
| 173 | 172 |
| 174 // Overridden from URLDatabase: | 173 // Overridden from URLDatabase: |
| 175 sql::Connection& GetDB() override; | 174 sql::Connection& GetDB() override; |
| 176 | 175 |
| 177 // Migration ----------------------------------------------------------------- | 176 // Migration ----------------------------------------------------------------- |
| 178 | 177 |
| 179 // Makes sure the version is up to date, updating if necessary. If the | 178 // 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 | 179 // 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. | 180 // 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_; | 195 sql::MetaTable meta_table_; |
| 197 | 196 |
| 198 base::Time cached_early_expiration_threshold_; | 197 base::Time cached_early_expiration_threshold_; |
| 199 | 198 |
| 200 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); | 199 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); |
| 201 }; | 200 }; |
| 202 | 201 |
| 203 } // namespace history | 202 } // namespace history |
| 204 | 203 |
| 205 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ | 204 #endif // COMPONENTS_HISTORY_CORE_BROWSER_HISTORY_DATABASE_H_ |
| OLD | NEW |