Use the provided connection type to determine if online.
[chromium-blink-merge.git] / content / common / push_messaging_messages.h
blob75b2b68472ac80ba8a83b3296188b585a3b5c63d
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
3 // found in the LICENSE file.
5 // IPC messages for push messaging.
6 // Multiply-included message file, hence no include guard.
8 #include "ipc/ipc_message_macros.h"
9 #include "url/gurl.h"
11 #define IPC_MESSAGE_START PushMessagingMsgStart
13 // Messages sent from the browser to the renderer.
15 IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
16 int32 /* callbacks_id */,
17 GURL /* endpoint */,
18 std::string /* registration_id */)
20 IPC_MESSAGE_ROUTED1(PushMessagingMsg_RegisterError,
21 int32 /* callbacks_id */)
23 // Messages sent from the renderer to the browser.
25 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_Register,
26 int32 /* routing_id */,
27 int32 /* callbacks_id */,
28 std::string /* sender_id */)