| Index: content/browser/service_worker/service_worker_url_request_job.h
|
| diff --git a/content/browser/service_worker/service_worker_url_request_job.h b/content/browser/service_worker/service_worker_url_request_job.h
|
| index 644ffad6874b4bb118ca39a469612d915cc5cd8d..20292143acdd44408aee3dae6f74c6e115a24892 100644
|
| --- a/content/browser/service_worker/service_worker_url_request_job.h
|
| +++ b/content/browser/service_worker/service_worker_url_request_job.h
|
| @@ -9,6 +9,7 @@
|
| #include <string>
|
|
|
| #include "base/memory/weak_ptr.h"
|
| +#include "base/time/time.h"
|
| #include "content/common/content_export.h"
|
| #include "content/common/service_worker/service_worker_status_code.h"
|
| #include "content/common/service_worker/service_worker_types.h"
|
| @@ -57,6 +58,8 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob
|
| virtual bool GetCharset(std::string* charset) OVERRIDE;
|
| virtual bool GetMimeType(std::string* mime_type) const OVERRIDE;
|
| virtual void GetResponseInfo(net::HttpResponseInfo* info) OVERRIDE;
|
| + virtual void GetLoadTimingInfo(
|
| + net::LoadTimingInfo* load_timing_info) const OVERRIDE;
|
| virtual int GetResponseCode() const OVERRIDE;
|
| virtual void SetExtraRequestHeaders(
|
| const net::HttpRequestHeaders& headers) OVERRIDE;
|
| @@ -86,7 +89,10 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob
|
| const net::HttpResponseInfo* http_info() const;
|
|
|
| void GetExtraResponseInfo(bool* was_fetched_via_service_worker,
|
| - GURL* original_url_via_service_worker) const;
|
| + GURL* original_url_via_service_worker,
|
| + base::TimeTicks* fetch_start_time,
|
| + base::TimeTicks* fetch_ready_time,
|
| + base::TimeTicks* fetch_end_time) const;
|
|
|
| protected:
|
| virtual ~ServiceWorkerURLRequestJob();
|
| @@ -131,6 +137,13 @@ class CONTENT_EXPORT ServiceWorkerURLRequestJob
|
|
|
| base::WeakPtr<ServiceWorkerProviderHost> provider_host_;
|
|
|
| + // Timing info to show on the popup in Devtools' Network tab.
|
| + net::LoadTimingInfo load_timing_info_;
|
| + base::TimeTicks fetch_start_time_;
|
| + base::TimeTicks fetch_ready_time_;
|
| + base::TimeTicks fetch_end_time_;
|
| + base::Time response_time_;
|
| +
|
| ResponseType response_type_;
|
| bool is_started_;
|
|
|
|
|