diff options
author | mvanouwerkerk@chromium.org <mvanouwerkerk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 15:39:31 +0000 |
---|---|---|
committer | mvanouwerkerk@chromium.org <mvanouwerkerk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-08 15:39:31 +0000 |
commit | e1c17416d0aa25b2646858f940fd89e461682fcd (patch) | |
tree | 0c677849500f797e291b6a89c242d49e0444023b /content/common/push_messaging_messages.h | |
parent | fbe8f0453d340032ea045c1be649ac9846399506 (diff) | |
download | chromium_src-e1c17416d0aa25b2646858f940fd89e461682fcd.zip chromium_src-e1c17416d0aa25b2646858f940fd89e461682fcd.tar.gz chromium_src-e1c17416d0aa25b2646858f940fd89e461682fcd.tar.bz2 |
Push API: send and receive IPC messages for registration.
BUG=350378
Review URL: https://codereview.chromium.org/219653002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/push_messaging_messages.h')
-rw-r--r-- | content/common/push_messaging_messages.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/content/common/push_messaging_messages.h b/content/common/push_messaging_messages.h new file mode 100644 index 0000000..75b2b68 --- /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 */) |