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_url_request_job.h" | 5 #include "content/browser/service_worker/service_worker_url_request_job.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <limits> | 10 #include <limits> |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "content/public/browser/resource_request_info.h" | 34 #include "content/public/browser/resource_request_info.h" |
35 #include "content/public/browser/service_worker_context.h" | 35 #include "content/public/browser/service_worker_context.h" |
36 #include "content/public/common/referrer.h" | 36 #include "content/public/common/referrer.h" |
37 #include "net/base/net_errors.h" | 37 #include "net/base/net_errors.h" |
38 #include "net/http/http_request_headers.h" | 38 #include "net/http/http_request_headers.h" |
39 #include "net/http/http_response_headers.h" | 39 #include "net/http/http_response_headers.h" |
40 #include "net/http/http_response_info.h" | 40 #include "net/http/http_response_info.h" |
41 #include "net/http/http_util.h" | 41 #include "net/http/http_util.h" |
42 #include "net/log/net_log.h" | 42 #include "net/log/net_log.h" |
43 #include "net/log/net_log_event_type.h" | 43 #include "net/log/net_log_event_type.h" |
| 44 #include "net/log/net_log_with_source.h" |
44 #include "storage/browser/blob/blob_data_builder.h" | 45 #include "storage/browser/blob/blob_data_builder.h" |
45 #include "storage/browser/blob/blob_data_handle.h" | 46 #include "storage/browser/blob/blob_data_handle.h" |
46 #include "storage/browser/blob/blob_storage_context.h" | 47 #include "storage/browser/blob/blob_storage_context.h" |
47 #include "ui/base/page_transition_types.h" | 48 #include "ui/base/page_transition_types.h" |
48 | 49 |
49 namespace content { | 50 namespace content { |
50 | 51 |
51 namespace { | 52 namespace { |
52 | 53 |
53 net::NetLogEventType RequestJobResultToNetEventType( | 54 net::NetLogEventType RequestJobResultToNetEventType( |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 CreateFetchRequest(), active_worker, resource_type_, request()->net_log(), | 890 CreateFetchRequest(), active_worker, resource_type_, request()->net_log(), |
890 base::Bind(&ServiceWorkerURLRequestJob::DidPrepareFetchEvent, | 891 base::Bind(&ServiceWorkerURLRequestJob::DidPrepareFetchEvent, |
891 weak_factory_.GetWeakPtr(), active_worker), | 892 weak_factory_.GetWeakPtr(), active_worker), |
892 base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent, | 893 base::Bind(&ServiceWorkerURLRequestJob::DidDispatchFetchEvent, |
893 weak_factory_.GetWeakPtr()))); | 894 weak_factory_.GetWeakPtr()))); |
894 worker_start_time_ = base::TimeTicks::Now(); | 895 worker_start_time_ = base::TimeTicks::Now(); |
895 fetch_dispatcher_->Run(); | 896 fetch_dispatcher_->Run(); |
896 } | 897 } |
897 | 898 |
898 } // namespace content | 899 } // namespace content |
OLD | NEW |