Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1208)

Unified Diff: content/browser/loader/navigation_url_loader_network_service.h

Issue 2843043002: network service: Create URLLoader for service worker navigation case
Patch Set: network fallback in simple cases Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/navigation_url_loader_network_service.h
diff --git a/content/browser/loader/navigation_url_loader_network_service.h b/content/browser/loader/navigation_url_loader_network_service.h
index 1130619bc184ba2644ebd2b8c9d744ee75aaf5a9..81657645eb1dd0cb65a1ff5afb140663ec6a7254 100644
--- a/content/browser/loader/navigation_url_loader_network_service.h
+++ b/content/browser/loader/navigation_url_loader_network_service.h
@@ -66,21 +66,18 @@ class NavigationURLLoaderNetworkService : public NavigationURLLoader,
void OnComplete(
const ResourceRequestCompletionStatus& completion_status) override;
- // Initiates the request.
- void StartURLRequest(std::unique_ptr<ResourceRequest> request);
-
private:
- void ConnectURLLoaderFactory(
- std::unique_ptr<service_manager::Connector> connector);
-
- mojom::URLLoaderFactory& GetURLLoaderFactory();
+ void StartURLRequest(mojom::URLLoaderFactoryPtrInfo url_loader_factory_info,
+ std::unique_ptr<ResourceRequest> request);
NavigationURLLoaderDelegate* delegate_;
+ mojom::URLLoaderFactoryPtr url_loader_factory_;
mojo::Binding<mojom::URLLoaderClient> binding_;
mojom::URLLoaderAssociatedPtr url_loader_associated_ptr_;
scoped_refptr<ResourceResponse> response_;
SSLStatus ssl_status_;
+ std::unique_ptr<ResourceRequest> new_request_;
base::WeakPtrFactory<NavigationURLLoaderNetworkService> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698