Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(966)

Unified Diff: content/browser/service_worker/service_worker_version.h

Issue 877623002: [ServiceWorker] Fills SSLInfo of the response from a SW with the SSLInfo of the SW script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated rsleevi's comment Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698