| 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..6a83c384ea50562870ed429eeeb8cfac796fff0b 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 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.
|
| + // This may be empty if the repsponse 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.
|
|
|