| 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 30 matching lines...) Expand all Loading... |
| 41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 41 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 42 #include "sql/error_delegate_util.h" | 42 #include "sql/error_delegate_util.h" |
| 43 | 43 |
| 44 #if defined(OS_ANDROID) | 44 #if defined(OS_ANDROID) |
| 45 #include "chrome/browser/history/android/android_provider_backend.h" | 45 #include "chrome/browser/history/android/android_provider_backend.h" |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 using base::Time; | 48 using base::Time; |
| 49 using base::TimeDelta; | 49 using base::TimeDelta; |
| 50 using base::TimeTicks; | 50 using base::TimeTicks; |
| 51 using components::VisitedLinkDelegate; |
| 51 | 52 |
| 52 /* The HistoryBackend consists of a number of components: | 53 /* The HistoryBackend consists of a number of components: |
| 53 | 54 |
| 54 HistoryDatabase (stores past 3 months of history) | 55 HistoryDatabase (stores past 3 months of history) |
| 55 URLDatabase (stores a list of URLs) | 56 URLDatabase (stores a list of URLs) |
| 56 DownloadDatabase (stores a list of downloads) | 57 DownloadDatabase (stores a list of downloads) |
| 57 VisitDatabase (stores a list of visits for the URLs) | 58 VisitDatabase (stores a list of visits for the URLs) |
| 58 VisitSegmentDatabase (stores groups of URLs for the most visited view). | 59 VisitSegmentDatabase (stores groups of URLs for the most visited view). |
| 59 | 60 |
| 60 ArchivedDatabase (stores history older than 3 months) | 61 ArchivedDatabase (stores history older than 3 months) |
| (...skipping 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2977 info.url_id = visit.url_id; | 2978 info.url_id = visit.url_id; |
| 2978 info.time = visit.visit_time; | 2979 info.time = visit.visit_time; |
| 2979 info.transition = visit.transition; | 2980 info.transition = visit.transition; |
| 2980 // If we don't have a delegate yet during setup or shutdown, we will drop | 2981 // If we don't have a delegate yet during setup or shutdown, we will drop |
| 2981 // these notifications. | 2982 // these notifications. |
| 2982 if (delegate_.get()) | 2983 if (delegate_.get()) |
| 2983 delegate_->NotifyVisitDBObserversOnAddVisit(info); | 2984 delegate_->NotifyVisitDBObserversOnAddVisit(info); |
| 2984 } | 2985 } |
| 2985 | 2986 |
| 2986 } // namespace history | 2987 } // namespace history |
| OLD | NEW |