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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 // own it. | 49 // own it. |
50 static void InitializeHandler( | 50 static void InitializeHandler( |
51 net::URLRequest* request, | 51 net::URLRequest* request, |
52 ServiceWorkerContextWrapper* context_wrapper, | 52 ServiceWorkerContextWrapper* context_wrapper, |
53 storage::BlobStorageContext* blob_storage_context, | 53 storage::BlobStorageContext* blob_storage_context, |
54 int process_id, | 54 int process_id, |
55 int provider_id, | 55 int provider_id, |
56 bool skip_service_worker, | 56 bool skip_service_worker, |
57 FetchRequestMode request_mode, | 57 FetchRequestMode request_mode, |
58 FetchCredentialsMode credentials_mode, | 58 FetchCredentialsMode credentials_mode, |
| 59 FetchRedirectMode redirect_mode, |
59 ResourceType resource_type, | 60 ResourceType resource_type, |
60 RequestContextType request_context_type, | 61 RequestContextType request_context_type, |
61 RequestContextFrameType frame_type, | 62 RequestContextFrameType frame_type, |
62 scoped_refptr<ResourceRequestBody> body); | 63 scoped_refptr<ResourceRequestBody> body); |
63 | 64 |
64 // Returns the handler attached to |request|. This may return NULL | 65 // Returns the handler attached to |request|. This may return NULL |
65 // if no handler is attached. | 66 // if no handler is attached. |
66 static ServiceWorkerRequestHandler* GetHandler( | 67 static ServiceWorkerRequestHandler* GetHandler( |
67 net::URLRequest* request); | 68 net::URLRequest* request); |
68 | 69 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 scoped_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; | 113 scoped_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; |
113 int old_process_id_; | 114 int old_process_id_; |
114 int old_provider_id_; | 115 int old_provider_id_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); | 117 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace content | 120 } // namespace content |
120 | 121 |
121 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ | 122 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
OLD | NEW |