| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "net/reporting/reporting_uploader.h" | 5 #include "net/reporting/reporting_uploader.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> |
| 9 #include <vector> | 10 #include <vector> |
| 10 | 11 |
| 11 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
| 12 #include "base/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
| 13 #include "base/metrics/histogram_macros.h" | 14 #include "base/metrics/histogram_macros.h" |
| 14 #include "net/base/elements_upload_data_stream.h" | 15 #include "net/base/elements_upload_data_stream.h" |
| 15 #include "net/base/load_flags.h" | 16 #include "net/base/load_flags.h" |
| 16 #include "net/base/upload_bytes_element_reader.h" | 17 #include "net/base/upload_bytes_element_reader.h" |
| 17 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
| 18 #include "net/traffic_annotation/network_traffic_annotation.h" | 19 #include "net/traffic_annotation/network_traffic_annotation.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 167 |
| 167 ReportingUploader::~ReportingUploader() {} | 168 ReportingUploader::~ReportingUploader() {} |
| 168 | 169 |
| 169 // static | 170 // static |
| 170 std::unique_ptr<ReportingUploader> ReportingUploader::Create( | 171 std::unique_ptr<ReportingUploader> ReportingUploader::Create( |
| 171 const URLRequestContext* context) { | 172 const URLRequestContext* context) { |
| 172 return base::MakeUnique<ReportingUploaderImpl>(context); | 173 return base::MakeUnique<ReportingUploaderImpl>(context); |
| 173 } | 174 } |
| 174 | 175 |
| 175 } // namespace net | 176 } // namespace net |
| OLD | NEW |