OLD | NEW |
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_detec
tor.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/resource_request_detec
tor.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 11 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
12 #include "chrome/browser/safe_browsing/incident_reporting/resource_request_incid
ent.h" | 12 #include "chrome/browser/safe_browsing/incident_reporting/resource_request_incid
ent.h" |
13 #include "chrome/common/safe_browsing/csd.pb.h" | 13 #include "components/safe_browsing/csd.pb.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/public/browser/render_frame_host.h" | 15 #include "content/public/browser/render_frame_host.h" |
16 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
17 #include "content/public/browser/resource_request_info.h" | 17 #include "content/public/browser/resource_request_info.h" |
18 #include "content/public/browser/site_instance.h" | 18 #include "content/public/browser/site_instance.h" |
19 #include "crypto/sha2.h" | 19 #include "crypto/sha2.h" |
20 #include "net/url_request/url_request.h" | 20 #include "net/url_request/url_request.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 if (host_url.is_valid()) | 180 if (host_url.is_valid()) |
181 incident_data->set_origin(host_url.GetOrigin().spec()); | 181 incident_data->set_origin(host_url.GetOrigin().spec()); |
182 | 182 |
183 incident_receiver_->AddIncidentForProfile( | 183 incident_receiver_->AddIncidentForProfile( |
184 profile, | 184 profile, |
185 base::MakeUnique<ResourceRequestIncident>(std::move(incident_data))); | 185 base::MakeUnique<ResourceRequestIncident>(std::move(incident_data))); |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 } // namespace safe_browsing | 189 } // namespace safe_browsing |
OLD | NEW |