| 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/history_backend.h" | 5 #include "chrome/browser/history/history_backend.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 #include <list> | 9 #include <list> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/history/history_db_task.h" | 30 #include "chrome/browser/history/history_db_task.h" |
| 31 #include "chrome/browser/history/history_notifications.h" | 31 #include "chrome/browser/history/history_notifications.h" |
| 32 #include "chrome/browser/history/in_memory_history_backend.h" | 32 #include "chrome/browser/history/in_memory_history_backend.h" |
| 33 #include "chrome/browser/history/page_usage_data.h" | 33 #include "chrome/browser/history/page_usage_data.h" |
| 34 #include "chrome/browser/history/top_sites.h" | 34 #include "chrome/browser/history/top_sites.h" |
| 35 #include "chrome/browser/history/typed_url_syncable_service.h" | 35 #include "chrome/browser/history/typed_url_syncable_service.h" |
| 36 #include "chrome/browser/history/visit_filter.h" | 36 #include "chrome/browser/history/visit_filter.h" |
| 37 #include "chrome/common/chrome_constants.h" | 37 #include "chrome/common/chrome_constants.h" |
| 38 #include "chrome/common/importer/imported_favicon_usage.h" | 38 #include "chrome/common/importer/imported_favicon_usage.h" |
| 39 #include "chrome/common/url_constants.h" | 39 #include "chrome/common/url_constants.h" |
| 40 #include "components/bookmarks/core/browser/bookmark_service.h" | 40 #include "components/bookmarks/browser/bookmark_service.h" |
| 41 #include "components/favicon_base/select_favicon_frames.h" | 41 #include "components/favicon_base/select_favicon_frames.h" |
| 42 #include "grit/chromium_strings.h" | 42 #include "grit/chromium_strings.h" |
| 43 #include "grit/generated_resources.h" | 43 #include "grit/generated_resources.h" |
| 44 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 44 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 45 #include "sql/error_delegate_util.h" | 45 #include "sql/error_delegate_util.h" |
| 46 #include "url/gurl.h" | 46 #include "url/gurl.h" |
| 47 | 47 |
| 48 #if defined(OS_ANDROID) | 48 #if defined(OS_ANDROID) |
| 49 #include "chrome/browser/history/android/android_provider_backend.h" | 49 #include "chrome/browser/history/android/android_provider_backend.h" |
| 50 #endif | 50 #endif |
| (...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2948 int rank = kPageVisitStatsMaxTopSites; | 2948 int rank = kPageVisitStatsMaxTopSites; |
| 2949 std::map<GURL, int>::const_iterator it = most_visited_urls_map_.find(url); | 2949 std::map<GURL, int>::const_iterator it = most_visited_urls_map_.find(url); |
| 2950 if (it != most_visited_urls_map_.end()) | 2950 if (it != most_visited_urls_map_.end()) |
| 2951 rank = (*it).second; | 2951 rank = (*it).second; |
| 2952 UMA_HISTOGRAM_ENUMERATION("History.TopSitesVisitsByRank", | 2952 UMA_HISTOGRAM_ENUMERATION("History.TopSitesVisitsByRank", |
| 2953 rank, kPageVisitStatsMaxTopSites + 1); | 2953 rank, kPageVisitStatsMaxTopSites + 1); |
| 2954 } | 2954 } |
| 2955 #endif | 2955 #endif |
| 2956 | 2956 |
| 2957 } // namespace history | 2957 } // namespace history |
| OLD | NEW |