Chromium Code Reviews| 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..48c5f874c74926d38a9e98cd8397164c13513bac 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 response which was fetched via the ServiceWorker. |
|
tyoshino (SeeGerritForStatus)
2014/07/14 07:00:42
ditto
horo
2014/07/15 00:36:17
Done.
|
| + // This may be empty if the response was created inside the ServiceWorker. |
| + 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. |