OLD | NEW |
1 // Copyright (c) 2009 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 "app/sql/statement.h" | |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 #include "base/stl_util-inl.h" | 14 #include "base/stl_util-inl.h" |
16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
17 #include "base/utf_string_conversions.h" | 16 #include "base/utf_string_conversions.h" |
18 #include "chrome/browser/history/page_usage_data.h" | 17 #include "chrome/browser/history/page_usage_data.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) |
25 // url_id ID of the url currently used to represent this segment. | 25 // url_id ID of the url currently used to represent this segment. |
26 // pres_index index used to store a fixed presentation position. | 26 // pres_index index used to store a fixed presentation position. |
27 // | 27 // |
28 // segment_usage | 28 // segment_usage |
(...skipping 347 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 |