| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/download_feedback.h" | 5 #include "chrome/browser/safe_browsing/download_feedback.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
| 12 #include "base/task_runner.h" | 12 #include "base/task_runner.h" |
| 13 #include "components/safe_browsing/csd.pb.h" | 13 #include "chrome/common/safe_browsing/csd.pb.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 | 16 |
| 17 namespace safe_browsing { | 17 namespace safe_browsing { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // This enum is used by histograms. Do not change the ordering or remove items. | 21 // This enum is used by histograms. Do not change the ordering or remove items. |
| 22 enum UploadResultType { | 22 enum UploadResultType { |
| 23 UPLOAD_SUCCESS, | 23 UPLOAD_SUCCESS, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 new DownloadFeedbackImpl(request_context_getter, file_task_runner, | 211 new DownloadFeedbackImpl(request_context_getter, file_task_runner, |
| 212 file_path, ping_request, ping_response)); | 212 file_path, ping_request, ping_response)); |
| 213 } | 213 } |
| 214 return DownloadFeedback::factory_->CreateDownloadFeedback( | 214 return DownloadFeedback::factory_->CreateDownloadFeedback( |
| 215 request_context_getter, file_task_runner, file_path, ping_request, | 215 request_context_getter, file_task_runner, file_path, ping_request, |
| 216 ping_response); | 216 ping_response); |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace safe_browsing | 219 } // namespace safe_browsing |
| 220 | 220 |
| OLD | NEW |