| 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 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ |
| 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ | 6 #define CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/browser/loader/navigation_url_loader.h" | 10 #include "content/browser/loader/navigation_url_loader.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // mojom::URLLoaderClient implementation: | 46 // mojom::URLLoaderClient implementation: |
| 47 void OnReceiveResponse(const ResourceResponseHead& head, | 47 void OnReceiveResponse(const ResourceResponseHead& head, |
| 48 const base::Optional<net::SSLInfo>& ssl_info, | 48 const base::Optional<net::SSLInfo>& ssl_info, |
| 49 mojom::DownloadedTempFilePtr downloaded_file) override; | 49 mojom::DownloadedTempFilePtr downloaded_file) override; |
| 50 void OnReceiveRedirect(const net::RedirectInfo& redirect_info, | 50 void OnReceiveRedirect(const net::RedirectInfo& redirect_info, |
| 51 const ResourceResponseHead& head) override; | 51 const ResourceResponseHead& head) override; |
| 52 void OnDataDownloaded(int64_t data_length, int64_t encoded_length) override; | 52 void OnDataDownloaded(int64_t data_length, int64_t encoded_length) override; |
| 53 void OnUploadProgress(int64_t current_position, | 53 void OnUploadProgress(int64_t current_position, |
| 54 int64_t total_size, | 54 int64_t total_size, |
| 55 const OnUploadProgressCallback& callback) override; | 55 OnUploadProgressCallback callback) override; |
| 56 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; | 56 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; |
| 57 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; | 57 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; |
| 58 void OnStartLoadingResponseBody( | 58 void OnStartLoadingResponseBody( |
| 59 mojo::ScopedDataPipeConsumerHandle body) override; | 59 mojo::ScopedDataPipeConsumerHandle body) override; |
| 60 void OnComplete( | 60 void OnComplete( |
| 61 const ResourceRequestCompletionStatus& completion_status) override; | 61 const ResourceRequestCompletionStatus& completion_status) override; |
| 62 | 62 |
| 63 // Initiates the request. | 63 // Initiates the request. |
| 64 void StartURLRequest(std::unique_ptr<ResourceRequest> request); | 64 void StartURLRequest(std::unique_ptr<ResourceRequest> request); |
| 65 | 65 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 76 SSLStatus ssl_status_; | 76 SSLStatus ssl_status_; |
| 77 | 77 |
| 78 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_; | 78 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_; |
| 79 | 79 |
| 80 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); | 80 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace content | 83 } // namespace content |
| 84 | 84 |
| 85 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ | 85 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ |
| OLD | NEW |