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 #include "chrome/browser/history/url_index_private_data.h" | 5 #include "chrome/browser/history/url_index_private_data.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <iterator> | 9 #include <iterator> |
10 #include <limits> | 10 #include <limits> |
11 #include <numeric> | 11 #include <numeric> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
17 #include "base/i18n/break_iterator.h" | 17 #include "base/i18n/break_iterator.h" |
18 #include "base/i18n/case_conversion.h" | 18 #include "base/i18n/case_conversion.h" |
19 #include "base/metrics/histogram.h" | 19 #include "base/metrics/histogram.h" |
20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "chrome/browser/autocomplete/autocomplete_provider.h" | 23 #include "chrome/browser/autocomplete/autocomplete_provider.h" |
24 #include "chrome/browser/autocomplete/url_prefix.h" | 24 #include "chrome/browser/autocomplete/url_prefix.h" |
25 #include "chrome/browser/bookmarks/bookmark_utils.h" | |
26 #include "chrome/browser/history/history_database.h" | 25 #include "chrome/browser/history/history_database.h" |
27 #include "chrome/browser/history/history_db_task.h" | 26 #include "chrome/browser/history/history_db_task.h" |
28 #include "chrome/browser/history/history_service.h" | 27 #include "chrome/browser/history/history_service.h" |
29 #include "chrome/browser/history/in_memory_url_index.h" | 28 #include "chrome/browser/history/in_memory_url_index.h" |
30 #include "components/bookmarks/core/browser/bookmark_service.h" | 29 #include "components/bookmarks/core/browser/bookmark_service.h" |
| 30 #include "components/bookmarks/core/browser/bookmark_utils.h" |
31 #include "content/public/browser/notification_details.h" | 31 #include "content/public/browser/notification_details.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/notification_source.h" | 33 #include "content/public/browser/notification_source.h" |
34 #include "net/base/net_util.h" | 34 #include "net/base/net_util.h" |
35 | 35 |
36 #if defined(USE_SYSTEM_PROTOBUF) | 36 #if defined(USE_SYSTEM_PROTOBUF) |
37 #include <google/protobuf/repeated_field.h> | 37 #include <google/protobuf/repeated_field.h> |
38 #else | 38 #else |
39 #include "third_party/protobuf/src/google/protobuf/repeated_field.h" | 39 #include "third_party/protobuf/src/google/protobuf/repeated_field.h" |
40 #endif | 40 #endif |
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 // recently visited (within the last 12/24 hours) as highly important. Get | 1354 // recently visited (within the last 12/24 hours) as highly important. Get |
1355 // input from mpearson. | 1355 // input from mpearson. |
1356 if (r1.typed_count() != r2.typed_count()) | 1356 if (r1.typed_count() != r2.typed_count()) |
1357 return (r1.typed_count() > r2.typed_count()); | 1357 return (r1.typed_count() > r2.typed_count()); |
1358 if (r1.visit_count() != r2.visit_count()) | 1358 if (r1.visit_count() != r2.visit_count()) |
1359 return (r1.visit_count() > r2.visit_count()); | 1359 return (r1.visit_count() > r2.visit_count()); |
1360 return (r1.last_visit() > r2.last_visit()); | 1360 return (r1.last_visit() > r2.last_visit()); |
1361 } | 1361 } |
1362 | 1362 |
1363 } // namespace history | 1363 } // namespace history |
OLD | NEW |