| 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 MalwareDetailsRedirectsCollector class. | 5 // Implementation of the MalwareDetailsRedirectsCollector class. |
| 6 | 6 |
| 7 #include "chrome/browser/safe_browsing/malware_details_history.h" | 7 #include "chrome/browser/safe_browsing/malware_details_history.h" |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "chrome/browser/chrome_notification_types.h" |
| 11 #include "chrome/browser/history/history_service_factory.h" | 12 #include "chrome/browser/history/history_service_factory.h" |
| 12 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/safe_browsing/malware_details.h" | 14 #include "chrome/browser/safe_browsing/malware_details.h" |
| 14 #include "chrome/common/chrome_notification_types.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 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
| 19 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
| 20 | 20 |
| 21 using content::BrowserThread; | 21 using content::BrowserThread; |
| 22 | 22 |
| 23 MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector( | 23 MalwareDetailsRedirectsCollector::MalwareDetailsRedirectsCollector( |
| 24 Profile* profile) | 24 Profile* profile) |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 | 127 |
| 128 GetRedirects(*urls_it_); | 128 GetRedirects(*urls_it_); |
| 129 } | 129 } |
| 130 | 130 |
| 131 void MalwareDetailsRedirectsCollector::AllDone() { | 131 void MalwareDetailsRedirectsCollector::AllDone() { |
| 132 DVLOG(1) << "AllDone"; | 132 DVLOG(1) << "AllDone"; |
| 133 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, callback_); | 133 BrowserThread::PostTask(BrowserThread::IO, FROM_HERE, callback_); |
| 134 callback_.Reset(); | 134 callback_.Reset(); |
| 135 } | 135 } |
| OLD | NEW |