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/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // visit id wasn't found. | 134 // visit id wasn't found. |
135 SegmentID GetSegmentID(VisitID visit_id); | 135 SegmentID GetSegmentID(VisitID visit_id); |
136 | 136 |
137 // Retrieves/Updates early expiration threshold, which specifies the earliest | 137 // Retrieves/Updates early expiration threshold, which specifies the earliest |
138 // known point in history that may possibly to contain visits suitable for | 138 // known point in history that may possibly to contain visits suitable for |
139 // early expiration (AUTO_SUBFRAMES). | 139 // early expiration (AUTO_SUBFRAMES). |
140 virtual base::Time GetEarlyExpirationThreshold(); | 140 virtual base::Time GetEarlyExpirationThreshold(); |
141 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); | 141 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); |
142 | 142 |
143 private: | 143 private: |
| 144 friend class InMemoryURLIndexTest; |
144 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration); | 145 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration); |
145 | 146 |
146 // Overridden from URLDatabase: | 147 // Overridden from URLDatabase: |
147 virtual sql::Connection& GetDB() OVERRIDE; | 148 virtual sql::Connection& GetDB() OVERRIDE; |
148 | 149 |
149 // Migration ----------------------------------------------------------------- | 150 // Migration ----------------------------------------------------------------- |
150 | 151 |
151 // Makes sure the version is up-to-date, updating if necessary. If the | 152 // Makes sure the version is up-to-date, updating if necessary. If the |
152 // database is too old to migrate, the user will be notified. In this case, or | 153 // database is too old to migrate, the user will be notified. In this case, or |
153 // for other errors, false will be returned. True means it is up-to-date and | 154 // for other errors, false will be returned. True means it is up-to-date and |
(...skipping 18 matching lines...) Expand all Loading... |
172 | 173 |
173 // See the getters above. | 174 // See the getters above. |
174 bool needs_version_17_migration_; | 175 bool needs_version_17_migration_; |
175 | 176 |
176 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); | 177 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); |
177 }; | 178 }; |
178 | 179 |
179 } // namespace history | 180 } // namespace history |
180 | 181 |
181 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ | 182 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ |
OLD | NEW |