| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FOREIGN_FETCH_REQUEST_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 scoped_refptr<ServiceWorkerContextWrapper> context_; | 116 scoped_refptr<ServiceWorkerContextWrapper> context_; |
| 117 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; | 117 base::WeakPtr<storage::BlobStorageContext> blob_storage_context_; |
| 118 ResourceType resource_type_; | 118 ResourceType resource_type_; |
| 119 FetchRequestMode request_mode_; | 119 FetchRequestMode request_mode_; |
| 120 FetchCredentialsMode credentials_mode_; | 120 FetchCredentialsMode credentials_mode_; |
| 121 FetchRedirectMode redirect_mode_; | 121 FetchRedirectMode redirect_mode_; |
| 122 RequestContextType request_context_type_; | 122 RequestContextType request_context_type_; |
| 123 RequestContextFrameType frame_type_; | 123 RequestContextFrameType frame_type_; |
| 124 scoped_refptr<ResourceRequestBodyImpl> body_; | 124 scoped_refptr<ResourceRequestBodyImpl> body_; |
| 125 ResourceContext* resource_context_; |
| 125 | 126 |
| 126 base::WeakPtr<ServiceWorkerURLRequestJob> job_; | 127 base::WeakPtr<ServiceWorkerURLRequestJob> job_; |
| 127 scoped_refptr<ServiceWorkerVersion> target_worker_; | 128 scoped_refptr<ServiceWorkerVersion> target_worker_; |
| 128 | 129 |
| 129 // True if the next time this request is started, the response should be | 130 // True if the next time this request is started, the response should be |
| 130 // delivered from the network, bypassing the ServiceWorker. | 131 // delivered from the network, bypassing the ServiceWorker. |
| 131 bool use_network_ = false; | 132 bool use_network_ = false; |
| 132 | 133 |
| 133 base::WeakPtrFactory<ForeignFetchRequestHandler> weak_factory_; | 134 base::WeakPtrFactory<ForeignFetchRequestHandler> weak_factory_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(ForeignFetchRequestHandler); | 136 DISALLOW_COPY_AND_ASSIGN(ForeignFetchRequestHandler); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace content | 139 } // namespace content |
| 139 | 140 |
| 140 #endif // CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ | 141 #endif // CONTENT_BROWSER_SERVICE_WORKER_FOREIGN_FETCH_REQUEST_HANDLER_H_ |
| OLD | NEW |