OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/payments/content/android/payment_manifest_downloader.h" | 5 #include "components/payments/content/payment_manifest_downloader.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <unordered_map> | 8 #include <unordered_map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/strings/string_split.h" | 13 #include "base/strings/string_split.h" |
14 #include "components/data_use_measurement/core/data_use_user_data.h" | 14 #include "components/data_use_measurement/core/data_use_user_data.h" |
15 #include "components/link_header_util/link_header_util.h" | 15 #include "components/link_header_util/link_header_util.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 if (source->GetResponseAsString(&content) && !content.empty()) { | 111 if (source->GetResponseAsString(&content) && !content.empty()) { |
112 delegate_->OnManifestDownloadSuccess(content); | 112 delegate_->OnManifestDownloadSuccess(content); |
113 return; | 113 return; |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 delegate_->OnManifestDownloadFailure(); | 117 delegate_->OnManifestDownloadFailure(); |
118 } | 118 } |
119 | 119 |
120 } // namespace payments | 120 } // namespace payments |
OLD | NEW |