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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: rebase and include time.h in ServiceWorkerGlobalScopeProxy.* Created 3 years, 11 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
Index: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
index 6a7fc6125a5a377ab45625d0aff3e263b1a67e3c..274e897e2b14ccf44f964e5f80c6496f07d12e80 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h
@@ -31,6 +31,7 @@
#ifndef ServiceWorkerGlobalScopeProxy_h
#define ServiceWorkerGlobalScopeProxy_h
+#include "base/time/time.h"
#include "core/workers/WorkerReportingProxy.h"
#include "platform/heap/Handle.h"
#include "platform/heap/HeapAllocator.h"
@@ -111,6 +112,10 @@ class ServiceWorkerGlobalScopeProxy final
void dispatchPaymentRequestEvent(int,
const WebPaymentAppRequestData&) override;
bool hasFetchEventHandler() override;
+ void onNavigationPreloadSent(int fetchEventID,
+ const WebURL&,
+ base::TimeTicks sentTimestamp,
+ base::Time sentWallTime) override;
void onNavigationPreloadResponse(
int fetchEventID,
std::unique_ptr<WebURLResponse>,
@@ -118,6 +123,7 @@ class ServiceWorkerGlobalScopeProxy final
void onNavigationPreloadError(
int fetchEventID,
std::unique_ptr<WebServiceWorkerError>) override;
+ void onNavigationPreloadCompleted(int fetchEventID) override;
// WorkerReportingProxy overrides:
void countFeature(UseCounter::Feature) override;

Powered by Google App Engine
This is Rietveld 408576698