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

Side by Side Diff: components/safe_browsing_db/hit_report.h

Issue 2505153002: Add support for scout to 'ext' param when creating SafeBrowsing ping URLs. (Closed)
Patch Set: Go back to IsExtendedReportingEnabled where level doesn't matter Created 4 years, 1 month 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
« no previous file with comments | « components/safe_browsing_db/BUILD.gn ('k') | components/safe_browsing_db/safe_browsing_prefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Datastructures that hold details of a Safe Browsing hit for reporting. 5 // Datastructures that hold details of a Safe Browsing hit for reporting.
6 6
7 #ifndef COMPONENTS_SAFE_BROWSING_DB_HIT_REPORT_H_ 7 #ifndef COMPONENTS_SAFE_BROWSING_DB_HIT_REPORT_H_
8 #define COMPONENTS_SAFE_BROWSING_DB_HIT_REPORT_H_ 8 #define COMPONENTS_SAFE_BROWSING_DB_HIT_REPORT_H_
9 9
10 #include "components/safe_browsing_db/safe_browsing_prefs.h"
10 #include "components/safe_browsing_db/util.h" 11 #include "components/safe_browsing_db/util.h"
11 #include "url/gurl.h" 12 #include "url/gurl.h"
12 13
13 namespace safe_browsing { 14 namespace safe_browsing {
14 15
15 // What service classified this threat as unsafe. 16 // What service classified this threat as unsafe.
16 enum class ThreatSource { 17 enum class ThreatSource {
17 UNKNOWN, 18 UNKNOWN,
18 DATA_SAVER, // From the Data Reduction service. 19 DATA_SAVER, // From the Data Reduction service.
19 LOCAL_PVER3, // From LocalSafeBrowsingDatabaseManager, protocol v3 20 LOCAL_PVER3, // From LocalSafeBrowsingDatabaseManager, protocol v3
(...skipping 14 matching lines...) Expand all
34 GURL page_url; 35 GURL page_url;
35 GURL referrer_url; 36 GURL referrer_url;
36 37
37 bool is_subresource; 38 bool is_subresource;
38 SBThreatType threat_type; 39 SBThreatType threat_type;
39 ThreatSource threat_source; 40 ThreatSource threat_source;
40 41
41 // Opaque string used for tracking Pver4-based experiments 42 // Opaque string used for tracking Pver4-based experiments
42 std::string population_id; 43 std::string population_id;
43 44
44 bool is_extended_reporting; 45 ExtendedReportingLevel extended_reporting_level;
45 bool is_metrics_reporting_active; 46 bool is_metrics_reporting_active;
46 47
47 std::string post_data; 48 std::string post_data;
48 }; 49 };
49 50
50 } // namespace safe_browsing 51 } // namespace safe_browsing
51 52
52 #endif // COMPONENTS_SAFE_BROWSING_DB_HIT_REPORT_H_ 53 #endif // COMPONENTS_SAFE_BROWSING_DB_HIT_REPORT_H_
OLDNEW
« no previous file with comments | « components/safe_browsing_db/BUILD.gn ('k') | components/safe_browsing_db/safe_browsing_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698