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_URL_REQUEST_JOB_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
24 #include "net/url_request/url_request_job.h" | 24 #include "net/url_request/url_request_job.h" |
25 #include "third_party/WebKit/public/platform/WebServiceWorkerResponseType.h" | 25 #include "third_party/WebKit/public/platform/WebServiceWorkerResponseType.h" |
26 #include "url/gurl.h" | 26 #include "url/gurl.h" |
27 | 27 |
28 namespace net { | 28 namespace net { |
29 class IOBuffer; | 29 class IOBuffer; |
30 } | 30 } |
31 | 31 |
32 namespace storage { | 32 namespace storage { |
33 class BlobDataHandle; | 33 class BlobDataSnapshotHandle; |
34 class BlobStorageContext; | 34 class BlobStorageContext; |
35 } | 35 } |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 | 38 |
39 class ResourceContext; | 39 class ResourceContext; |
40 class ResourceRequestBody; | 40 class ResourceRequestBody; |
41 class ServiceWorkerContextCore; | 41 class ServiceWorkerContextCore; |
42 class ServiceWorkerFetchDispatcher; | 42 class ServiceWorkerFetchDispatcher; |
43 class ServiceWorkerProviderHost; | 43 class ServiceWorkerProviderHost; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 int stream_pending_buffer_size_; | 194 int stream_pending_buffer_size_; |
195 | 195 |
196 FetchRequestMode request_mode_; | 196 FetchRequestMode request_mode_; |
197 FetchCredentialsMode credentials_mode_; | 197 FetchCredentialsMode credentials_mode_; |
198 RequestContextType request_context_type_; | 198 RequestContextType request_context_type_; |
199 RequestContextFrameType frame_type_; | 199 RequestContextFrameType frame_type_; |
200 bool fall_back_required_; | 200 bool fall_back_required_; |
201 // ResourceRequestBody has a collection of BlobDataHandles attached to it | 201 // ResourceRequestBody has a collection of BlobDataHandles attached to it |
202 // using the userdata mechanism. So we have to keep it not to free the blobs. | 202 // using the userdata mechanism. So we have to keep it not to free the blobs. |
203 scoped_refptr<ResourceRequestBody> body_; | 203 scoped_refptr<ResourceRequestBody> body_; |
204 scoped_ptr<storage::BlobDataHandle> request_body_blob_data_handle_; | 204 scoped_ptr<storage::BlobDataSnapshotHandle> request_body_blob_data_handle_; |
205 scoped_refptr<ServiceWorkerVersion> streaming_version_; | 205 scoped_refptr<ServiceWorkerVersion> streaming_version_; |
206 | 206 |
207 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; | 207 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; |
208 | 208 |
209 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); | 209 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); |
210 }; | 210 }; |
211 | 211 |
212 } // namespace content | 212 } // namespace content |
213 | 213 |
214 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ | 214 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ |
OLD | NEW |