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

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

Issue 815983002: Topsites become keyedService based. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extra inclusion from testing_profile.h Created 5 years, 11 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
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>
11 #include <set> 11 #include <set>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/bind.h" 15 #include "base/bind.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/files/file_enumerator.h" 17 #include "base/files/file_enumerator.h"
18 #include "base/memory/scoped_ptr.h" 18 #include "base/memory/scoped_ptr.h"
19 #include "base/memory/scoped_vector.h" 19 #include "base/memory/scoped_vector.h"
20 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
21 #include "base/metrics/histogram.h" 21 #include "base/metrics/histogram.h"
22 #include "base/rand_util.h" 22 #include "base/rand_util.h"
23 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
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/history/history_notifications.h" 27 #include "chrome/browser/history/history_notifications.h"
28 #include "chrome/browser/history/in_memory_history_backend.h" 28 #include "chrome/browser/history/in_memory_history_backend.h"
29 #include "chrome/browser/history/in_memory_history_backend.h" 29 #include "chrome/browser/history/in_memory_history_backend.h"
30 #include "chrome/browser/history/top_sites.h"
31 #include "chrome/browser/history/typed_url_syncable_service.h" 30 #include "chrome/browser/history/typed_url_syncable_service.h"
32 #include "chrome/browser/history/typed_url_syncable_service.h" 31 #include "chrome/browser/history/typed_url_syncable_service.h"
33 #include "chrome/common/chrome_constants.h" 32 #include "chrome/common/chrome_constants.h"
34 #include "chrome/common/importer/imported_favicon_usage.h" 33 #include "chrome/common/importer/imported_favicon_usage.h"
35 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
36 #include "components/favicon_base/select_favicon_frames.h" 35 #include "components/favicon_base/select_favicon_frames.h"
37 #include "components/history/core/browser/download_constants.h" 36 #include "components/history/core/browser/download_constants.h"
38 #include "components/history/core/browser/download_row.h" 37 #include "components/history/core/browser/download_row.h"
39 #include "components/history/core/browser/history_backend_observer.h" 38 #include "components/history/core/browser/history_backend_observer.h"
40 #include "components/history/core/browser/history_client.h" 39 #include "components/history/core/browser/history_client.h"
(...skipping 2660 matching lines...) Expand 10 before | Expand all | Expand 10 after
2701 info.url_id = visit.url_id; 2700 info.url_id = visit.url_id;
2702 info.time = visit.visit_time; 2701 info.time = visit.visit_time;
2703 info.transition = visit.transition; 2702 info.transition = visit.transition;
2704 // If we don't have a delegate yet during setup or shutdown, we will drop 2703 // If we don't have a delegate yet during setup or shutdown, we will drop
2705 // these notifications. 2704 // these notifications.
2706 if (delegate_) 2705 if (delegate_)
2707 delegate_->NotifyAddVisit(info); 2706 delegate_->NotifyAddVisit(info);
2708 } 2707 }
2709 2708
2710 } // namespace history 2709 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/expire_history_backend_unittest.cc ('k') | chrome/browser/history/history_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698