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

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

Issue 366323002: Push API: use an enum to indicate status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Tweak mock error message. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/push_messaging_message_filter.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // IPC messages for push messaging. 5 // IPC messages for push messaging.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "content/public/common/push_messaging_status.h"
8 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "url/gurl.h" 10 #include "url/gurl.h"
10 11
11 #define IPC_MESSAGE_START PushMessagingMsgStart 12 #define IPC_MESSAGE_START PushMessagingMsgStart
12 13
14 IPC_ENUM_TRAITS_MAX_VALUE(content::PushMessagingStatus,
15 content::PUSH_MESSAGING_STATUS_LAST)
16
13 // Messages sent from the browser to the renderer. 17 // Messages sent from the browser to the renderer.
14 18
15 IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess, 19 IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
16 int32 /* callbacks_id */, 20 int32 /* callbacks_id */,
17 GURL /* push_endpoint */, 21 GURL /* push_endpoint */,
18 std::string /* push_registration_id */) 22 std::string /* push_registration_id */)
19 23
20 IPC_MESSAGE_ROUTED1(PushMessagingMsg_RegisterError, 24 IPC_MESSAGE_ROUTED2(PushMessagingMsg_RegisterError,
21 int32 /* callbacks_id */) 25 int32 /* callbacks_id */,
26 content::PushMessagingStatus /* status */)
22 27
23 // Messages sent from the renderer to the browser. 28 // Messages sent from the renderer to the browser.
24 29
25 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_Register, 30 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_Register,
26 int32 /* render_frame_id */, 31 int32 /* render_frame_id */,
27 int32 /* callbacks_id */, 32 int32 /* callbacks_id */,
28 std::string /* sender_id */, 33 std::string /* sender_id */,
29 bool /* user_gesture */, 34 bool /* user_gesture */,
30 int32 /* service_worker_provider_id */) 35 int32 /* service_worker_provider_id */)
OLDNEW
« no previous file with comments | « content/browser/push_messaging_message_filter.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698