Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: content/browser/service_worker/service_worker_response_info.h

Issue 2684933011: M57: Add UseCounter for ServiceWorkerNavigationPreload. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_response_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_response_info.h
diff --git a/content/browser/service_worker/service_worker_response_info.h b/content/browser/service_worker/service_worker_response_info.h
index 380f028d68ffd6172ab0fa7c8259b62cca92fcd1..1d0d624c6916a0df66eeb605f706b225312b89db 100644
--- a/content/browser/service_worker/service_worker_response_info.h
+++ b/content/browser/service_worker/service_worker_response_info.h
@@ -32,7 +32,8 @@ class CONTENT_EXPORT ServiceWorkerResponseInfo
void GetExtraResponseInfo(ResourceResponseInfo* response_info) const;
void OnPrepareToRestart(base::TimeTicks service_worker_start_time,
- base::TimeTicks service_worker_ready_time);
+ base::TimeTicks service_worker_ready_time,
+ bool did_navigation_preload);
void OnStartCompleted(
bool was_fetched_via_service_worker,
bool was_fetched_via_foreign_fetch,
@@ -43,7 +44,8 @@ class CONTENT_EXPORT ServiceWorkerResponseInfo
base::TimeTicks service_worker_ready_time,
bool response_is_in_cache_storage,
const std::string& response_cache_storage_cache_name,
- const ServiceWorkerHeaderList& cors_exposed_header_names);
+ const ServiceWorkerHeaderList& cors_exposed_header_names,
+ bool did_navigation_preload);
void ResetData();
// Returns true if a service worker responded to the request. If the service
@@ -89,6 +91,7 @@ class CONTENT_EXPORT ServiceWorkerResponseInfo
const std::string& response_cache_storage_cache_name() const {
return response_cache_storage_cache_name_;
}
+ bool did_navigation_preload() const { return did_navigation_preload_; }
private:
ServiceWorkerResponseInfo();
@@ -104,6 +107,7 @@ class CONTENT_EXPORT ServiceWorkerResponseInfo
bool response_is_in_cache_storage_ = false;
std::string response_cache_storage_cache_name_;
ServiceWorkerHeaderList cors_exposed_header_names_;
+ bool did_navigation_preload_ = false;
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/service_worker/service_worker_response_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698