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_REQUEST_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 storage::BlobStorageContext* blob_storage_context, | 71 storage::BlobStorageContext* blob_storage_context, |
72 int process_id, | 72 int process_id, |
73 int provider_id, | 73 int provider_id, |
74 bool skip_service_worker, | 74 bool skip_service_worker, |
75 FetchRequestMode request_mode, | 75 FetchRequestMode request_mode, |
76 FetchCredentialsMode credentials_mode, | 76 FetchCredentialsMode credentials_mode, |
77 FetchRedirectMode redirect_mode, | 77 FetchRedirectMode redirect_mode, |
78 ResourceType resource_type, | 78 ResourceType resource_type, |
79 RequestContextType request_context_type, | 79 RequestContextType request_context_type, |
80 RequestContextFrameType frame_type, | 80 RequestContextFrameType frame_type, |
81 scoped_refptr<ResourceRequestBodyImpl> body); | 81 scoped_refptr<ResourceRequestBodyImpl> body, |
| 82 base::TimeTicks request_start = base::TimeTicks()); |
82 | 83 |
83 // Returns the handler attached to |request|. This may return NULL | 84 // Returns the handler attached to |request|. This may return NULL |
84 // if no handler is attached. | 85 // if no handler is attached. |
85 static ServiceWorkerRequestHandler* GetHandler( | 86 static ServiceWorkerRequestHandler* GetHandler( |
86 const net::URLRequest* request); | 87 const net::URLRequest* request); |
87 | 88 |
88 // Creates a protocol interceptor for ServiceWorker. | 89 // Creates a protocol interceptor for ServiceWorker. |
89 static std::unique_ptr<net::URLRequestInterceptor> CreateInterceptor( | 90 static std::unique_ptr<net::URLRequestInterceptor> CreateInterceptor( |
90 ResourceContext* resource_context); | 91 ResourceContext* resource_context); |
91 | 92 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; | 136 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; |
136 int old_process_id_; | 137 int old_process_id_; |
137 int old_provider_id_; | 138 int old_provider_id_; |
138 | 139 |
139 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); | 140 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); |
140 }; | 141 }; |
141 | 142 |
142 } // namespace content | 143 } // namespace content |
143 | 144 |
144 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ | 145 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
OLD | NEW |