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

Side by Side Diff: content/common/push_messaging_messages.h

Issue 219653002: Push API: send and receive IPC messages for registration. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address review comments. Created 6 years, 8 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
(Empty)
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.
4
5 // IPC messages for push messaging.
6 // Multiply-included message file, hence no include guard.
7
8 #include "content/public/common/push_messaging_status.h"
9 #include "ipc/ipc_message_macros.h"
10
11 #define IPC_MESSAGE_START PushMessagingMsgStart
12
13 IPC_ENUM_TRAITS_MAX_VALUE(content::PushMessagingStatus,
14 content::PUSH_MESSAGING_STATUS_UNKNOWN_ERROR)
15
16 // Messages sent from the browser to the renderer.
17
18 IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
19 int32 /* callbacks_id */,
20 std::string /* endpoint */,
21 std::string /* registration_id */)
22
23 IPC_MESSAGE_ROUTED2(PushMessagingMsg_RegisterError,
24 int32 /* callbacks_id */,
25 content::PushMessagingStatus /* status */)
26
27 // Messages sent from the renderer to the browser.
28
29 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_Register,
30 int32 /* routing_id */,
31 int32 /* callbacks_id */,
32 std::string /* sender_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698