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

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

Issue 3135035: Fix broken thumbnails for sites with redirects. (Closed)
Patch Set: Comment. Created 10 years, 4 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
« no previous file with comments | « chrome/browser/dom_ui/most_visited_handler.cc ('k') | chrome/browser/history/top_sites.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_TOP_SITES_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLsDeleted); 146 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLsDeleted);
147 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay); 147 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay);
148 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration); 148 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration);
149 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites); 149 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites);
150 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, CancelingRequestsForTopSites); 150 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, CancelingRequestsForTopSites);
151 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddTemporaryThumbnail); 151 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddTemporaryThumbnail);
152 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Blacklisting); 152 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Blacklisting);
153 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLs); 153 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLs);
154 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, BlacklistingAndPinnedURLs); 154 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, BlacklistingAndPinnedURLs);
155 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddPrepopulatedPages); 155 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, AddPrepopulatedPages);
156 FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetPageThumbnail);
156 157
157 ~TopSites(); 158 ~TopSites();
158 159
159 // Sets the thumbnail without writing to the database. Useful when 160 // Sets the thumbnail without writing to the database. Useful when
160 // reading last known top sites from the DB. 161 // reading last known top sites from the DB.
161 // Returns true if the thumbnail was set, false if the existing one is better. 162 // Returns true if the thumbnail was set, false if the existing one is better.
162 bool SetPageThumbnailNoDB(const GURL& url, 163 bool SetPageThumbnailNoDB(const GURL& url,
163 const RefCountedBytes* thumbnail_data, 164 const RefCountedBytes* thumbnail_data,
164 const ThumbnailScore& score); 165 const ThumbnailScore& score);
165 166
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // index where it is pinned at (may be the same as key). This is 355 // index where it is pinned at (may be the same as key). This is
355 // owned by the PrefService. 356 // owned by the PrefService.
356 DictionaryValue* pinned_urls_; 357 DictionaryValue* pinned_urls_;
357 358
358 DISALLOW_COPY_AND_ASSIGN(TopSites); 359 DISALLOW_COPY_AND_ASSIGN(TopSites);
359 }; 360 };
360 361
361 } // namespace history 362 } // namespace history
362 363
363 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ 364 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/most_visited_handler.cc ('k') | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698