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