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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/push_messaging_message_filter.cc ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/push_messaging_messages.h
diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h
index 29d8f80de8dcdcbab4c252e49d40120fdd8d1de1..cd5e93edb7b8531764e060fd7c70f7f187127089 100644
--- a/content/common/push_messaging_messages.h
+++ b/content/common/push_messaging_messages.h
@@ -5,11 +5,15 @@
// IPC messages for push messaging.
// Multiply-included message file, hence no include guard.
+#include "content/public/common/push_messaging_status.h"
#include "ipc/ipc_message_macros.h"
#include "url/gurl.h"
#define IPC_MESSAGE_START PushMessagingMsgStart
+IPC_ENUM_TRAITS_MAX_VALUE(content::PushMessagingStatus,
+ content::PUSH_MESSAGING_STATUS_LAST)
+
// Messages sent from the browser to the renderer.
IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
@@ -17,8 +21,9 @@ IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
GURL /* push_endpoint */,
std::string /* push_registration_id */)
-IPC_MESSAGE_ROUTED1(PushMessagingMsg_RegisterError,
- int32 /* callbacks_id */)
+IPC_MESSAGE_ROUTED2(PushMessagingMsg_RegisterError,
+ int32 /* callbacks_id */,
+ content::PushMessagingStatus /* status */)
// Messages sent from the renderer to the browser.
« 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