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 "content/browser/service_worker/service_worker_request_handler.h" | 8 #include "content/browser/service_worker/service_worker_request_handler.h" |
9 | 9 |
10 namespace net { | 10 namespace net { |
(...skipping 13 matching lines...) Expand all Loading... |
24 public: | 24 public: |
25 ServiceWorkerControlleeRequestHandler( | 25 ServiceWorkerControlleeRequestHandler( |
26 base::WeakPtr<ServiceWorkerContextCore> context, | 26 base::WeakPtr<ServiceWorkerContextCore> context, |
27 base::WeakPtr<ServiceWorkerProviderHost> provider_host, | 27 base::WeakPtr<ServiceWorkerProviderHost> provider_host, |
28 ResourceType::Type resource_type); | 28 ResourceType::Type resource_type); |
29 virtual ~ServiceWorkerControlleeRequestHandler(); | 29 virtual ~ServiceWorkerControlleeRequestHandler(); |
30 | 30 |
31 // Called via custom URLRequestJobFactory. | 31 // Called via custom URLRequestJobFactory. |
32 virtual net::URLRequestJob* MaybeCreateJob( | 32 virtual net::URLRequestJob* MaybeCreateJob( |
33 net::URLRequest* request, | 33 net::URLRequest* request, |
34 net::NetworkDelegate* network_delegate) OVERRIDE; | 34 net::NetworkDelegate* network_delegate, |
| 35 const scoped_refptr<ChromeBlobStorageContext>& |
| 36 blob_storage_context) OVERRIDE; |
35 | 37 |
36 private: | 38 private: |
37 typedef ServiceWorkerControlleeRequestHandler self; | 39 typedef ServiceWorkerControlleeRequestHandler self; |
38 | 40 |
39 // For main resource case. | 41 // For main resource case. |
40 void PrepareForMainResource(const GURL& url); | 42 void PrepareForMainResource(const GURL& url); |
41 void DidLookupRegistrationForMainResource( | 43 void DidLookupRegistrationForMainResource( |
42 ServiceWorkerStatusCode status, | 44 ServiceWorkerStatusCode status, |
43 const scoped_refptr<ServiceWorkerRegistration>& registration); | 45 const scoped_refptr<ServiceWorkerRegistration>& registration); |
44 | 46 |
45 // For sub resource case. | 47 // For sub resource case. |
46 void PrepareForSubResource(); | 48 void PrepareForSubResource(); |
47 | 49 |
48 scoped_refptr<ServiceWorkerURLRequestJob> job_; | 50 scoped_refptr<ServiceWorkerURLRequestJob> job_; |
49 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; | 51 base::WeakPtrFactory<ServiceWorkerControlleeRequestHandler> weak_factory_; |
50 | 52 |
51 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); | 53 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerControlleeRequestHandler); |
52 }; | 54 }; |
53 | 55 |
54 } // namespace content | 56 } // namespace content |
55 | 57 |
56 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
LER_H_ | 58 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTROLLEE_REQUEST_HAND
LER_H_ |
OLD | NEW |