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

Side by Side Diff: components/history/core/android/favicon_sql_handler.h

Issue 849323002: Componentize HistoryDatabase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compilation Created 5 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_HISTORY_CORE_ANDROID_FAVICON_SQL_HANDLER_H_
6 #define COMPONENTS_HISTORY_CORE_ANDROID_FAVICON_SQL_HANDLER_H_
7
8 #include "components/history/core/android/sql_handler.h"
9
10 namespace history {
11
12 class ThumbnailDatabase;
13
14 // The SQL handler implementation for icon_mapping and favicon table.
15 class FaviconSQLHandler : public SQLHandler {
16 public:
17 explicit FaviconSQLHandler(ThumbnailDatabase* thumbnail_db);
18 virtual ~FaviconSQLHandler();
19
20 // SQLHandler overrides:
21 virtual bool Update(const HistoryAndBookmarkRow& row,
22 const TableIDRows& ids_set) override;
23 virtual bool Delete(const TableIDRows& ids_set) override;
24 virtual bool Insert(HistoryAndBookmarkRow* row) override;
25
26 private:
27 // Deletes the given favicons if they are not used by any pages. Returns
28 // true if all unused favicons are deleted.
29 bool DeleteUnusedFavicon(const std::vector<favicon_base::FaviconID>& ids);
30
31 ThumbnailDatabase* thumbnail_db_;
32
33 DISALLOW_COPY_AND_ASSIGN(FaviconSQLHandler);
34 };
35
36 } // namespace history.
37
38 #endif // COMPONENTS_HISTORY_CORE_ANDROID_FAVICON_SQL_HANDLER_H_
OLDNEW
« no previous file with comments | « components/history/core/android/android_urls_sql_handler.cc ('k') | components/history/core/android/favicon_sql_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698