Upstream version 9.37.195.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / common / xwalk_common_messages.h
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 // 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"
10 #include "url/gurl.h"
11 #include "xwalk/application/common/security_policy.h"
12
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_
16
17 namespace IPC {
18
19 // TODO(upstream): - add enums and custom IPC traits here when needed.
20
21 }  // namespace IPC
22
23 #endif  // XWALK_RUNTIME_COMMON_XWALK_COMMON_MESSAGES_H_
24
25 #define IPC_MESSAGE_START ViewMsgStart
26
27 IPC_ENUM_TRAITS(xwalk::application::SecurityPolicy::SecurityMode)
28 //-----------------------------------------------------------------------------
29 // RenderView messages
30 // These are messages sent from the browser to the renderer process.
31
32 IPC_MESSAGE_CONTROL3(ViewMsg_SetAccessWhiteList,  // NOLINT
33                      GURL /* source */,
34                      GURL /* dest */,
35                      bool /* allow_subdomains */)
36
37 IPC_MESSAGE_CONTROL2(ViewMsg_EnableSecurityMode,    // NOLINT
38                      GURL /* application url */,
39                      xwalk::application::SecurityPolicy::SecurityMode
40                      /* security mode */)
41
42 IPC_MESSAGE_CONTROL1(ViewMsg_SuspendJSEngine,  // NOLINT
43                      bool /* is suspend */)
44
45 IPC_MESSAGE_ROUTED1(ViewMsg_HWKeyPressed, int /*keycode*/)  // NOLINT
46
47 // These are messages sent from the renderer to the browser process.
48 #if defined(OS_TIZEN)
49 IPC_MESSAGE_CONTROL1(ViewMsg_OpenLinkExternal,  // NOLINT
50                      GURL /* target link */)
51 #endif  // OS_TIZEN  // NOLINT