Make developerPrivate API available in stable.
[chromium-blink-merge.git] / content / common / service_worker_messages.h
blob0f1dd4bdb1dafd6977e02dd296c6f913dc7dd66d
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.
5 // Message definition file, included multiple times, hence no include guard.
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"
12 #define IPC_MESSAGE_START ServiceWorkerMsgStart
14 // Messages sent from the child process to the browser.
16 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_RegisterServiceWorker,
17 int32 /* callback_id */,
18 string16 /* scope */,
19 GURL /* script_url */)
21 IPC_MESSAGE_CONTROL2(ServiceWorkerHostMsg_UnregisterServiceWorker,
22 int32 /* callback_id */,
23 string16 /* scope (url pattern) */)
25 // Messages sent from the browser to the child process.
27 // Response to ServiceWorkerMsg_RegisterServiceWorker
28 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ServiceWorkerRegistered,
29 int32 /* callback_id */)
31 // Response to ServiceWorkerMsg_UnregisterServiceWorker
32 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ServiceWorkerUnregistered,
33 int32 /* callback_id */)