| 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 "content/browser/loader/navigation_url_loader_network_service.h" | 5 #include "content/browser/loader/navigation_url_loader_network_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 10 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 delegate_->OnRequestRedirected(redirect_info, response); | 134 delegate_->OnRequestRedirected(redirect_info, response); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void NavigationURLLoaderNetworkService::OnDataDownloaded( | 137 void NavigationURLLoaderNetworkService::OnDataDownloaded( |
| 138 int64_t data_length, | 138 int64_t data_length, |
| 139 int64_t encoded_length) {} | 139 int64_t encoded_length) {} |
| 140 | 140 |
| 141 void NavigationURLLoaderNetworkService::OnUploadProgress( | 141 void NavigationURLLoaderNetworkService::OnUploadProgress( |
| 142 int64_t current_position, | 142 int64_t current_position, |
| 143 int64_t total_size, | 143 int64_t total_size, |
| 144 const OnUploadProgressCallback& callback) {} | 144 OnUploadProgressCallback callback) {} |
| 145 | 145 |
| 146 void NavigationURLLoaderNetworkService::OnReceiveCachedMetadata( | 146 void NavigationURLLoaderNetworkService::OnReceiveCachedMetadata( |
| 147 const std::vector<uint8_t>& data) {} | 147 const std::vector<uint8_t>& data) {} |
| 148 | 148 |
| 149 void NavigationURLLoaderNetworkService::OnTransferSizeUpdated( | 149 void NavigationURLLoaderNetworkService::OnTransferSizeUpdated( |
| 150 int32_t transfer_size_diff) {} | 150 int32_t transfer_size_diff) {} |
| 151 | 151 |
| 152 void NavigationURLLoaderNetworkService::OnStartLoadingResponseBody( | 152 void NavigationURLLoaderNetworkService::OnStartLoadingResponseBody( |
| 153 mojo::ScopedDataPipeConsumerHandle body) { | 153 mojo::ScopedDataPipeConsumerHandle body) { |
| 154 DCHECK(response_); | 154 DCHECK(response_); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 176 mojom::URLLoaderClientPtr url_loader_client_ptr_to_pass; | 176 mojom::URLLoaderClientPtr url_loader_client_ptr_to_pass; |
| 177 binding_.Bind(&url_loader_client_ptr_to_pass); | 177 binding_.Bind(&url_loader_client_ptr_to_pass); |
| 178 | 178 |
| 179 url_loader_factory_->CreateLoaderAndStart( | 179 url_loader_factory_->CreateLoaderAndStart( |
| 180 mojo::MakeRequest(&url_loader_associated_ptr_), 0 /* routing_id? */, | 180 mojo::MakeRequest(&url_loader_associated_ptr_), 0 /* routing_id? */, |
| 181 0 /* request_id? */, mojom::kURLLoadOptionSendSSLInfo, *request, | 181 0 /* request_id? */, mojom::kURLLoadOptionSendSSLInfo, *request, |
| 182 std::move(url_loader_client_ptr_to_pass)); | 182 std::move(url_loader_client_ptr_to_pass)); |
| 183 } | 183 } |
| 184 | 184 |
| 185 } // namespace content | 185 } // namespace content |
| OLD | NEW |