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_CONTROLLEE_REQUEST_HANDLER
_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER
_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER
_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HANDLER
_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "content/browser/service_worker/service_worker_request_handler.h" | 9 #include "content/browser/service_worker/service_worker_request_handler.h" |
10 #include "content/common/service_worker/service_worker_types.h" | 10 #include "content/common/service_worker/service_worker_types.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 public: | 33 public: |
34 ServiceWorkerControlleeRequestHandler( | 34 ServiceWorkerControlleeRequestHandler( |
35 base::WeakPtr<ServiceWorkerContextCore> context, | 35 base::WeakPtr<ServiceWorkerContextCore> context, |
36 base::WeakPtr<ServiceWorkerProviderHost> provider_host, | 36 base::WeakPtr<ServiceWorkerProviderHost> provider_host, |
37 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 37 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
38 FetchRequestMode request_mode, | 38 FetchRequestMode request_mode, |
39 FetchCredentialsMode credentials_mode, | 39 FetchCredentialsMode credentials_mode, |
40 ResourceType resource_type, | 40 ResourceType resource_type, |
41 RequestContextType request_context_type, | 41 RequestContextType request_context_type, |
42 RequestContextFrameType frame_type, | 42 RequestContextFrameType frame_type, |
| 43 const ServiceWorkerClientInfo& client_info, |
43 scoped_refptr<ResourceRequestBody> body); | 44 scoped_refptr<ResourceRequestBody> body); |
44 ~ServiceWorkerControlleeRequestHandler() override; | 45 ~ServiceWorkerControlleeRequestHandler() override; |
45 | 46 |
46 // Called via custom URLRequestJobFactory. | 47 // Called via custom URLRequestJobFactory. |
47 net::URLRequestJob* MaybeCreateJob( | 48 net::URLRequestJob* MaybeCreateJob( |
48 net::URLRequest* request, | 49 net::URLRequest* request, |
49 net::NetworkDelegate* network_delegate, | 50 net::NetworkDelegate* network_delegate, |
50 ResourceContext* resource_context) override; | 51 ResourceContext* resource_context) override; |
51 | 52 |
52 void GetExtraResponseInfo( | 53 void GetExtraResponseInfo( |
(...skipping 21 matching lines...) Expand all Loading... |
74 | 75 |
75 // For sub resource case. | 76 // For sub resource case. |
76 void PrepareForSubResource(); | 77 void PrepareForSubResource(); |
77 | 78 |
78 bool is_main_resource_load_; | 79 bool is_main_resource_load_; |
79 scoped_refptr<ServiceWorkerURLRequestJob> job_; | 80 scoped_refptr<ServiceWorkerURLRequestJob> job_; |
80 FetchRequestMode request_mode_; | 81 FetchRequestMode request_mode_; |
81 FetchCredentialsMode credentials_mode_; | 82 FetchCredentialsMode credentials_mode_; |
82 RequestContextType request_context_type_; | 83 RequestContextType request_context_type_; |
83 RequestContextFrameType frame_type_; | 84 RequestContextFrameType frame_type_; |
| 85 ServiceWorkerClientInfo client_info_; |
84 scoped_refptr<ResourceRequestBody> body_; | 86 scoped_refptr<ResourceRequestBody> body_; |
85 ResourceContext* resource_context_; | 87 ResourceContext* resource_context_; |
86 GURL stripped_url_; | 88 GURL stripped_url_; |
87 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 89 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; |
88 | 90 |
89 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 91 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); |
90 }; | 92 }; |
91 | 93 |
92 } // namespace content | 94 } // namespace content |
93 | 95 |
94 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
LER_H_ | 96 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
LER_H_ |
OLD | NEW |