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

Unified Diff: content/browser/service_worker/service_worker_url_request_job.h

Issue 844913002: [ServiceWorker] Refactor the codes for releasing the resources for streaming. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_url_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_url_request_job.h
diff --git a/content/browser/service_worker/service_worker_url_request_job.h b/content/browser/service_worker/service_worker_url_request_job.h
index cd28132b16b3c992304fba7fef17996c8c1ce1fd..7ce80076eda60ff95a526389267e59d26e735520 100644
--- a/content/browser/service_worker/service_worker_url_request_job.h
+++ b/content/browser/service_worker/service_worker_url_request_job.h
@@ -41,6 +41,7 @@ class ResourceRequestBody;
class ServiceWorkerContextCore;
class ServiceWorkerFetchDispatcher;
class ServiceWorkerProviderHost;
+class ServiceWorkerVersion;
class Stream;
class CONTENT_EXPORT ServiceWorkerURLRequestJob
@@ -159,6 +160,9 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob
// Creates and commits a response header indicating error.
void DeliverErrorResponse();
+ // Releases the resources for streaming.
+ void ClearStream();
+
base::WeakPtr<ServiceWorkerProviderHost> provider_host_;
// Timing info to show on the popup in Devtools' Network tab.
@@ -198,6 +202,7 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob
// using the userdata mechanism. So we have to keep it not to free the blobs.
scoped_refptr<ResourceRequestBody> body_;
scoped_ptr<storage::BlobDataHandle> request_body_blob_data_handle_;
+ scoped_refptr<ServiceWorkerVersion> streaming_version_;
base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_;
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_url_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698