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 "chrome/browser/safe_browsing/threat_details_history.h" |
8 | 8 |
| 9 #include <stddef.h> |
| 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 13 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/history/history_service_factory.h" | 14 #include "chrome/browser/history/history_service_factory.h" |
13 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/safe_browsing/threat_details.h" | 16 #include "chrome/browser/safe_browsing/threat_details.h" |
15 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
16 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
17 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
18 | 20 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 GetRedirects(*urls_it_); | 123 GetRedirects(*urls_it_); |
122 } | 124 } |
123 | 125 |
124 void ThreatDetailsRedirectsCollector::AllDone() { | 126 void ThreatDetailsRedirectsCollector::AllDone() { |
125 DVLOG(1) << "AllDone"; | 127 DVLOG(1) << "AllDone"; |
126 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, callback_); | 128 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, callback_); |
127 callback_.Reset(); | 129 callback_.Reset(); |
128 } | 130 } |
129 | 131 |
130 } // namespace safe_browsing | 132 } // namespace safe_browsing |
OLD | NEW |