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/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 static void InitializeHandler( | 89 static void InitializeHandler( |
90 net::URLRequest* request, | 90 net::URLRequest* request, |
91 ServiceWorkerContextWrapper* context_wrapper, | 91 ServiceWorkerContextWrapper* context_wrapper, |
92 storage::BlobStorageContext* blob_storage_context, | 92 storage::BlobStorageContext* blob_storage_context, |
93 int process_id, | 93 int process_id, |
94 int provider_id, | 94 int provider_id, |
95 bool skip_service_worker, | 95 bool skip_service_worker, |
96 FetchRequestMode request_mode, | 96 FetchRequestMode request_mode, |
97 FetchCredentialsMode credentials_mode, | 97 FetchCredentialsMode credentials_mode, |
98 FetchRedirectMode redirect_mode, | 98 FetchRedirectMode redirect_mode, |
| 99 const std::string& integrity, |
99 ResourceType resource_type, | 100 ResourceType resource_type, |
100 RequestContextType request_context_type, | 101 RequestContextType request_context_type, |
101 RequestContextFrameType frame_type, | 102 RequestContextFrameType frame_type, |
102 scoped_refptr<ResourceRequestBody> body); | 103 scoped_refptr<ResourceRequestBody> body); |
103 | 104 |
104 // Returns the handler attached to |request|. This may return NULL | 105 // Returns the handler attached to |request|. This may return NULL |
105 // if no handler is attached. | 106 // if no handler is attached. |
106 static ServiceWorkerRequestHandler* GetHandler( | 107 static ServiceWorkerRequestHandler* GetHandler( |
107 const net::URLRequest* request); | 108 const net::URLRequest* request); |
108 | 109 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; | 162 std::unique_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; |
162 int old_process_id_; | 163 int old_process_id_; |
163 int old_provider_id_; | 164 int old_provider_id_; |
164 | 165 |
165 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); | 166 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); |
166 }; | 167 }; |
167 | 168 |
168 } // namespace content | 169 } // namespace content |
169 | 170 |
170 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ | 171 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
OLD | NEW |