OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_URL_DATABASE_H__ | 5 #ifndef CHROME_BROWSER_HISTORY_URL_DATABASE_H__ |
6 #define CHROME_BROWSER_HISTORY_URL_DATABASE_H__ | 6 #define CHROME_BROWSER_HISTORY_URL_DATABASE_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/browser/history/history_types.h" | 9 #include "chrome/browser/history/history_types.h" |
10 #include "chrome/browser/template_url.h" | 10 #include "chrome/browser/template_url.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 std::vector<KeywordSearchTermVisit>* matches); | 223 std::vector<KeywordSearchTermVisit>* matches); |
224 | 224 |
225 // Migration ----------------------------------------------------------------- | 225 // Migration ----------------------------------------------------------------- |
226 | 226 |
227 // Do to a bug we were setting the favicon of about:blank. This forces | 227 // Do to a bug we were setting the favicon of about:blank. This forces |
228 // about:blank to have no icon or title. Returns true on success, false if | 228 // about:blank to have no icon or title. Returns true on success, false if |
229 // the favicon couldn't be updated. | 229 // the favicon couldn't be updated. |
230 bool MigrateFromVersion11ToVersion12(); | 230 bool MigrateFromVersion11ToVersion12(); |
231 | 231 |
232 protected: | 232 protected: |
233 friend VisitDatabase; | 233 friend class VisitDatabase; |
234 | 234 |
235 // See HISTORY_URL_ROW_FIELDS below. | 235 // See HISTORY_URL_ROW_FIELDS below. |
236 static const char kURLRowFields[]; | 236 static const char kURLRowFields[]; |
237 | 237 |
238 // The number of fiends in kURLRowFields. If callers need additional | 238 // The number of fiends in kURLRowFields. If callers need additional |
239 // fields, they can add their 0-based index to this value to get the index of | 239 // fields, they can add their 0-based index to this value to get the index of |
240 // fields following kURLRowFields. | 240 // fields following kURLRowFields. |
241 static const int kNumURLRowFields; | 241 static const int kNumURLRowFields; |
242 | 242 |
243 // Drops the starred_id column from urls, returning true on success. This does | 243 // Drops the starred_id column from urls, returning true on success. This does |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 // string, it will save time doing string appends. If you have to build a SQL | 300 // string, it will save time doing string appends. If you have to build a SQL |
301 // string dynamically anyway, use the constant, it will save space. | 301 // string dynamically anyway, use the constant, it will save space. |
302 #define HISTORY_URL_ROW_FIELDS \ | 302 #define HISTORY_URL_ROW_FIELDS \ |
303 " urls.id, urls.url, urls.title, urls.visit_count, urls.typed_count, " \ | 303 " urls.id, urls.url, urls.title, urls.visit_count, urls.typed_count, " \ |
304 "urls.last_visit_time, urls.hidden, urls.favicon_id " | 304 "urls.last_visit_time, urls.hidden, urls.favicon_id " |
305 | 305 |
306 } // history | 306 } // history |
307 | 307 |
308 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_H__ | 308 #endif // CHROME_BROWSER_HISTORY_URL_DATABASE_H__ |
309 | 309 |
OLD | NEW |