| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <math.h> | 7 #include <math.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/stl_util-inl.h" | 14 #include "base/stl_util.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
| 17 #include "chrome/browser/history/page_usage_data.h" | 17 #include "chrome/browser/history/page_usage_data.h" |
| 18 #include "sql/statement.h" | 18 #include "sql/statement.h" |
| 19 | 19 |
| 20 // The following tables are used to store url segment information. | 20 // The following tables are used to store url segment information. |
| 21 // | 21 // |
| 22 // segments | 22 // segments |
| 23 // id Primary key | 23 // id Primary key |
| 24 // name A unique string to represent that segment. (URL derived) | 24 // name A unique string to represent that segment. (URL derived) |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 NOTREACHED(); | 376 NOTREACHED(); |
| 377 r = false; | 377 r = false; |
| 378 } | 378 } |
| 379 delete_usage.Reset(); | 379 delete_usage.Reset(); |
| 380 delete_seg.Reset(); | 380 delete_seg.Reset(); |
| 381 } | 381 } |
| 382 return r; | 382 return r; |
| 383 } | 383 } |
| 384 | 384 |
| 385 } // namespace history | 385 } // namespace history |
| OLD | NEW |