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

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

Issue 3461019: FBTF: Move virtual methods to implementation files. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Win+chromeos+mac fixes Created 10 years, 3 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) 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_DATABASE_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_DATABASE_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_DATABASE_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_DATABASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual bool GetPageThumbnail(const GURL& url, 59 virtual bool GetPageThumbnail(const GURL& url,
60 Images* thumbnail) = 0; 60 Images* thumbnail) = 0;
61 61
62 // Remove the record for this URL. Returns true iff removed successfully. 62 // Remove the record for this URL. Returns true iff removed successfully.
63 virtual bool RemoveURL(const MostVisitedURL& url) = 0; 63 virtual bool RemoveURL(const MostVisitedURL& url) = 0;
64 }; 64 };
65 65
66 class TopSitesDatabaseImpl : public TopSitesDatabase { 66 class TopSitesDatabaseImpl : public TopSitesDatabase {
67 public: 67 public:
68 TopSitesDatabaseImpl(); 68 TopSitesDatabaseImpl();
69 ~TopSitesDatabaseImpl() {} 69 virtual ~TopSitesDatabaseImpl();
70 70
71 // Must be called after creation but before any other methods are called. 71 // Must be called after creation but before any other methods are called.
72 // Returns true on success. If false, no other functions should be called. 72 // Returns true on success. If false, no other functions should be called.
73 virtual bool Init(const FilePath& db_name); 73 virtual bool Init(const FilePath& db_name);
74 74
75 // Thumbnails ---------------------------------------------------------------- 75 // Thumbnails ----------------------------------------------------------------
76 76
77 // Returns a list of all URLs currently in the table. 77 // Returns a list of all URLs currently in the table.
78 // WARNING: clears both input arguments. 78 // WARNING: clears both input arguments.
79 virtual void GetPageThumbnails(MostVisitedURLList* urls, 79 virtual void GetPageThumbnails(MostVisitedURLList* urls,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Decodes redirects from a string and sets them for the url. 127 // Decodes redirects from a string and sets them for the url.
128 static void SetRedirects(const std::string& redirects, MostVisitedURL* url); 128 static void SetRedirects(const std::string& redirects, MostVisitedURL* url);
129 129
130 sql::Connection db_; 130 sql::Connection db_;
131 }; 131 };
132 132
133 } // namespace history 133 } // namespace history
134 134
135 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_DATABASE_H_ 135 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698