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

Side by Side Diff: content/browser/service_worker/service_worker_controllee_request_handler.h

Issue 2919313004: Get rid of URLLoaderFactory in browser-side case (Closed)
Patch Set: . Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER _H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 net::URLRequest* request, 60 net::URLRequest* request,
61 net::NetworkDelegate* network_delegate, 61 net::NetworkDelegate* network_delegate,
62 ResourceContext* resource_context) override; 62 ResourceContext* resource_context) override;
63 63
64 // Used only for PlzNavigate and --enable-network-service cases. 64 // Used only for PlzNavigate and --enable-network-service cases.
65 // This will replace MaybeCreateJob() once NetworkService is enabled. 65 // This will replace MaybeCreateJob() once NetworkService is enabled.
66 // This could get called multiple times during the lifetime in redirect 66 // This could get called multiple times during the lifetime in redirect
67 // cases. (In fallback-to-network cases we basically forward the request 67 // cases. (In fallback-to-network cases we basically forward the request
68 // to the request to the next request handler) 68 // to the request to the next request handler)
69 // URLLoaderRequestHandler overrides: 69 // URLLoaderRequestHandler overrides:
70 void MaybeCreateLoaderFactory( 70 void MaybeCreateLoader(const ResourceRequest& request,
71 const ResourceRequest& request, 71 ResourceContext* resource_context,
72 ResourceContext* resource_context, 72 URLLoaderCallback callback) override;
73 base::OnceCallback<void(mojom::URLLoaderFactory*)> callback) override;
74 73
75 private: 74 private:
76 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest, 75 FRIEND_TEST_ALL_PREFIXES(ServiceWorkerControlleeRequestHandlerTest,
77 ActivateWaitingVersion); 76 ActivateWaitingVersion);
78 typedef ServiceWorkerControlleeRequestHandler self; 77 typedef ServiceWorkerControlleeRequestHandler self;
79 78
80 // For main resource case. 79 // For main resource case.
81 void PrepareForMainResource(const GURL& url, 80 void PrepareForMainResource(const GURL& url,
82 const GURL& first_party_for_cookies); 81 const GURL& first_party_for_cookies);
83 void DidLookupRegistrationForMainResource( 82 void DidLookupRegistrationForMainResource(
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool use_network_; 135 bool use_network_;
137 136
138 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; 137 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_;
139 138
140 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); 139 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler);
141 }; 140 };
142 141
143 } // namespace content 142 } // namespace content
144 143
145 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_ 144 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND LER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698