Index: net/url_request/url_request.h |
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h |
index 0357c6ae803236d3f8f44be6cf03843cadd882cd..4f3cc85bb11dd2efc607580f882b3d21ba07489f 100644 |
--- a/net/url_request/url_request.h |
+++ b/net/url_request/url_request.h |
@@ -499,6 +499,17 @@ class NET_EXPORT URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe), |
return response_info_.ssl_info; |
} |
+ // Returns true if the URLRequest was delivered through a ServiceWorker. |
+ bool was_fetched_via_service_worker() const { |
+ return response_info_.was_fetched_via_service_worker; |
+ } |
+ |
+ // The original URL of the repsponse which was fetched via the ServiceWorker. |
tyoshino (SeeGerritForStatus)
2014/07/09 06:35:25
response
horo
2014/07/09 11:14:03
Done.
|
+ // This may be empty if the repsponse was created inside the ServiceWorker. |
tyoshino (SeeGerritForStatus)
2014/07/09 06:35:25
response
horo
2014/07/09 11:14:03
Done.
|
+ const GURL& original_url_via_service_worker() const { |
+ return response_info_.original_url_via_service_worker; |
+ } |
+ |
// Gets timing information related to the request. Events that have not yet |
// occurred are left uninitialized. After a second request starts, due to |
// a redirect or authentication, values will be reset. |