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 "content/browser/loader/navigation_url_loader.h" | 9 #include "content/browser/loader/navigation_url_loader.h" |
10 #include "content/common/url_loader.mojom.h" | 10 #include "content/common/url_loader.mojom.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 int64_t total_size, | 53 int64_t total_size, |
54 OnUploadProgressCallback callback) override; | 54 OnUploadProgressCallback callback) override; |
55 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; | 55 void OnReceiveCachedMetadata(const std::vector<uint8_t>& data) override; |
56 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; | 56 void OnTransferSizeUpdated(int32_t transfer_size_diff) override; |
57 void OnStartLoadingResponseBody( | 57 void OnStartLoadingResponseBody( |
58 mojo::ScopedDataPipeConsumerHandle body) override; | 58 mojo::ScopedDataPipeConsumerHandle body) override; |
59 void OnComplete( | 59 void OnComplete( |
60 const ResourceRequestCompletionStatus& completion_status) override; | 60 const ResourceRequestCompletionStatus& completion_status) override; |
61 | 61 |
62 private: | 62 private: |
| 63 class URLLoaderRequestController; |
| 64 |
63 NavigationURLLoaderDelegate* delegate_; | 65 NavigationURLLoaderDelegate* delegate_; |
64 | 66 |
65 mojo::Binding<mojom::URLLoaderClient> binding_; | 67 mojo::Binding<mojom::URLLoaderClient> binding_; |
66 std::unique_ptr<NavigationRequestInfo> request_info_; | |
67 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; | 68 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; |
68 scoped_refptr<ResourceResponse> response_; | 69 scoped_refptr<ResourceResponse> response_; |
69 SSLStatus ssl_status_; | 70 SSLStatus ssl_status_; |
70 | 71 |
| 72 // Lives on the IO thread. |
| 73 std::unique_ptr<URLLoaderRequestController> request_controller_; |
| 74 |
71 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); | 75 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); |
72 }; | 76 }; |
73 | 77 |
74 } // namespace content | 78 } // namespace content |
75 | 79 |
76 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ | 80 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ |
OLD | NEW |