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

Unified Diff: content/common/service_worker/service_worker_messages.h

Issue 2443103002: service worker: Implement NavigationPreloadManager.getState (Closed)
Patch Set: rm file added in bad merge 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
Index: content/common/service_worker/service_worker_messages.h
diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h
index 0b858c9a37f0c8aeda5b32e24a3fc42fa5b3bb30..cf1887932bdada354677ebd92aaa9728c6663e89 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -195,6 +195,13 @@ IPC_MESSAGE_CONTROL5(ServiceWorkerHostMsg_EnableNavigationPreload,
int64_t /* registration_id */,
bool /* enable */)
+// Asks the browser to get navigation preload state for a registration.
+IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetNavigationPreloadState,
+ int /* thread_id */,
+ int /* request_id */,
+ int /* provider_id */,
+ int64_t /* registration_id */)
+
// Sends ExtendableMessageEvent to a service worker (renderer->browser).
IPC_MESSAGE_CONTROL5(
ServiceWorkerHostMsg_PostMessageToWorker,
@@ -491,6 +498,15 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError,
int /* request_id */,
blink::WebServiceWorkerError::ErrorType /* code */,
std::string /* message */)
+IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_DidGetNavigationPreloadState,
+ int /* thread_id */,
+ int /* request_id */,
+ bool /* enabled */)
+IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_GetNavigationPreloadStateError,
+ int /* thread_id */,
+ int /* request_id */,
+ blink::WebServiceWorkerError::ErrorType /* code */,
+ std::string /* message */)
// Sends MessageEvent to a client document (browser->renderer).
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument,
« no previous file with comments | « content/child/service_worker/web_service_worker_registration_impl.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698