| OLD | NEW |
| 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_VISIT_DATABASE_H_ | 5 #ifndef CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ |
| 6 #define CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ | 6 #define CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/history/history_types.h" | 9 #include "chrome/browser/history/history_types.h" |
| 10 | 10 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 bool InitVisitTable(); | 181 bool InitVisitTable(); |
| 182 | 182 |
| 183 // Convenience to fill a VisitRow. Assumes the visit values are bound starting | 183 // Convenience to fill a VisitRow. Assumes the visit values are bound starting |
| 184 // at index 0. | 184 // at index 0. |
| 185 static void FillVisitRow(sql::Statement& statement, VisitRow* visit); | 185 static void FillVisitRow(sql::Statement& statement, VisitRow* visit); |
| 186 | 186 |
| 187 // Convenience to fill a VisitVector. Assumes that statement.step() | 187 // Convenience to fill a VisitVector. Assumes that statement.step() |
| 188 // hasn't happened yet. | 188 // hasn't happened yet. |
| 189 static bool FillVisitVector(sql::Statement& statement, VisitVector* visits); | 189 static bool FillVisitVector(sql::Statement& statement, VisitVector* visits); |
| 190 | 190 |
| 191 // Called by the derived classes to migrate the older visits table which |
| 192 // don't have visit_duration column yet. |
| 193 bool MigrateVisitsWithoutDuration(); |
| 194 |
| 191 private: | 195 private: |
| 192 | 196 |
| 193 DISALLOW_COPY_AND_ASSIGN(VisitDatabase); | 197 DISALLOW_COPY_AND_ASSIGN(VisitDatabase); |
| 194 }; | 198 }; |
| 195 | 199 |
| 196 } // history | 200 } // history |
| 197 | 201 |
| 198 #endif // CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ | 202 #endif // CHROME_BROWSER_HISTORY_VISIT_DATABASE_H_ |
| OLD | NEW |