| 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 "components/domain_reliability/uploader.h" | 5 #include "components/domain_reliability/uploader.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/scoped_vector.h" | |
| 10 #include "base/metrics/sparse_histogram.h" | 9 #include "base/metrics/sparse_histogram.h" |
| 11 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 12 #include "base/supports_user_data.h" | 11 #include "base/supports_user_data.h" |
| 13 #include "components/domain_reliability/util.h" | 12 #include "components/domain_reliability/util.h" |
| 14 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
| 15 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 16 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
| 17 #include "net/http/http_util.h" | 16 #include "net/http/http_util.h" |
| 18 #include "net/url_request/url_fetcher.h" | 17 #include "net/url_request/url_fetcher.h" |
| 19 #include "net/url_request/url_fetcher_delegate.h" | 18 #include "net/url_request/url_fetcher_delegate.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 new DomainReliabilityUploaderImpl(time, url_request_context_getter)); | 161 new DomainReliabilityUploaderImpl(time, url_request_context_getter)); |
| 163 } | 162 } |
| 164 | 163 |
| 165 // static | 164 // static |
| 166 bool DomainReliabilityUploader::URLRequestIsUpload( | 165 bool DomainReliabilityUploader::URLRequestIsUpload( |
| 167 const net::URLRequest& request) { | 166 const net::URLRequest& request) { |
| 168 return request.GetUserData(UploadUserData::kUserDataKey) != nullptr; | 167 return request.GetUserData(UploadUserData::kUserDataKey) != nullptr; |
| 169 } | 168 } |
| 170 | 169 |
| 171 } // namespace domain_reliability | 170 } // namespace domain_reliability |
| OLD | NEW |