| 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 #include "chrome/browser/history/visitsegment_database.h" | 5 #include "chrome/browser/history/visitsegment_database.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "chrome/browser/history/page_usage_data.h" | 9 #include "chrome/browser/history/page_usage_data.h" |
| 10 #include "chrome/common/sqlite_compiled_statement.h" | 10 #include "chrome/common/sqlite_compiled_statement.h" |
| 11 #include "chrome/common/sqlite_utils.h" | 11 #include "chrome/common/sqlite_utils.h" |
| 12 | 12 |
| 13 using base::Time; |
| 14 |
| 13 // The following tables are used to store url segment information. | 15 // The following tables are used to store url segment information. |
| 14 // | 16 // |
| 15 // segments | 17 // segments |
| 16 // id Primary key | 18 // id Primary key |
| 17 // name A unique string to represent that segment. (URL derived) | 19 // name A unique string to represent that segment. (URL derived) |
| 18 // url_id ID of the url currently used to represent this segment. | 20 // url_id ID of the url currently used to represent this segment. |
| 19 // pres_index index used to store a fixed presentation position. | 21 // pres_index index used to store a fixed presentation position. |
| 20 // | 22 // |
| 21 // segment_usage | 23 // segment_usage |
| 22 // id Primary key | 24 // id Primary key |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 NOTREACHED(); | 381 NOTREACHED(); |
| 380 r = false; | 382 r = false; |
| 381 } | 383 } |
| 382 delete_usage->reset(); | 384 delete_usage->reset(); |
| 383 delete_seg->reset(); | 385 delete_seg->reset(); |
| 384 } | 386 } |
| 385 return r; | 387 return r; |
| 386 } | 388 } |
| 387 | 389 |
| 388 } // namespace history | 390 } // namespace history |
| 389 | |
| OLD | NEW |