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

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

Issue 6283001: Remove TopSites::IsEnabled() as well as related dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OnThumbnailDataAvailable Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // thread. All other methods must be invoked on the UI thread. All mutations 44 // thread. All other methods must be invoked on the UI thread. All mutations
45 // to internal state happen on the UI thread and are scheduled to update the 45 // to internal state happen on the UI thread and are scheduled to update the
46 // db using TopSitesBackend. 46 // db using TopSitesBackend.
47 class TopSites 47 class TopSites
48 : public base::RefCountedThreadSafe<TopSites>, 48 : public base::RefCountedThreadSafe<TopSites>,
49 public NotificationObserver, 49 public NotificationObserver,
50 public CancelableRequestProvider { 50 public CancelableRequestProvider {
51 public: 51 public:
52 explicit TopSites(Profile* profile); 52 explicit TopSites(Profile* profile);
53 53
54 // Returns whether top sites is enabled.
55 static bool IsEnabled();
56
57 // Initializes TopSites. 54 // Initializes TopSites.
58 void Init(const FilePath& db_name); 55 void Init(const FilePath& db_name);
59 56
60 // Sets the given thumbnail for the given URL. Returns true if the thumbnail 57 // Sets the given thumbnail for the given URL. Returns true if the thumbnail
61 // was updated. False means either the URL wasn't known to us, or we felt 58 // was updated. False means either the URL wasn't known to us, or we felt
62 // that our current thumbnail was superior to the given one. 59 // that our current thumbnail was superior to the given one.
63 bool SetPageThumbnail(const GURL& url, 60 bool SetPageThumbnail(const GURL& url,
64 const SkBitmap& thumbnail, 61 const SkBitmap& thumbnail,
65 const ThumbnailScore& score); 62 const ThumbnailScore& score);
66 63
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 346
350 // Are we loaded? 347 // Are we loaded?
351 bool loaded_; 348 bool loaded_;
352 349
353 DISALLOW_COPY_AND_ASSIGN(TopSites); 350 DISALLOW_COPY_AND_ASSIGN(TopSites);
354 }; 351 };
355 352
356 } // namespace history 353 } // namespace history
357 354
358 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ 355 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/thumbnail_database_unittest.cc ('k') | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698