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

Side by Side Diff: content/browser/service_worker/service_worker_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_REQUEST_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 ~ServiceWorkerRequestHandler() override; 123 ~ServiceWorkerRequestHandler() override;
124 124
125 // Called via custom URLRequestJobFactory. 125 // Called via custom URLRequestJobFactory.
126 virtual net::URLRequestJob* MaybeCreateJob( 126 virtual net::URLRequestJob* MaybeCreateJob(
127 net::URLRequest* request, 127 net::URLRequest* request,
128 net::NetworkDelegate* network_delegate, 128 net::NetworkDelegate* network_delegate,
129 ResourceContext* context) = 0; 129 ResourceContext* context) = 0;
130 130
131 // URLLoaderRequestHandler overrides. 131 // URLLoaderRequestHandler overrides.
132 void MaybeCreateLoaderFactory(const ResourceRequest& request, 132 void MaybeCreateLoader(const ResourceRequest& request,
133 ResourceContext* resource_context, 133 ResourceContext* resource_context,
134 LoaderFactoryCallback callback) override; 134 LoaderCallback callback) override;
135 135
136 // Methods to support cross site navigations. 136 // Methods to support cross site navigations.
137 void PrepareForCrossSiteTransfer(int old_process_id); 137 void PrepareForCrossSiteTransfer(int old_process_id);
138 void CompleteCrossSiteTransfer(int new_process_id, 138 void CompleteCrossSiteTransfer(int new_process_id,
139 int new_provider_id); 139 int new_provider_id);
140 void MaybeCompleteCrossSiteTransferInOldProcess( 140 void MaybeCompleteCrossSiteTransferInOldProcess(
141 int old_process_id); 141 int old_process_id);
142 142
143 // Useful for detecting storage partition mismatches in the context of cross 143 // Useful for detecting storage partition mismatches in the context of cross
144 // site transfer navigations. 144 // site transfer navigations.
(...skipping 15 matching lines...) Expand all
160 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; 160 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_;
161 int old_process_id_; 161 int old_process_id_;
162 int old_provider_id_; 162 int old_provider_id_;
163 163
164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); 164 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler);
165 }; 165 };
166 166
167 } // namespace content 167 } // namespace content
168 168
169 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ 169 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698