OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ |
6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 // Retrieves/Updates early expiration threshold, which specifies the earliest | 139 // Retrieves/Updates early expiration threshold, which specifies the earliest |
140 // known point in history that may possibly to contain visits suitable for | 140 // known point in history that may possibly to contain visits suitable for |
141 // early expiration (AUTO_SUBFRAMES). | 141 // early expiration (AUTO_SUBFRAMES). |
142 virtual base::Time GetEarlyExpirationThreshold(); | 142 virtual base::Time GetEarlyExpirationThreshold(); |
143 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); | 143 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); |
144 | 144 |
145 private: | 145 private: |
146 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration); | 146 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration); |
147 | 147 |
148 // Implemented for URLDatabase. | 148 // Implemented for URLDatabase. |
149 virtual sql::Connection& GetDB(); | 149 virtual sql::Connection& GetDB() OVERRIDE; |
150 | 150 |
151 // Migration ----------------------------------------------------------------- | 151 // Migration ----------------------------------------------------------------- |
152 | 152 |
153 // Makes sure the version is up-to-date, updating if necessary. If the | 153 // Makes sure the version is up-to-date, updating if necessary. If the |
154 // database is too old to migrate, the user will be notified. In this case, or | 154 // database is too old to migrate, the user will be notified. In this case, or |
155 // for other errors, false will be returned. True means it is up-to-date and | 155 // for other errors, false will be returned. True means it is up-to-date and |
156 // ready for use. | 156 // ready for use. |
157 // | 157 // |
158 // This assumes it is called from the init function inside a transaction. It | 158 // This assumes it is called from the init function inside a transaction. It |
159 // may commit the transaction and start a new one if migration requires it. | 159 // may commit the transaction and start a new one if migration requires it. |
(...skipping 14 matching lines...) Expand all Loading... |
174 | 174 |
175 // See the getters above. | 175 // See the getters above. |
176 bool needs_version_17_migration_; | 176 bool needs_version_17_migration_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); | 178 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace history | 181 } // namespace history |
182 | 182 |
183 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ | 183 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ |
OLD | NEW |