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 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 class ServiceWorkerVersion; | 21 class ServiceWorkerVersion; |
22 | 22 |
23 // A request handler derivative used to handle requests from | 23 // A request handler derivative used to handle requests from |
24 // controlled documents. | 24 // controlled documents. |
25 class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler | 25 class CONTENT_EXPORT ServiceWorkerControlleeRequestHandler |
26 : public ServiceWorkerRequestHandler { | 26 : public ServiceWorkerRequestHandler { |
27 public: | 27 public: |
28 ServiceWorkerControlleeRequestHandler( | 28 ServiceWorkerControlleeRequestHandler( |
29 base::WeakPtr<ServiceWorkerContextCore> context, | 29 base::WeakPtr<ServiceWorkerContextCore> context, |
30 base::WeakPtr<ServiceWorkerProviderHost> provider_host, | 30 base::WeakPtr<ServiceWorkerProviderHost> provider_host, |
31 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context, | 31 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
32 ResourceType resource_type, | 32 ResourceType resource_type, |
33 scoped_refptr<ResourceRequestBody> body); | 33 scoped_refptr<ResourceRequestBody> body); |
34 virtual ~ServiceWorkerControlleeRequestHandler(); | 34 virtual ~ServiceWorkerControlleeRequestHandler(); |
35 | 35 |
36 // Called via custom URLRequestJobFactory. | 36 // Called via custom URLRequestJobFactory. |
37 virtual net::URLRequestJob* MaybeCreateJob( | 37 virtual net::URLRequestJob* MaybeCreateJob( |
38 net::URLRequest* request, | 38 net::URLRequest* request, |
39 net::NetworkDelegate* network_delegate) OVERRIDE; | 39 net::NetworkDelegate* network_delegate) OVERRIDE; |
40 | 40 |
41 virtual void GetExtraResponseInfo( | 41 virtual void GetExtraResponseInfo( |
(...skipping 21 matching lines...) Expand all Loading... |
63 scoped_refptr<ServiceWorkerURLRequestJob> job_; | 63 scoped_refptr<ServiceWorkerURLRequestJob> job_; |
64 scoped_refptr<ResourceRequestBody> body_; | 64 scoped_refptr<ResourceRequestBody> body_; |
65 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 65 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 67 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace content | 70 } // namespace content |
71 | 71 |
72 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
LER_H_ | 72 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
LER_H_ |
OLD | NEW |