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

Unified Diff: chrome/browser/history/android/visit_sql_handler.h

Issue 813503003: Move files from chrome/browser/history to components/history (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@favicon-owners
Patch Set: Add missing #include of base/macros.h 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: chrome/browser/history/android/visit_sql_handler.h
diff --git a/chrome/browser/history/android/visit_sql_handler.h b/chrome/browser/history/android/visit_sql_handler.h
deleted file mode 100644
index ac019e3cb45c8db296115f6eab7814b3a32c0099..0000000000000000000000000000000000000000
--- a/chrome/browser/history/android/visit_sql_handler.h
+++ /dev/null
@@ -1,52 +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 CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_
-#define CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_
-
-#include "components/history/core/android/sql_handler.h"
-
-namespace base {
-class Time;
-}
-
-namespace history {
-
-class URLDatabase;
-class VisitDatabase;
-
-// This class is the SQLHandler for visits table.
-class VisitSQLHandler : public SQLHandler {
- public:
- VisitSQLHandler(URLDatabase* url_db, VisitDatabase* visit_db);
- virtual ~VisitSQLHandler();
-
- // Overriden from SQLHandler.
- virtual bool Update(const HistoryAndBookmarkRow& row,
- const TableIDRows& ids_set) override;
- virtual bool Insert(HistoryAndBookmarkRow* row) override;
- virtual bool Delete(const TableIDRows& ids_set) override;
-
- private:
- // Add a row in visit table with the given |url_id| and |visit_time|.
- bool AddVisit(URLID url_id, const base::Time& visit_time);
-
- // Add the given |visit_count| rows for |url_id|. The visit time of each row
- // has minium difference and ends with the |last_visit_time|.
- bool AddVisitRows(URLID url_id,
- int visit_count,
- const base::Time& last_visit_time);
-
- // Delete the visits of the given |url_id|.
- bool DeleteVisitsForURL(URLID url_id);
-
- URLDatabase* url_db_;
- VisitDatabase* visit_db_;
-
- DISALLOW_COPY_AND_ASSIGN(VisitSQLHandler);
-};
-
-} // namespace history.
-
-#endif // CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_
« no previous file with comments | « chrome/browser/history/android/urls_sql_handler_unittest.cc ('k') | chrome/browser/history/android/visit_sql_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698