| OLD | NEW |
| 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 "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 #include "content/common/service_worker/service_worker_status_code.h" | 10 #include "content/common/service_worker/service_worker_status_code.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 base::WeakPtr<ServiceWorkerProviderHost> provider_host_; | 114 base::WeakPtr<ServiceWorkerProviderHost> provider_host_; |
| 115 | 115 |
| 116 ResponseType response_type_; | 116 ResponseType response_type_; |
| 117 bool is_started_; | 117 bool is_started_; |
| 118 | 118 |
| 119 net::HttpByteRange byte_range_; | 119 net::HttpByteRange byte_range_; |
| 120 scoped_ptr<net::HttpResponseInfo> range_response_info_; | 120 scoped_ptr<net::HttpResponseInfo> range_response_info_; |
| 121 scoped_ptr<net::HttpResponseInfo> http_response_info_; | 121 scoped_ptr<net::HttpResponseInfo> http_response_info_; |
| 122 // Headers that have not yet been committed to |http_response_info_|. | 122 // Headers that have not yet been committed to |http_response_info_|. |
| 123 scoped_refptr<net::HttpResponseHeaders> http_response_headers_; | 123 scoped_refptr<net::HttpResponseHeaders> http_response_headers_; |
| 124 GURL response_url_; |
| 124 | 125 |
| 125 // Used when response type is FORWARD_TO_SERVICE_WORKER. | 126 // Used when response type is FORWARD_TO_SERVICE_WORKER. |
| 126 scoped_ptr<ServiceWorkerFetchDispatcher> fetch_dispatcher_; | 127 scoped_ptr<ServiceWorkerFetchDispatcher> fetch_dispatcher_; |
| 127 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context_; | 128 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context_; |
| 128 scoped_ptr<net::URLRequest> blob_request_; | 129 scoped_ptr<net::URLRequest> blob_request_; |
| 129 | 130 |
| 130 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; | 131 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); | 133 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace content | 136 } // namespace content |
| 136 | 137 |
| 137 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 138 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
| OLD | NEW |