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

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

Issue 2743483002: Revert of Move chrome/common/safe_browsing/csd.proto to components/safe_browsing (Closed)
Patch Set: 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/blacklist_load_inciden t.h" 5 #include "chrome/browser/safe_browsing/incident_reporting/blacklist_load_inciden t.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 "components/safe_browsing/csd.pb.h" 9 #include "chrome/common/safe_browsing/csd.pb.h"
10 10
11 namespace safe_browsing { 11 namespace safe_browsing {
12 12
13 BlacklistLoadIncident::BlacklistLoadIncident( 13 BlacklistLoadIncident::BlacklistLoadIncident(
14 std::unique_ptr<ClientIncidentReport_IncidentData_BlacklistLoadIncident> 14 std::unique_ptr<ClientIncidentReport_IncidentData_BlacklistLoadIncident>
15 blacklist_load_incident) { 15 blacklist_load_incident) {
16 DCHECK(blacklist_load_incident); 16 DCHECK(blacklist_load_incident);
17 DCHECK(blacklist_load_incident->has_path()); 17 DCHECK(blacklist_load_incident->has_path());
18 payload()->set_allocated_blacklist_load( 18 payload()->set_allocated_blacklist_load(
19 blacklist_load_incident.release()); 19 blacklist_load_incident.release());
(...skipping 10 matching lines...) Expand all
30 std::string BlacklistLoadIncident::GetKey() const { 30 std::string BlacklistLoadIncident::GetKey() const {
31 return payload()->blacklist_load().path(); 31 return payload()->blacklist_load().path();
32 } 32 }
33 33
34 // Returns a digest computed over the payload. 34 // Returns a digest computed over the payload.
35 uint32_t BlacklistLoadIncident::ComputeDigest() const { 35 uint32_t BlacklistLoadIncident::ComputeDigest() const {
36 return HashMessage(payload()->blacklist_load()); 36 return HashMessage(payload()->blacklist_load());
37 } 37 }
38 38
39 } // namespace safe_browsing 39 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698