| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <vector> |
| 13 | 14 |
| 14 #include "base/macros.h" | 15 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 17 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 18 #include "content/browser/service_worker/embedded_worker_status.h" | 19 #include "content/browser/service_worker/embedded_worker_status.h" |
| 19 #include "content/browser/service_worker/service_worker_metrics.h" | 20 #include "content/browser/service_worker/service_worker_metrics.h" |
| 20 #include "content/common/content_export.h" | 21 #include "content/common/content_export.h" |
| 21 #include "content/common/service_worker/service_worker_status_code.h" | 22 #include "content/common/service_worker/service_worker_status_code.h" |
| 22 #include "content/common/service_worker/service_worker_types.h" | 23 #include "content/common/service_worker/service_worker_types.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 base::Time response_time_; | 239 base::Time response_time_; |
| 239 | 240 |
| 240 ResponseType response_type_; | 241 ResponseType response_type_; |
| 241 bool is_started_; | 242 bool is_started_; |
| 242 | 243 |
| 243 net::HttpByteRange byte_range_; | 244 net::HttpByteRange byte_range_; |
| 244 std::unique_ptr<net::HttpResponseInfo> range_response_info_; | 245 std::unique_ptr<net::HttpResponseInfo> range_response_info_; |
| 245 std::unique_ptr<net::HttpResponseInfo> http_response_info_; | 246 std::unique_ptr<net::HttpResponseInfo> http_response_info_; |
| 246 // Headers that have not yet been committed to |http_response_info_|. | 247 // Headers that have not yet been committed to |http_response_info_|. |
| 247 scoped_refptr<net::HttpResponseHeaders> http_response_headers_; | 248 scoped_refptr<net::HttpResponseHeaders> http_response_headers_; |
| 248 GURL response_url_; | 249 std::vector<GURL> response_url_list_; |
| 249 blink::WebServiceWorkerResponseType service_worker_response_type_; | 250 blink::WebServiceWorkerResponseType service_worker_response_type_; |
| 250 | 251 |
| 251 // Used when response type is FORWARD_TO_SERVICE_WORKER. | 252 // Used when response type is FORWARD_TO_SERVICE_WORKER. |
| 252 std::unique_ptr<ServiceWorkerFetchDispatcher> fetch_dispatcher_; | 253 std::unique_ptr<ServiceWorkerFetchDispatcher> fetch_dispatcher_; |
| 253 std::string client_id_; | 254 std::string client_id_; |
| 254 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; | 255 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; |
| 255 const ResourceContext* resource_context_; | 256 const ResourceContext* resource_context_; |
| 256 // Only one of |blob_reader_| and |stream_reader_| can be non-null. | 257 // Only one of |blob_reader_| and |stream_reader_| can be non-null. |
| 257 std::unique_ptr<ServiceWorkerBlobReader> blob_reader_; | 258 std::unique_ptr<ServiceWorkerBlobReader> blob_reader_; |
| 258 std::unique_ptr<ServiceWorkerStreamReader> stream_reader_; | 259 std::unique_ptr<ServiceWorkerStreamReader> stream_reader_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 284 EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED; | 285 EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED; |
| 285 | 286 |
| 286 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; | 287 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |
| 287 | 288 |
| 288 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); | 289 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 } // namespace content | 292 } // namespace content |
| 292 | 293 |
| 293 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 294 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
| OLD | NEW |