- add sources.
[platform/framework/web/crosswalk.git] / src / content / common / service_worker_messages.h
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Message definition file, included multiple times, hence no include guard.
6
7 #include "base/strings/string16.h"
8 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_param_traits.h"
10 #include "url/gurl.h"
11
12 #define IPC_MESSAGE_START ServiceWorkerMsgStart
13
14 // Messages sent from the child process to the browser.
15
16 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_RegisterServiceWorker,
17                      int32 /* thread_id */,
18                      int32 /* request_id */,
19                      GURL /* scope */,
20                      GURL /* script_url */)
21
22 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_UnregisterServiceWorker,
23                      int32 /* thread_id */,
24                      int32 /* request_id */,
25                      GURL /* scope (url pattern) */)
26
27 // Messages sent from the browser to the child process.
28
29 // Response to ServiceWorkerMsg_RegisterServiceWorker
30 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered,
31                      int32 /* thread_id */,
32                      int32 /* request_id */,
33                      int64 /* service_worker_id */)
34
35 // Response to ServiceWorkerMsg_UnregisterServiceWorker
36 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
37                      int32 /* thread_id */,
38                      int32 /* request_id */)