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

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

Issue 2645493002: Increase the lifetime of Navigation Preload related objects. (Closed)
Patch Set: Keep the URL loader related assetsalive while the FetchEvent is onging. Created 3 years, 11 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_URL_REQUEST_JOB_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 bool response_is_in_cache_storage_ = false; 287 bool response_is_in_cache_storage_ = false;
288 std::string response_cache_storage_cache_name_; 288 std::string response_cache_storage_cache_name_;
289 289
290 ServiceWorkerHeaderList cors_exposed_header_names_; 290 ServiceWorkerHeaderList cors_exposed_header_names_;
291 291
292 std::unique_ptr<FileSizeResolver> file_size_resolver_; 292 std::unique_ptr<FileSizeResolver> file_size_resolver_;
293 293
294 bool worker_already_activated_ = false; 294 bool worker_already_activated_ = false;
295 EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED; 295 EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED;
296 bool did_navigation_preload_ = false;
296 297
297 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; 298 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_;
298 299
299 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); 300 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob);
300 }; 301 };
301 302
302 } // namespace content 303 } // namespace content
303 304
304 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 305 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698