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

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

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 7 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 COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_ 5 #ifndef COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_
6 #define COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_ 6 #define COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 bool InitIconMappingEnumerator(favicon_base::IconType type, 225 bool InitIconMappingEnumerator(favicon_base::IconType type,
226 IconMappingEnumerator* enumerator); 226 IconMappingEnumerator* enumerator);
227 227
228 // Remove all data except that associated with the passed page urls. 228 // Remove all data except that associated with the passed page urls.
229 // Returns false in case of failure. A nested transaction is used, 229 // Returns false in case of failure. A nested transaction is used,
230 // so failure causes any outer transaction to be rolled back. 230 // so failure causes any outer transaction to be rolled back.
231 bool RetainDataForPageUrls(const std::vector<GURL>& urls_to_keep); 231 bool RetainDataForPageUrls(const std::vector<GURL>& urls_to_keep);
232 232
233 private: 233 private:
234 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, RetainDataForPageUrls); 234 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, RetainDataForPageUrls);
235 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest,
236 RetainDataForPageUrlsExpiresRetainedFavicons);
235 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version3); 237 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version3);
236 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version4); 238 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version4);
237 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version5); 239 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version5);
238 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version6); 240 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version6);
239 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version7); 241 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version7);
240 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version8); 242 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, Version8);
241 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, WildSchema); 243 FRIEND_TEST_ALL_PREFIXES(ThumbnailDatabaseTest, WildSchema);
242 244
243 // Open database on a given filename. If the file does not exist, 245 // Open database on a given filename. If the file does not exist,
244 // it is created. 246 // it is created.
(...skipping 24 matching lines...) Expand all
269 271
270 sql::Connection db_; 272 sql::Connection db_;
271 sql::MetaTable meta_table_; 273 sql::MetaTable meta_table_;
272 274
273 HistoryClient* history_client_; 275 HistoryClient* history_client_;
274 }; 276 };
275 277
276 } // namespace history 278 } // namespace history
277 279
278 #endif // COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_ 280 #endif // COMPONENTS_HISTORY_CORE_BROWSER_THUMBNAIL_DATABASE_H_
OLDNEW
« no previous file with comments | « components/history/core/browser/history_backend.cc ('k') | components/history/core/browser/thumbnail_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698