OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_LAST_DOWNLOAD_FINDER_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_LAST_DOWNLOAD_FINDER_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_LAST_DOWNLOAD_FINDER_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_LAST_DOWNLOAD_FINDER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/scoped_observer.h" | 16 #include "base/scoped_observer.h" |
17 #include "chrome/browser/history/download_row.h" | |
18 #include "chrome/browser/safe_browsing/incident_reporting/download_metadata_mana
ger.h" | 17 #include "chrome/browser/safe_browsing/incident_reporting/download_metadata_mana
ger.h" |
| 18 #include "components/history/core/browser/download_row.h" |
19 #include "components/history/core/browser/history_service_observer.h" | 19 #include "components/history/core/browser/history_service_observer.h" |
20 #include "content/public/browser/notification_observer.h" | 20 #include "content/public/browser/notification_observer.h" |
21 #include "content/public/browser/notification_registrar.h" | 21 #include "content/public/browser/notification_registrar.h" |
22 | 22 |
23 class HistoryService; | 23 class HistoryService; |
24 class Profile; | 24 class Profile; |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 class NotificationDetails; | 27 class NotificationDetails; |
28 class NotificationSource; | 28 class NotificationSource; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 // A factory for asynchronous operations on profiles' HistoryService. | 146 // A factory for asynchronous operations on profiles' HistoryService. |
147 base::WeakPtrFactory<LastDownloadFinder> weak_ptr_factory_; | 147 base::WeakPtrFactory<LastDownloadFinder> weak_ptr_factory_; |
148 | 148 |
149 DISALLOW_COPY_AND_ASSIGN(LastDownloadFinder); | 149 DISALLOW_COPY_AND_ASSIGN(LastDownloadFinder); |
150 }; | 150 }; |
151 | 151 |
152 } // namespace safe_browsing | 152 } // namespace safe_browsing |
153 | 153 |
154 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_LAST_DOWNLOAD_FINDER_
H_ | 154 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_LAST_DOWNLOAD_FINDER_
H_ |
OLD | NEW |