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 #include "content/browser/service_worker/service_worker_write_to_cache_job.h" | 5 #include "content/browser/service_worker/service_worker_write_to_cache_job.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
12 #include "content/browser/service_worker/service_worker_cache_writer.h" | 12 #include "content/browser/service_worker/service_worker_cache_writer.h" |
13 #include "content/browser/service_worker/service_worker_context_core.h" | 13 #include "content/browser/service_worker/service_worker_context_core.h" |
14 #include "content/browser/service_worker/service_worker_disk_cache.h" | 14 #include "content/browser/service_worker/service_worker_disk_cache.h" |
15 #include "content/browser/service_worker/service_worker_metrics.h" | 15 #include "content/browser/service_worker/service_worker_metrics.h" |
16 #include "content/common/net/url_request_service_worker_data.h" | 16 #include "content/common/net/url_request_service_worker_data.h" |
17 #include "content/common/service_worker/service_worker_types.h" | 17 #include "content/common/service_worker/service_worker_types.h" |
18 #include "content/common/service_worker/service_worker_utils.h" | 18 #include "content/common/service_worker/service_worker_utils.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 } | 486 } |
487 return context_->storage()->CreateResponseReader(incumbent_resource_id_); | 487 return context_->storage()->CreateResponseReader(incumbent_resource_id_); |
488 } | 488 } |
489 | 489 |
490 std::unique_ptr<ServiceWorkerResponseWriter> | 490 std::unique_ptr<ServiceWorkerResponseWriter> |
491 ServiceWorkerWriteToCacheJob::CreateCacheResponseWriter() { | 491 ServiceWorkerWriteToCacheJob::CreateCacheResponseWriter() { |
492 return context_->storage()->CreateResponseWriter(resource_id_); | 492 return context_->storage()->CreateResponseWriter(resource_id_); |
493 } | 493 } |
494 | 494 |
495 } // namespace content | 495 } // namespace content |
OLD | NEW |