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

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: For trybot 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 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 info.url_id = visit.url_id; 2689 info.url_id = visit.url_id;
2691 info.time = visit.visit_time; 2690 info.time = visit.visit_time;
2692 info.transition = visit.transition; 2691 info.transition = visit.transition;
2693 // If we don't have a delegate yet during setup or shutdown, we will drop 2692 // If we don't have a delegate yet during setup or shutdown, we will drop
2694 // these notifications. 2693 // these notifications.
2695 if (delegate_) 2694 if (delegate_)
2696 delegate_->NotifyAddVisit(info); 2695 delegate_->NotifyAddVisit(info);
2697 } 2696 }
2698 2697
2699 } // namespace history 2698 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698