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_CONTEXT_REQUEST_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_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 content { | 10 namespace content { |
(...skipping 11 matching lines...) Expand all Loading... | |
22 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, | 22 base::WeakPtr<storage::BlobStorageContext> blob_storage_context, |
23 ResourceType resource_type); | 23 ResourceType resource_type); |
24 ~ServiceWorkerContextRequestHandler() override; | 24 ~ServiceWorkerContextRequestHandler() override; |
25 | 25 |
26 // Called via custom URLRequestJobFactory. | 26 // Called via custom URLRequestJobFactory. |
27 net::URLRequestJob* MaybeCreateJob( | 27 net::URLRequestJob* MaybeCreateJob( |
28 net::URLRequest* request, | 28 net::URLRequest* request, |
29 net::NetworkDelegate* network_delegate, | 29 net::NetworkDelegate* network_delegate, |
30 ResourceContext* resource_context) override; | 30 ResourceContext* resource_context) override; |
31 | 31 |
32 void GetExtraResponseInfo( | 32 void GetExtraResponseInfo(ResourceResponseInfo* response_info) const override; |
mmenke
2015/06/08 02:08:42
Should forward declare ResourceResponseInfo.
Kunihiko Sakamoto
2015/06/08 02:25:57
Since this is an overridden function, I think it's
| |
33 bool* was_fetched_via_service_worker, | |
34 bool* was_fallback_required_by_service_worker, | |
35 GURL* original_url_via_service_worker, | |
36 blink::WebServiceWorkerResponseType* response_type_via_service_worker, | |
37 base::TimeTicks* worker_start_time) const override; | |
38 | 33 |
39 private: | 34 private: |
40 bool ShouldAddToScriptCache(const GURL& url); | 35 bool ShouldAddToScriptCache(const GURL& url); |
41 bool ShouldReadFromScriptCache(const GURL& url, int64* response_id_out); | 36 bool ShouldReadFromScriptCache(const GURL& url, int64* response_id_out); |
42 | 37 |
43 scoped_refptr<ServiceWorkerVersion> version_; | 38 scoped_refptr<ServiceWorkerVersion> version_; |
44 | 39 |
45 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextRequestHandler); | 40 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerContextRequestHandler); |
46 }; | 41 }; |
47 | 42 |
48 } // namespace content | 43 } // namespace content |
49 | 44 |
50 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER _H_ | 45 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_CONTEXT_REQUEST_HANDLER _H_ |
OLD | NEW |