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_REQUEST_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ | 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/supports_user_data.h" | 10 #include "base/supports_user_data.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual net::URLRequestJob* MaybeCreateJob( | 82 virtual net::URLRequestJob* MaybeCreateJob( |
83 net::URLRequest* request, | 83 net::URLRequest* request, |
84 net::NetworkDelegate* network_delegate, | 84 net::NetworkDelegate* network_delegate, |
85 ResourceContext* context) = 0; | 85 ResourceContext* context) = 0; |
86 | 86 |
87 virtual void GetExtraResponseInfo( | 87 virtual void GetExtraResponseInfo( |
88 bool* was_fetched_via_service_worker, | 88 bool* was_fetched_via_service_worker, |
89 bool* was_fallback_required_by_service_worker, | 89 bool* was_fallback_required_by_service_worker, |
90 GURL* original_url_via_service_worker, | 90 GURL* original_url_via_service_worker, |
91 blink::WebServiceWorkerResponseType* response_type_via_service_worker, | 91 blink::WebServiceWorkerResponseType* response_type_via_service_worker, |
92 base::TimeTicks* worker_start_time) const = 0; | 92 base::TimeTicks* worker_start_time, |
| 93 base::TimeTicks* worker_ready_time) const = 0; |
93 | 94 |
94 // Methods to support cross site navigations. | 95 // Methods to support cross site navigations. |
95 void PrepareForCrossSiteTransfer(int old_process_id); | 96 void PrepareForCrossSiteTransfer(int old_process_id); |
96 void CompleteCrossSiteTransfer(int new_process_id, | 97 void CompleteCrossSiteTransfer(int new_process_id, |
97 int new_provider_id); | 98 int new_provider_id); |
98 void MaybeCompleteCrossSiteTransferInOldProcess( | 99 void MaybeCompleteCrossSiteTransferInOldProcess( |
99 int old_process_id); | 100 int old_process_id); |
100 | 101 |
101 ServiceWorkerContextCore* context() const { return context_.get(); } | 102 ServiceWorkerContextCore* context() const { return context_.get(); } |
102 | 103 |
(...skipping 13 matching lines...) Expand all Loading... |
116 scoped_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; | 117 scoped_ptr<ServiceWorkerProviderHost> host_for_cross_site_transfer_; |
117 int old_process_id_; | 118 int old_process_id_; |
118 int old_provider_id_; | 119 int old_provider_id_; |
119 | 120 |
120 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); | 121 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerRequestHandler); |
121 }; | 122 }; |
122 | 123 |
123 } // namespace content | 124 } // namespace content |
124 | 125 |
125 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ | 126 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_REQUEST_HANDLER_H_ |
OLD | NEW |