Chromium Code Reviews| Index: content/browser/service_worker/service_worker_version.h |
| diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h |
| index 6954a4208010e064ca83afbc39d6aa48f6eec63f..b76fb9c6a0e3bb9a987c4f74f6cb36beca166998 100644 |
| --- a/content/browser/service_worker/service_worker_version.h |
| +++ b/content/browser/service_worker/service_worker_version.h |
| @@ -33,6 +33,10 @@ namespace blink { |
| struct WebCircularGeofencingRegion; |
| } |
| +namespace net { |
| +class HttpResponseInfo; |
| +} |
| + |
| namespace content { |
| class EmbeddedWorkerRegistry; |
| @@ -292,6 +296,12 @@ class CONTENT_EXPORT ServiceWorkerVersion |
| void SetDevToolsAttached(bool attached); |
| + // Sets the HttpResponseInfo of the main script. This HttpResponseInfo will be |
| + // used to fill the HttpResponseInfo of the response which will be sent back |
| + // from the ServiceWorker to the page to show the HTTPS padlock. |
|
Ryan Sleevi
2015/02/02 19:39:07
comment nit: Reads a bit weird
// Sets the HttpRe
horo
2015/02/02 20:04:28
Done.
|
| + void SetMainScriptHttpResponseInfo(const net::HttpResponseInfo& http_info); |
| + const net::HttpResponseInfo* GetMainScriptHttpResponseInfo(); |
| + |
| private: |
| class GetClientDocumentsCallback; |
| @@ -409,6 +419,7 @@ class CONTENT_EXPORT ServiceWorkerVersion |
| bool is_doomed_; |
| std::vector<int> pending_skip_waiting_requests_; |
| bool skip_waiting_; |
| + scoped_ptr<net::HttpResponseInfo> main_script_http_info_; |
| base::WeakPtrFactory<ServiceWorkerVersion> weak_factory_; |