| 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..e951b88f7fbf27bb97faebfccbebe22efac48aed 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 fetched by 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 by the ServiceWorker.
|
| + // 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.
|
|
|