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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/history/core/android/favicon_sql_handler.h
diff --git a/components/history/core/android/favicon_sql_handler.h b/components/history/core/android/favicon_sql_handler.h
deleted file mode 100644
index df81abacb3658b3f232432d4a2a5ed8369cb82d7..0000000000000000000000000000000000000000
--- a/components/history/core/android/favicon_sql_handler.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_HISTORY_CORE_ANDROID_FAVICON_SQL_HANDLER_H_
-#define COMPONENTS_HISTORY_CORE_ANDROID_FAVICON_SQL_HANDLER_H_
-
-#include "components/history/core/android/sql_handler.h"
-
-namespace history {
-
-class ThumbnailDatabase;
-
-// The SQL handler implementation for icon_mapping and favicon table.
-class FaviconSQLHandler : public SQLHandler {
- public:
- explicit FaviconSQLHandler(ThumbnailDatabase* thumbnail_db);
- virtual ~FaviconSQLHandler();
-
- // SQLHandler overrides:
- virtual bool Update(const HistoryAndBookmarkRow& row,
- const TableIDRows& ids_set) override;
- virtual bool Delete(const TableIDRows& ids_set) override;
- virtual bool Insert(HistoryAndBookmarkRow* row) override;
-
- private:
- // Deletes the given favicons if they are not used by any pages. Returns
- // true if all unused favicons are deleted.
- bool DeleteUnusedFavicon(const std::vector<favicon_base::FaviconID>& ids);
-
- ThumbnailDatabase* thumbnail_db_;
-
- DISALLOW_COPY_AND_ASSIGN(FaviconSQLHandler);
-};
-
-} // namespace history.
-
-#endif // COMPONENTS_HISTORY_CORE_ANDROID_FAVICON_SQL_HANDLER_H_
« 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