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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/resource_request_incident.cc

Issue 2733343002: Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: rebase again Created 3 years, 9 months 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 #include "chrome/browser/safe_browsing/incident_reporting/resource_request_incid ent.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/resource_request_incid ent.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util. h" 8 #include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util. h"
9 #include "chrome/common/safe_browsing/csd.pb.h" 9 #include "components/safe_browsing/csd.pb.h"
10 10
11 namespace safe_browsing { 11 namespace safe_browsing {
12 12
13 ResourceRequestIncident::ResourceRequestIncident( 13 ResourceRequestIncident::ResourceRequestIncident(
14 std::unique_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident> 14 std::unique_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident>
15 script_request_incident) { 15 script_request_incident) {
16 DCHECK(script_request_incident); 16 DCHECK(script_request_incident);
17 DCHECK(script_request_incident->has_digest()); 17 DCHECK(script_request_incident->has_digest());
18 payload()->set_allocated_resource_request(script_request_incident.release()); 18 payload()->set_allocated_resource_request(script_request_incident.release());
19 } 19 }
(...skipping 11 matching lines...) Expand all
31 return "resource_request_incident"; 31 return "resource_request_incident";
32 } 32 }
33 33
34 uint32_t ResourceRequestIncident::ComputeDigest() const { 34 uint32_t ResourceRequestIncident::ComputeDigest() const {
35 // Return a constant in addition to a fixed key per resource request type 35 // Return a constant in addition to a fixed key per resource request type
36 // above to ensure that only one incident per user is reported. 36 // above to ensure that only one incident per user is reported.
37 return 42; 37 return 42;
38 } 38 }
39 39
40 } // namespace safe_browsing 40 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698