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 <list> | 7 #include <list> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/browser/history/page_usage_data.h" | 28 #include "chrome/browser/history/page_usage_data.h" |
29 #include "chrome/browser/history/top_sites.h" | 29 #include "chrome/browser/history/top_sites.h" |
30 #include "chrome/browser/history/visit_filter.h" | 30 #include "chrome/browser/history/visit_filter.h" |
31 #include "chrome/common/chrome_constants.h" | 31 #include "chrome/common/chrome_constants.h" |
32 #include "chrome/common/chrome_notification_types.h" | 32 #include "chrome/common/chrome_notification_types.h" |
33 #include "chrome/common/url_constants.h" | 33 #include "chrome/common/url_constants.h" |
34 #include "content/public/browser/download_persistent_store_info.h" | 34 #include "content/public/browser/download_persistent_store_info.h" |
35 #include "googleurl/src/gurl.h" | 35 #include "googleurl/src/gurl.h" |
36 #include "grit/chromium_strings.h" | 36 #include "grit/chromium_strings.h" |
37 #include "grit/generated_resources.h" | 37 #include "grit/generated_resources.h" |
38 #include "net/base/registry_controlled_domain.h" | 38 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
39 | 39 |
40 #if defined(OS_ANDROID) | 40 #if defined(OS_ANDROID) |
41 #include "chrome/browser/history/android/android_provider_backend.h" | 41 #include "chrome/browser/history/android/android_provider_backend.h" |
42 #endif | 42 #endif |
43 | 43 |
44 using base::Time; | 44 using base::Time; |
45 using base::TimeDelta; | 45 using base::TimeDelta; |
46 using base::TimeTicks; | 46 using base::TimeTicks; |
47 | 47 |
48 /* The HistoryBackend consists of a number of components: | 48 /* The HistoryBackend consists of a number of components: |
(...skipping 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2484 info.url_id = visit.url_id; | 2484 info.url_id = visit.url_id; |
2485 info.time = visit.visit_time; | 2485 info.time = visit.visit_time; |
2486 info.transition = visit.transition; | 2486 info.transition = visit.transition; |
2487 // If we don't have a delegate yet during setup or shutdown, we will drop | 2487 // If we don't have a delegate yet during setup or shutdown, we will drop |
2488 // these notifications. | 2488 // these notifications. |
2489 if (delegate_.get()) | 2489 if (delegate_.get()) |
2490 delegate_->NotifyVisitDBObserversOnAddVisit(info); | 2490 delegate_->NotifyVisitDBObserversOnAddVisit(info); |
2491 } | 2491 } |
2492 | 2492 |
2493 } // namespace history | 2493 } // namespace history |
OLD | NEW |