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

Side by Side Diff: chrome/browser/history/android/visit_sql_handler.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs Created 6 years, 2 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) 2012 The Chromium Authors. All rights reserved. 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 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_ANDROID_VISIT_SQL_HANDLER_H_ 5 #ifndef CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_
6 #define CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_ 6 #define CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_
7 7
8 #include "chrome/browser/history/android/sql_handler.h" 8 #include "chrome/browser/history/android/sql_handler.h"
9 9
10 namespace base { 10 namespace base {
11 class Time; 11 class Time;
12 } 12 }
13 13
14 namespace history { 14 namespace history {
15 15
16 class HistoryDatabase; 16 class HistoryDatabase;
17 17
18 // This class is the SQLHandler for visits table. 18 // This class is the SQLHandler for visits table.
19 class VisitSQLHandler : public SQLHandler { 19 class VisitSQLHandler : public SQLHandler {
20 public: 20 public:
21 explicit VisitSQLHandler(HistoryDatabase* history_db); 21 explicit VisitSQLHandler(HistoryDatabase* history_db);
22 virtual ~VisitSQLHandler(); 22 virtual ~VisitSQLHandler();
23 23
24 // Overriden from SQLHandler. 24 // Overriden from SQLHandler.
25 virtual bool Update(const HistoryAndBookmarkRow& row, 25 virtual bool Update(const HistoryAndBookmarkRow& row,
26 const TableIDRows& ids_set) OVERRIDE; 26 const TableIDRows& ids_set) override;
27 virtual bool Insert(HistoryAndBookmarkRow* row) OVERRIDE; 27 virtual bool Insert(HistoryAndBookmarkRow* row) override;
28 virtual bool Delete(const TableIDRows& ids_set) OVERRIDE; 28 virtual bool Delete(const TableIDRows& ids_set) override;
29 29
30 private: 30 private:
31 // Add a row in visit table with the given |url_id| and |visit_time|. 31 // Add a row in visit table with the given |url_id| and |visit_time|.
32 bool AddVisit(URLID url_id, const base::Time& visit_time); 32 bool AddVisit(URLID url_id, const base::Time& visit_time);
33 33
34 // Add the given |visit_count| rows for |url_id|. The visit time of each row 34 // Add the given |visit_count| rows for |url_id|. The visit time of each row
35 // has minium difference and ends with the |last_visit_time|. 35 // has minium difference and ends with the |last_visit_time|.
36 bool AddVisitRows(URLID url_id, 36 bool AddVisitRows(URLID url_id,
37 int visit_count, 37 int visit_count,
38 const base::Time& last_visit_time); 38 const base::Time& last_visit_time);
39 39
40 // Delete the visits of the given |url_id|. 40 // Delete the visits of the given |url_id|.
41 bool DeleteVisitsForURL(URLID url_id); 41 bool DeleteVisitsForURL(URLID url_id);
42 42
43 HistoryDatabase* history_db_; 43 HistoryDatabase* history_db_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(VisitSQLHandler); 45 DISALLOW_COPY_AND_ASSIGN(VisitSQLHandler);
46 }; 46 };
47 47
48 } // namespace history. 48 } // namespace history.
49 49
50 #endif // CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_ 50 #endif // CHROME_BROWSER_HISTORY_ANDROID_VISIT_SQL_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/android/urls_sql_handler.h ('k') | chrome/browser/history/chrome_history_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698