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 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser
vice.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/incident_reporting_ser
vice.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "chrome/browser/safe_browsing/incident_reporting/extension_data_collect
ion.h" | 28 #include "chrome/browser/safe_browsing/incident_reporting/extension_data_collect
ion.h" |
29 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 29 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
30 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 30 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
31 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er_impl.h" | 31 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er_impl.h" |
32 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_
delegate.h" | 32 #include "chrome/browser/safe_browsing/incident_reporting/preference_validation_
delegate.h" |
33 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h" | 33 #include "chrome/browser/safe_browsing/incident_reporting/state_store.h" |
34 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 34 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
35 #include "chrome/common/chrome_features.h" | 35 #include "chrome/common/chrome_features.h" |
36 #include "chrome/common/pref_names.h" | 36 #include "chrome/common/pref_names.h" |
37 #include "components/prefs/pref_service.h" | 37 #include "components/prefs/pref_service.h" |
| 38 #include "components/safe_browsing/common/safe_browsing_prefs.h" |
38 #include "components/safe_browsing/csd.pb.h" | 39 #include "components/safe_browsing/csd.pb.h" |
39 #include "components/safe_browsing_db/database_manager.h" | 40 #include "components/safe_browsing_db/database_manager.h" |
40 #include "components/safe_browsing_db/safe_browsing_prefs.h" | |
41 #include "content/public/browser/browser_thread.h" | 41 #include "content/public/browser/browser_thread.h" |
42 #include "content/public/browser/notification_service.h" | 42 #include "content/public/browser/notification_service.h" |
43 #include "net/url_request/url_request_context_getter.h" | 43 #include "net/url_request/url_request_context_getter.h" |
44 #include "services/preferences/public/interfaces/tracked_preference_validation_d
elegate.mojom.h" | 44 #include "services/preferences/public/interfaces/tracked_preference_validation_d
elegate.mojom.h" |
45 | 45 |
46 namespace safe_browsing { | 46 namespace safe_browsing { |
47 | 47 |
48 #if !defined(GOOGLE_CHROME_BUILD) | 48 #if !defined(GOOGLE_CHROME_BUILD) |
49 // Chromium-only flag to disable incident uploads. | 49 // Chromium-only flag to disable incident uploads. |
50 extern const base::Feature kIncidentReportingDisableUpload{ | 50 extern const base::Feature kIncidentReportingDisableUpload{ |
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1056 if (!profile->IsOffTheRecord()) | 1056 if (!profile->IsOffTheRecord()) |
1057 OnProfileDestroyed(profile); | 1057 OnProfileDestroyed(profile); |
1058 break; | 1058 break; |
1059 } | 1059 } |
1060 default: | 1060 default: |
1061 break; | 1061 break; |
1062 } | 1062 } |
1063 } | 1063 } |
1064 | 1064 |
1065 } // namespace safe_browsing | 1065 } // namespace safe_browsing |
OLD | NEW |