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

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

Issue 2959903002: Revert of Implement dumb URLLoader{Factory} for ServiceWorker script loading (Closed)
Patch Set: pull master and rebase Created 3 years, 5 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 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_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_JOB_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_JOB_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_JOB_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_JOB_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/url_loader_request_handler.h" 10 #include "content/browser/loader/url_loader_request_handler.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 ServiceWorkerResponseType response_type_ = NOT_DETERMINED; 149 ServiceWorkerResponseType response_type_ = NOT_DETERMINED;
150 LoaderCallback loader_callback_; 150 LoaderCallback loader_callback_;
151 151
152 Delegate* delegate_; 152 Delegate* delegate_;
153 ResourceRequest resource_request_; 153 ResourceRequest resource_request_;
154 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; 154 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_;
155 std::unique_ptr<ServiceWorkerFetchDispatcher> fetch_dispatcher_; 155 std::unique_ptr<ServiceWorkerFetchDispatcher> fetch_dispatcher_;
156 156
157 bool did_navigation_preload_ = false; 157 bool did_navigation_preload_ = false;
158 ResourceResponseHead response_head_; 158 ResourceResponseHead response_head_;
159 base::Optional<net::SSLInfo> ssl_info_;
160 159
161 // URLLoaderClient binding for loading a blob. 160 // URLLoaderClient binding for loading a blob.
162 mojo::Binding<mojom::URLLoaderClient> blob_client_binding_; 161 mojo::Binding<mojom::URLLoaderClient> blob_client_binding_;
163 162
164 // Pointer to the URLLoaderClient (i.e. NavigationURLLoader). 163 // Pointer to the URLLoaderClient (i.e. NavigationURLLoader).
165 mojom::URLLoaderClientPtr url_loader_client_; 164 mojom::URLLoaderClientPtr url_loader_client_;
166 mojo::Binding<mojom::URLLoader> binding_; 165 mojo::Binding<mojom::URLLoader> binding_;
167 166
168 enum class Status { 167 enum class Status {
169 kNotStarted, 168 kNotStarted,
170 kStarted, 169 kStarted,
171 kSentHeader, 170 kSentHeader,
172 kCompleted, 171 kCompleted,
173 kCancelled 172 kCancelled
174 }; 173 };
175 Status status_ = Status::kNotStarted; 174 Status status_ = Status::kNotStarted;
176 175
177 base::WeakPtrFactory<ServiceWorkerURLLoaderJob> weak_factory_; 176 base::WeakPtrFactory<ServiceWorkerURLLoaderJob> weak_factory_;
178 177
179 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLLoaderJob); 178 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLLoaderJob);
180 }; 179 };
181 180
182 } // namespace content 181 } // namespace content
183 182
184 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_JOB_H_ 183 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_LOADER_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698