Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: chrome/browser/history/history_backend.cc

Issue 439713004: Partially move history_types.{cc,h} to //components/history (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 #include "base/strings/utf_string_conversions.h" 24 #include "base/strings/utf_string_conversions.h"
25 #include "base/time/time.h" 25 #include "base/time/time.h"
26 #include "chrome/browser/chrome_notification_types.h" 26 #include "chrome/browser/chrome_notification_types.h"
27 #include "chrome/browser/favicon/favicon_changed_details.h" 27 #include "chrome/browser/favicon/favicon_changed_details.h"
28 #include "chrome/browser/history/download_row.h" 28 #include "chrome/browser/history/download_row.h"
29 #include "chrome/browser/history/history_db_task.h" 29 #include "chrome/browser/history/history_db_task.h"
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/in_memory_history_backend.h" 33 #include "chrome/browser/history/in_memory_history_backend.h"
34 #include "chrome/browser/history/page_usage_data.h"
35 #include "chrome/browser/history/top_sites.h" 34 #include "chrome/browser/history/top_sites.h"
36 #include "chrome/browser/history/typed_url_syncable_service.h" 35 #include "chrome/browser/history/typed_url_syncable_service.h"
37 #include "chrome/browser/history/typed_url_syncable_service.h" 36 #include "chrome/browser/history/typed_url_syncable_service.h"
38 #include "chrome/browser/history/visit_filter.h" 37 #include "chrome/browser/history/visit_filter.h"
39 #include "chrome/common/chrome_constants.h" 38 #include "chrome/common/chrome_constants.h"
40 #include "chrome/common/importer/imported_favicon_usage.h" 39 #include "chrome/common/importer/imported_favicon_usage.h"
41 #include "chrome/common/url_constants.h" 40 #include "chrome/common/url_constants.h"
42 #include "components/favicon_base/select_favicon_frames.h" 41 #include "components/favicon_base/select_favicon_frames.h"
43 #include "components/history/core/browser/history_client.h" 42 #include "components/history/core/browser/history_client.h"
44 #include "components/history/core/browser/keyword_search_term.h" 43 #include "components/history/core/browser/keyword_search_term.h"
44 #include "components/history/core/browser/page_usage_data.h"
45 #include "grit/chromium_strings.h" 45 #include "grit/chromium_strings.h"
46 #include "grit/generated_resources.h" 46 #include "grit/generated_resources.h"
47 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 47 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
48 #include "sql/error_delegate_util.h" 48 #include "sql/error_delegate_util.h"
49 #include "url/gurl.h" 49 #include "url/gurl.h"
50 50
51 #if defined(OS_ANDROID) 51 #if defined(OS_ANDROID)
52 #include "chrome/browser/history/android/android_provider_backend.h" 52 #include "chrome/browser/history/android/android_provider_backend.h"
53 #endif 53 #endif
54 54
(...skipping 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after
2756 int rank = kPageVisitStatsMaxTopSites; 2756 int rank = kPageVisitStatsMaxTopSites;
2757 std::map<GURL, int>::const_iterator it = most_visited_urls_map_.find(url); 2757 std::map<GURL, int>::const_iterator it = most_visited_urls_map_.find(url);
2758 if (it != most_visited_urls_map_.end()) 2758 if (it != most_visited_urls_map_.end())
2759 rank = (*it).second; 2759 rank = (*it).second;
2760 UMA_HISTOGRAM_ENUMERATION("History.TopSitesVisitsByRank", 2760 UMA_HISTOGRAM_ENUMERATION("History.TopSitesVisitsByRank",
2761 rank, kPageVisitStatsMaxTopSites + 1); 2761 rank, kPageVisitStatsMaxTopSites + 1);
2762 } 2762 }
2763 #endif 2763 #endif
2764 2764
2765 } // namespace history 2765 } // namespace history
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/history_types.h » ('j') | components/history/core/browser/history_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698