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_report_upload
er_impl.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/incident_report_upload
er_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "chrome/common/safe_browsing/csd.pb.h" | |
11 #include "components/data_use_measurement/core/data_use_user_data.h" | 10 #include "components/data_use_measurement/core/data_use_user_data.h" |
| 11 #include "components/safe_browsing/csd.pb.h" |
12 #include "google_apis/google_api_keys.h" | 12 #include "google_apis/google_api_keys.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "net/base/load_flags.h" | 14 #include "net/base/load_flags.h" |
15 #include "net/http/http_status_code.h" | 15 #include "net/http/http_status_code.h" |
16 #include "net/url_request/url_fetcher.h" | 16 #include "net/url_request/url_fetcher.h" |
17 | 17 |
18 namespace safe_browsing { | 18 namespace safe_browsing { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } else { | 96 } else { |
97 result = UPLOAD_SUCCESS; | 97 result = UPLOAD_SUCCESS; |
98 } | 98 } |
99 } | 99 } |
100 // Callbacks have a tendency to delete the uploader, so no touching anything | 100 // Callbacks have a tendency to delete the uploader, so no touching anything |
101 // after this. | 101 // after this. |
102 callback_.Run(result, std::move(response)); | 102 callback_.Run(result, std::move(response)); |
103 } | 103 } |
104 | 104 |
105 } // namespace safe_browsing | 105 } // namespace safe_browsing |
OLD | NEW |