OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Chrome-specific IPC messages for extensions. |
| 6 // Extension-related messages that aren't specific to Chrome live in |
| 7 // extensions/common/extension_messages.h. |
| 8 // |
| 9 // Multiply-included message file, hence no include guard. |
| 10 |
| 11 #include "chrome/common/web_application_info.h" |
| 12 #include "ipc/ipc_message_macros.h" |
| 13 |
| 14 #define IPC_MESSAGE_START ChromeExtensionMsgStart |
| 15 |
| 16 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo::IconInfo) |
| 17 IPC_STRUCT_TRAITS_MEMBER(url) |
| 18 IPC_STRUCT_TRAITS_MEMBER(width) |
| 19 IPC_STRUCT_TRAITS_MEMBER(height) |
| 20 IPC_STRUCT_TRAITS_MEMBER(data) |
| 21 IPC_STRUCT_TRAITS_END() |
| 22 |
| 23 IPC_STRUCT_TRAITS_BEGIN(WebApplicationInfo) |
| 24 IPC_STRUCT_TRAITS_MEMBER(title) |
| 25 IPC_STRUCT_TRAITS_MEMBER(description) |
| 26 IPC_STRUCT_TRAITS_MEMBER(app_url) |
| 27 IPC_STRUCT_TRAITS_MEMBER(icons) |
| 28 IPC_STRUCT_TRAITS_END() |
| 29 |
| 30 // Messages sent from the browser to the renderer. |
| 31 |
| 32 // Requests application info for the page. The renderer responds back with |
| 33 // ExtensionHostMsg_DidGetApplicationInfo. |
| 34 IPC_MESSAGE_ROUTED1(ChromeExtensionMsg_GetApplicationInfo, |
| 35 int32 /* page_id */) |
| 36 |
| 37 // Messages sent from the renderer to the browser. |
| 38 |
| 39 IPC_MESSAGE_ROUTED2(ChromeExtensionHostMsg_DidGetApplicationInfo, |
| 40 int32 /* page_id */, |
| 41 WebApplicationInfo) |
OLD | NEW |