Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Side by Side Diff: chrome/browser/history/history_database.h

Issue 10067030: Upgrade the history database to version 23 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Init Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Retrieves/Updates early expiration threshold, which specifies the earliest 147 // Retrieves/Updates early expiration threshold, which specifies the earliest
148 // known point in history that may possibly to contain visits suitable for 148 // known point in history that may possibly to contain visits suitable for
149 // early expiration (AUTO_SUBFRAMES). 149 // early expiration (AUTO_SUBFRAMES).
150 virtual base::Time GetEarlyExpirationThreshold(); 150 virtual base::Time GetEarlyExpirationThreshold();
151 virtual void UpdateEarlyExpirationThreshold(base::Time threshold); 151 virtual void UpdateEarlyExpirationThreshold(base::Time threshold);
152 152
153 private: 153 private:
154 #if defined(OS_ANDROID) 154 #if defined(OS_ANDROID)
155 // AndroidProviderBackend uses the |db_|. 155 // AndroidProviderBackend uses the |db_|.
156 friend class AndroidProviderBackend; 156 friend class AndroidProviderBackend;
157 FRIEND_TEST_ALL_PREFIXES(AndroidURLsMigrationTest,
158 MigrateToVersion22);
157 #endif 159 #endif
158 friend class InMemoryURLIndexTest; 160 friend class InMemoryURLIndexTest;
159 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration); 161 FRIEND_TEST_ALL_PREFIXES(IconMappingMigrationTest, TestIconMappingMigration);
160 162
161 // Overridden from URLDatabase: 163 // Overridden from URLDatabase:
162 virtual sql::Connection& GetDB() OVERRIDE; 164 virtual sql::Connection& GetDB() OVERRIDE;
163 165
164 // Overridden from DownloadDatabase: 166 // Overridden from DownloadDatabase:
165 virtual sql::MetaTable& GetMetaTable() OVERRIDE; 167 virtual sql::MetaTable& GetMetaTable() OVERRIDE;
166 168
(...skipping 23 matching lines...) Expand all
190 192
191 // See the getters above. 193 // See the getters above.
192 bool needs_version_17_migration_; 194 bool needs_version_17_migration_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase); 196 DISALLOW_COPY_AND_ASSIGN(HistoryDatabase);
195 }; 197 };
196 198
197 } // namespace history 199 } // namespace history
198 200
199 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_ 201 #endif // CHROME_BROWSER_HISTORY_HISTORY_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698