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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h

Issue 2416843002: Implement FetchEvent.navigationPreload (Closed)
Patch Set: stop using nullable promise Created 4 years, 2 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/Source/web/ServiceWorkerGlobalScopeProxy.cpp ('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 6c23aaa37881965cc8eb6feb65bb30cb20c81062..50aec0e83bf61f4d268d12c0657b3dc5020f4a61 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h
@@ -39,10 +39,13 @@
namespace blink {
+class WebDataConsumerHandle;
class WebServiceWorkerRequest;
+class WebServiceWorkerResponse;
class WebString;
struct WebNotificationData;
struct WebServiceWorkerClientInfo;
+struct WebServiceWorkerError;
// A proxy interface to talk to the worker's GlobalScope implementation.
// All methods of this class must be called on the worker thread.
@@ -67,9 +70,9 @@ class WebServiceWorkerContextProxy {
const WebMessagePortChannelArray&,
std::unique_ptr<WebServiceWorker::Handle>) = 0;
virtual void dispatchInstallEvent(int eventID) = 0;
- virtual void dispatchFetchEvent(
- int fetchEventID,
- const WebServiceWorkerRequest& webRequest) = 0;
+ virtual void dispatchFetchEvent(int fetchEventID,
+ const WebServiceWorkerRequest& webRequest,
+ bool navigationPreloadSent) = 0;
virtual void dispatchForeignFetchEvent(
int fetchEventID,
const WebServiceWorkerRequest& webRequest) = 0;
@@ -92,6 +95,14 @@ class WebServiceWorkerContextProxy {
virtual void dispatchSyncEvent(int syncEventID,
const WebString& tag,
LastChanceOption) = 0;
+
+ virtual void onNavigationPreloadResponse(
+ int fetchEventID,
+ std::unique_ptr<WebServiceWorkerResponse>,
+ std::unique_ptr<WebDataConsumerHandle>) = 0;
+ virtual void onNavigationPreloadError(
+ int fetchEventID,
+ std::unique_ptr<WebServiceWorkerError>) = 0;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698