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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.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
« no previous file with comments | « third_party/WebKit/public/web/modules/serviceworker/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
index 1028a5923fc0c8a281c4f294f958516a6837b193..9a0efeb9f38e1902d034603f1d57bf984871b6c9 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
@@ -31,6 +31,7 @@
#ifndef WebServiceWorkerContextProxy_h
#define WebServiceWorkerContextProxy_h
+#include "base/time/time.h"
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/modules/serviceworker/WebServiceWorker.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerRegistration.h"
@@ -46,6 +47,7 @@ struct WebNotificationData;
struct WebPaymentAppRequestData;
struct WebServiceWorkerClientInfo;
struct WebServiceWorkerError;
+class WebURL;
class WebURLResponse;
// A proxy interface to talk to the worker's GlobalScope implementation.
@@ -100,6 +102,10 @@ class WebServiceWorkerContextProxy {
virtual void dispatchPaymentRequestEvent(int eventID,
const WebPaymentAppRequestData&) = 0;
+ virtual void onNavigationPreloadSent(int fetchEventID,
falken 2017/01/19 13:40:58 nit: probably worth a comment that sentTimestamp a
horo 2017/01/19 14:33:04 Done.
+ const WebURL&,
+ base::TimeTicks sentTimestamp,
+ base::Time sentWallTime) = 0;
virtual void onNavigationPreloadResponse(
int fetchEventID,
std::unique_ptr<WebURLResponse>,
@@ -107,6 +113,7 @@ class WebServiceWorkerContextProxy {
virtual void onNavigationPreloadError(
int fetchEventID,
std::unique_ptr<WebServiceWorkerError>) = 0;
+ virtual void onNavigationPreloadCompleted(int fetchEventID) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/public/web/modules/serviceworker/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698