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 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETECTO
R_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETECTO
R_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETECTO
R_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETECTO
R_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 13 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
14 #include "components/safe_browsing_db/database_manager.h" | 14 #include "components/safe_browsing_db/database_manager.h" |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 class URLRequest; | 17 class URLRequest; |
18 } | 18 } |
19 | 19 |
20 namespace safe_browsing { | 20 namespace safe_browsing { |
21 | 21 |
22 class SafeBrowsingService; | |
23 | |
24 class ClientIncidentReport_IncidentData_ResourceRequestIncident; | 22 class ClientIncidentReport_IncidentData_ResourceRequestIncident; |
25 | 23 |
26 struct ResourceRequestInfo { | 24 struct ResourceRequestInfo { |
27 GURL url; | 25 GURL url; |
28 content::ResourceType resource_type; | 26 content::ResourceType resource_type; |
29 int render_process_id; | 27 int render_process_id; |
30 int render_frame_id; | 28 int render_frame_id; |
31 }; | 29 }; |
32 | 30 |
33 // Observes network requests and reports suspicious activity. | 31 // Observes network requests and reports suspicious activity. |
(...skipping 26 matching lines...) Expand all Loading... |
60 bool allow_null_profile_for_testing_; | 58 bool allow_null_profile_for_testing_; |
61 | 59 |
62 base::WeakPtrFactory<ResourceRequestDetector> weak_ptr_factory_; | 60 base::WeakPtrFactory<ResourceRequestDetector> weak_ptr_factory_; |
63 | 61 |
64 DISALLOW_COPY_AND_ASSIGN(ResourceRequestDetector); | 62 DISALLOW_COPY_AND_ASSIGN(ResourceRequestDetector); |
65 }; | 63 }; |
66 | 64 |
67 } // namespace safe_browsing | 65 } // namespace safe_browsing |
68 | 66 |
69 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETE
CTOR_H_ | 67 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_DETE
CTOR_H_ |
OLD | NEW |