OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/history/content/browser/content_visit_delegate.h" | 5 #include "components/history/content/browser/content_visit_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "components/history/core/browser/history_backend.h" | 10 #include "components/history/core/browser/history_backend.h" |
10 #include "components/history/core/browser/history_database.h" | 11 #include "components/history/core/browser/history_database.h" |
11 #include "components/history/core/browser/history_db_task.h" | 12 #include "components/history/core/browser/history_db_task.h" |
12 #include "components/history/core/browser/history_service.h" | 13 #include "components/history/core/browser/history_service.h" |
13 #include "components/visitedlink/browser/visitedlink_master.h" | 14 #include "components/visitedlink/browser/visitedlink_master.h" |
14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
15 | 16 |
16 namespace history { | 17 namespace history { |
17 namespace { | 18 namespace { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 } | 115 } |
115 | 116 |
116 void ContentVisitDelegate::RebuildTable( | 117 void ContentVisitDelegate::RebuildTable( |
117 const scoped_refptr<URLEnumerator>& enumerator) { | 118 const scoped_refptr<URLEnumerator>& enumerator) { |
118 DCHECK(history_service_); | 119 DCHECK(history_service_); |
119 scoped_ptr<HistoryDBTask> task(new IterateUrlsDBTask(enumerator)); | 120 scoped_ptr<HistoryDBTask> task(new IterateUrlsDBTask(enumerator)); |
120 history_service_->ScheduleDBTask(task.Pass(), &task_tracker_); | 121 history_service_->ScheduleDBTask(task.Pass(), &task_tracker_); |
121 } | 122 } |
122 | 123 |
123 } // namespace history | 124 } // namespace history |
OLD | NEW |