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