1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
6 // Multiply-included file, no traditional include guard.
9 #include "content/public/common/common_param_traits.h"
10 #include "ipc/ipc_channel_handle.h"
11 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_platform_file.h"
14 #include "xwalk/application/browser/application_security_policy.h"
16 // Singly-included section for enums and custom IPC traits.
17 #ifndef XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
18 #define XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
22 // TODO(upstream): - add enums and custom IPC traits here when needed.
26 #endif // XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
28 #define IPC_MESSAGE_START ViewMsgStart
30 IPC_ENUM_TRAITS(xwalk::application::ApplicationSecurityPolicy::SecurityMode)
31 //-----------------------------------------------------------------------------
32 // RenderView messages
33 // These are messages sent from the browser to the renderer process.
35 IPC_MESSAGE_CONTROL3(ViewMsg_SetAccessWhiteList, // NOLINT
38 bool /* allow_subdomains */)
40 IPC_MESSAGE_CONTROL2(ViewMsg_EnableSecurityMode, // NOLINT
41 GURL /* application url */,
42 xwalk::application::ApplicationSecurityPolicy::SecurityMode
45 IPC_MESSAGE_CONTROL1(ViewMsg_SuspendJSEngine, // NOLINT
46 bool /* is suspend */)
49 IPC_MESSAGE_CONTROL1(ViewMsg_UserAgentStringChanged, // NOLINT
50 std::string /*new user agent string*/)
53 IPC_MESSAGE_ROUTED1(ViewMsg_HWKeyPressed, int /*keycode*/) // NOLINT
55 // These are messages sent from the renderer to the browser process.
57 IPC_MESSAGE_CONTROL1(ViewMsg_OpenLinkExternal, // NOLINT
58 GURL /* target link */)
59 #endif // OS_TIZEN // NOLINT