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.
5 // Multiply-included file, no traditional include guard.
6 #include "content/public/common/common_param_traits.h"
7 #include "ipc/ipc_channel_handle.h"
8 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_platform_file.h"
11 #include "xwalk/application/common/security_policy.h"
13 // Singly-included section for enums and custom IPC traits.
14 #ifndef XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
15 #define XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
19 // TODO(upstream): - add enums and custom IPC traits here when needed.
23 #endif // XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
25 #define IPC_MESSAGE_START ViewMsgStart
27 IPC_ENUM_TRAITS(xwalk::application::SecurityPolicy::SecurityMode)
28 //-----------------------------------------------------------------------------
29 // RenderView messages
30 // These are messages sent from the browser to the renderer process.
32 IPC_MESSAGE_CONTROL3(ViewMsg_SetAccessWhiteList, // NOLINT
35 bool /* allow_subdomains */)
37 IPC_MESSAGE_CONTROL2(ViewMsg_EnableSecurityMode, // NOLINT
38 GURL /* application url */,
39 xwalk::application::SecurityPolicy::SecurityMode
42 IPC_MESSAGE_CONTROL1(ViewMsg_SuspendJSEngine, // NOLINT
43 bool /* is suspend */)
45 IPC_MESSAGE_ROUTED1(ViewMsg_HWKeyPressed, int /*keycode*/) // NOLINT
47 // These are messages sent from the renderer to the browser process.
49 IPC_MESSAGE_CONTROL1(ViewMsg_OpenLinkExternal, // NOLINT
50 GURL /* target link */)
51 #endif // OS_TIZEN // NOLINT