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

Side by Side Diff: components/history/core/browser/history_database.h

Issue 2300323003: Adding performance tests for HQP that represent importance of optimising HistoryItemsForTerms method (Closed)
Patch Set: Review, round 4. Created 4 years, 1 month 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
« no previous file with comments | « components/BUILD.gn ('k') | components/history/core/browser/history_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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_
OLDNEW
« no previous file with comments | « components/BUILD.gn ('k') | components/history/core/browser/history_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698