Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/resource_request_detector.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698