| OLD | NEW |
| 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 "content/public/common/push_messaging_status.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "third_party/WebKit/public/platform/WebPushPermissionStatus.h" | 10 #include "third_party/WebKit/public/platform/WebPushPermissionStatus.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError, | 55 IPC_MESSAGE_CONTROL1(PushMessagingMsg_GetPermissionStatusError, |
| 56 int32 /* request_id */) | 56 int32 /* request_id */) |
| 57 | 57 |
| 58 // Messages sent from the child process to the browser. | 58 // Messages sent from the child process to the browser. |
| 59 | 59 |
| 60 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument, | 60 IPC_MESSAGE_CONTROL5(PushMessagingHostMsg_RegisterFromDocument, |
| 61 int32 /* render_frame_id */, | 61 int32 /* render_frame_id */, |
| 62 int32 /* request_id */, | 62 int32 /* request_id */, |
| 63 std::string /* sender_id */, | 63 std::string /* sender_id */, |
| 64 bool /* user_gesture */, | 64 bool /* user_visible_only */, |
| 65 int32 /* service_worker_provider_id */) | 65 int32 /* service_worker_provider_id */) |
| 66 | 66 |
| 67 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_RegisterFromWorker, | 67 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_RegisterFromWorker, |
| 68 int32 /* request_id */, | 68 int32 /* request_id */, |
| 69 int64 /* service_worker_registration_id */) | 69 int64 /* service_worker_registration_id */) |
| 70 | 70 |
| 71 // TODO(mvanouwerkerk): Delete this after switching to the platform code path. | 71 // TODO(mvanouwerkerk): Delete this after switching to the platform code path. |
| 72 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_PermissionStatus, | 72 IPC_MESSAGE_CONTROL3(PushMessagingHostMsg_PermissionStatus, |
| 73 int32 /* render_frame_id */, | 73 int32 /* render_frame_id */, |
| 74 int32 /* service_worker_provider_id */, | 74 int32 /* service_worker_provider_id */, |
| 75 int32 /* permission_callback_id */) | 75 int32 /* permission_callback_id */) |
| 76 | 76 |
| 77 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus, | 77 IPC_MESSAGE_CONTROL2(PushMessagingHostMsg_GetPermissionStatus, |
| 78 int32 /* request_id */, | 78 int32 /* request_id */, |
| 79 int64 /* service_worker_registration_id */) | 79 int64 /* service_worker_registration_id */) |
| OLD | NEW |