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

Side by Side Diff: content/common/service_worker/service_worker_messages.h

Issue 205033002: Browser side of new ServiceWorker 'sync' event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include "base/strings/string16.h" 7 #include "base/strings/string16.h"
8 #include "content/common/service_worker/service_worker_status_code.h" 8 #include "content/common/service_worker/service_worker_status_code.h"
9 #include "content/common/service_worker/service_worker_types.h" 9 #include "content/common/service_worker/service_worker_types.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 base::string16 /* message */) 71 base::string16 /* message */)
72 72
73 // Sent via EmbeddedWorker to dispatch install event. 73 // Sent via EmbeddedWorker to dispatch install event.
74 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, 74 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
75 int /* active_version_embedded_worker_id */) 75 int /* active_version_embedded_worker_id */)
76 76
77 // Sent via EmbeddedWorker to dispatch fetch event. 77 // Sent via EmbeddedWorker to dispatch fetch event.
78 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent, 78 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_FetchEvent,
79 content::ServiceWorkerFetchRequest) 79 content::ServiceWorkerFetchRequest)
80 80
81 // Sent via EmbeddedWorker to dispatch sync event.
82 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_SyncEvent,
83 int /* active_version_embedded_worker_id */)
kinuko 2014/03/24 05:10:08 I don't really know what information this SyncEven
jkarlin 2014/03/25 18:28:17 Done.
84
81 // Informs the browser of a new ServiceWorkerProvider in the child process, 85 // Informs the browser of a new ServiceWorkerProvider in the child process,
82 // |provider_id| is unique within its child process. 86 // |provider_id| is unique within its child process.
83 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated, 87 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderCreated,
84 int /* provider_id */) 88 int /* provider_id */)
85 89
86 // Informs the browser of a ServiceWorkerProvider being destroyed. 90 // Informs the browser of a ServiceWorkerProvider being destroyed.
87 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed, 91 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_ProviderDestroyed,
88 int /* provider_id */) 92 int /* provider_id */)
89 93
90 // Informs the browser of a new scriptable API client in the child process. 94 // Informs the browser of a new scriptable API client in the child process.
91 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient, 95 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_AddScriptClient,
92 int /* thread_id */, 96 int /* thread_id */,
93 int /* provider_id */) 97 int /* provider_id */)
94 98
95 // Informs the browser that the scriptable API client is unregistered. 99 // Informs the browser that the scriptable API client is unregistered.
96 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient, 100 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_RemoveScriptClient,
97 int /* thread_id */, 101 int /* thread_id */,
98 int /* provider_id */) 102 int /* provider_id */)
99 103
100 // Informs the browser that install event handling has finished. 104 // Informs the browser that install event handling has finished.
101 // Sent via EmbeddedWorker. If there was an exception during the 105 // Sent via EmbeddedWorker. If there was an exception during the
102 // event handling it'll be reported back separately (to be propagated 106 // event handling it'll be reported back separately (to be propagated
103 // to the documents). 107 // to the documents).
104 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished) 108 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_InstallEventFinished)
105 109
106 // Informs the browser that fetch event handling has finished. 110 // Informs the browser that fetch event handling has finished.
107 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished, 111 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_FetchEventFinished,
108 content::ServiceWorkerFetchEventResult, 112 content::ServiceWorkerFetchEventResult,
109 content::ServiceWorkerResponse) 113 content::ServiceWorkerResponse)
114
115 // Informs the browser that sync event handling has finished.
116 IPC_MESSAGE_CONTROL0(ServiceWorkerHostMsg_SyncEventFinished)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698