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 // Implementation of the ThreatDetailsRedirectsCollector class. | 5 // Implementation of the ThreatDetailsRedirectsCollector class. |
6 | 6 |
7 #include "chrome/browser/safe_browsing/threat_details_history.h" | 7 #include "components/safe_browsing/browser/threat_details_history.h" |
8 | 8 |
9 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "chrome/browser/safe_browsing/threat_details.h" | |
14 #include "components/history/core/browser/history_service.h" | 13 #include "components/history/core/browser/history_service.h" |
| 14 #include "components/safe_browsing/browser/threat_details.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/notification_details.h" | 16 #include "content/public/browser/notification_details.h" |
17 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 namespace safe_browsing { | 21 namespace safe_browsing { |
22 | 22 |
23 ThreatDetailsRedirectsCollector::ThreatDetailsRedirectsCollector( | 23 ThreatDetailsRedirectsCollector::ThreatDetailsRedirectsCollector( |
24 const base::WeakPtr<history::HistoryService>& history_service) | 24 const base::WeakPtr<history::HistoryService>& history_service) |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 callback_.Reset(); | 114 callback_.Reset(); |
115 } | 115 } |
116 | 116 |
117 void ThreatDetailsRedirectsCollector::HistoryServiceBeingDeleted( | 117 void ThreatDetailsRedirectsCollector::HistoryServiceBeingDeleted( |
118 history::HistoryService* history_service) { | 118 history::HistoryService* history_service) { |
119 history_service_observer_.Remove(history_service); | 119 history_service_observer_.Remove(history_service); |
120 history_service_.reset(); | 120 history_service_.reset(); |
121 } | 121 } |
122 | 122 |
123 } // namespace safe_browsing | 123 } // namespace safe_browsing |
OLD | NEW |