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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void OnComplete( | 66 void OnComplete( |
67 const ResourceRequestCompletionStatus& completion_status) override; | 67 const ResourceRequestCompletionStatus& completion_status) override; |
68 | 68 |
69 // Initiates the request. | 69 // Initiates the request. |
70 void StartURLRequest(std::unique_ptr<ResourceRequest> request); | 70 void StartURLRequest(std::unique_ptr<ResourceRequest> request); |
71 | 71 |
72 private: | 72 private: |
73 void ConnectURLLoaderFactory( | 73 void ConnectURLLoaderFactory( |
74 std::unique_ptr<service_manager::Connector> connector); | 74 std::unique_ptr<service_manager::Connector> connector); |
75 | 75 |
76 mojom::URLLoaderFactory& GetURLLoaderFactory(); | 76 mojom::URLLoaderFactory* GetURLLoaderFactory(); |
77 | 77 |
78 NavigationURLLoaderDelegate* delegate_; | 78 NavigationURLLoaderDelegate* delegate_; |
79 | 79 |
80 mojo::Binding<mojom::URLLoaderClient> binding_; | 80 mojo::Binding<mojom::URLLoaderClient> binding_; |
| 81 std::unique_ptr<NavigationRequestInfo> request_info_; |
81 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; | 82 mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_; |
82 scoped_refptr<ResourceResponse> response_; | 83 scoped_refptr<ResourceResponse> response_; |
83 SSLStatus ssl_status_; | 84 SSLStatus ssl_status_; |
84 | 85 |
85 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_; | 86 base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); | 88 DISALLOW_COPY_AND_ASSIGN(NavigationURLLoaderNetworkService); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace content | 91 } // namespace content |
91 | 92 |
92 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ | 93 #endif // CONTENT_BROWSER_LOADER_NAVIGATION_URL_LOADER_NETWORK_SERVICE_H_ |
OLD | NEW |