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_controllee_request_handl
er.h" | 5 #include "content/browser/service_worker/service_worker_controllee_request_handl
er.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
12 #include "content/browser/service_worker/service_worker_context_core.h" | 12 #include "content/browser/service_worker/service_worker_context_core.h" |
13 #include "content/browser/service_worker/service_worker_metrics.h" | 13 #include "content/browser/service_worker/service_worker_metrics.h" |
14 #include "content/browser/service_worker/service_worker_provider_host.h" | 14 #include "content/browser/service_worker/service_worker_provider_host.h" |
15 #include "content/browser/service_worker/service_worker_registration.h" | 15 #include "content/browser/service_worker/service_worker_registration.h" |
16 #include "content/browser/service_worker/service_worker_response_info.h" | 16 #include "content/browser/service_worker/service_worker_response_info.h" |
17 #include "content/browser/service_worker/service_worker_url_job_wrapper.h" | 17 #include "content/browser/service_worker/service_worker_url_job_wrapper.h" |
18 #include "content/browser/service_worker/service_worker_url_request_job.h" | 18 #include "content/browser/service_worker/service_worker_url_request_job.h" |
19 #include "content/common/service_worker/service_worker_types.h" | |
20 #include "content/common/service_worker/service_worker_utils.h" | 19 #include "content/common/service_worker/service_worker_utils.h" |
21 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
22 #include "content/public/browser/render_frame_host.h" | 21 #include "content/public/browser/render_frame_host.h" |
23 #include "content/public/browser/resource_request_info.h" | 22 #include "content/public/browser/resource_request_info.h" |
24 #include "content/public/browser/web_contents.h" | 23 #include "content/public/browser/web_contents.h" |
25 #include "content/public/common/browser_side_navigation_policy.h" | 24 #include "content/public/common/browser_side_navigation_policy.h" |
26 #include "content/public/common/content_client.h" | 25 #include "content/public/common/content_client.h" |
27 #include "content/public/common/resource_request_body.h" | 26 #include "content/public/common/resource_request_body.h" |
28 #include "content/public/common/resource_response_info.h" | 27 #include "content/public/common/resource_response_info.h" |
29 #include "net/base/load_flags.h" | 28 #include "net/base/load_flags.h" |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 | 496 |
498 void ServiceWorkerControlleeRequestHandler::ClearJob() { | 497 void ServiceWorkerControlleeRequestHandler::ClearJob() { |
499 url_job_.reset(); | 498 url_job_.reset(); |
500 } | 499 } |
501 | 500 |
502 bool ServiceWorkerControlleeRequestHandler::JobWasCanceled() const { | 501 bool ServiceWorkerControlleeRequestHandler::JobWasCanceled() const { |
503 return !url_job_ || url_job_->WasCanceled(); | 502 return !url_job_ || url_job_->WasCanceled(); |
504 } | 503 } |
505 | 504 |
506 } // namespace content | 505 } // namespace content |
OLD | NEW |