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

Unified 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: Clean up includes. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.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
new file mode 100644
index 0000000000000000000000000000000000000000..75b2b68472ac80ba8a83b3296188b585a3b5c63d
--- /dev/null
+++ b/content/common/push_messaging_messages.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for push messaging.
+// Multiply-included message file, hence no include guard.
+
+#include "ipc/ipc_message_macros.h"
+#include "url/gurl.h"
+
+#define IPC_MESSAGE_START PushMessagingMsgStart
+
+// Messages sent from the browser to the renderer.
+
+IPC_MESSAGE_ROUTED3(PushMessagingMsg_RegisterSuccess,
+ int32 /* callbacks_id */,
+ GURL /* endpoint */,
+ std::string /* registration_id */)
+
+IPC_MESSAGE_ROUTED1(PushMessagingMsg_RegisterError,
+ int32 /* callbacks_id */)
+
+// Messages sent from the renderer to the browser.
+
+IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_Register,
+ int32 /* routing_id */,
+ int32 /* callbacks_id */,
+ std::string /* sender_id */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698