| 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> |
| 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/file_util.h" | 17 #include "base/file_util.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.h" | 20 #include "base/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/string_util.h" | 23 #include "base/string_util.h" |
| 24 #include "base/time.h" | 24 #include "base/time.h" |
| 25 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
| 26 #include "chrome/browser/autocomplete/history_url_provider.h" | 26 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 27 #include "chrome/browser/bookmarks/bookmark_service.h" | 27 #include "chrome/browser/bookmarks/bookmark_service.h" |
| 28 #include "chrome/browser/favicon/imported_favicon_usage.h" |
| 28 #include "chrome/browser/history/download_row.h" | 29 #include "chrome/browser/history/download_row.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_notifications.h" | 31 #include "chrome/browser/history/history_notifications.h" |
| 31 #include "chrome/browser/history/history_publisher.h" | 32 #include "chrome/browser/history/history_publisher.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/page_usage_data.h" | 34 #include "chrome/browser/history/page_usage_data.h" |
| 34 #include "chrome/browser/history/select_favicon_frames.h" | 35 #include "chrome/browser/history/select_favicon_frames.h" |
| 35 #include "chrome/browser/history/top_sites.h" | 36 #include "chrome/browser/history/top_sites.h" |
| 36 #include "chrome/browser/history/typed_url_syncable_service.h" | 37 #include "chrome/browser/history/typed_url_syncable_service.h" |
| 37 #include "chrome/browser/history/visit_filter.h" | 38 #include "chrome/browser/history/visit_filter.h" |
| (...skipping 3051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3089 info.url_id = visit.url_id; | 3090 info.url_id = visit.url_id; |
| 3090 info.time = visit.visit_time; | 3091 info.time = visit.visit_time; |
| 3091 info.transition = visit.transition; | 3092 info.transition = visit.transition; |
| 3092 // If we don't have a delegate yet during setup or shutdown, we will drop | 3093 // If we don't have a delegate yet during setup or shutdown, we will drop |
| 3093 // these notifications. | 3094 // these notifications. |
| 3094 if (delegate_) | 3095 if (delegate_) |
| 3095 delegate_->NotifyVisitDBObserversOnAddVisit(info); | 3096 delegate_->NotifyVisitDBObserversOnAddVisit(info); |
| 3096 } | 3097 } |
| 3097 | 3098 |
| 3098 } // namespace history | 3099 } // namespace history |
| OLD | NEW |