| 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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
| 6 #include <string> | 6 #include <string> |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "components/permission/public/interfaces/permission_status.mojom.h" |
| 9 #include "content/public/common/common_param_traits.h" | 10 #include "content/public/common/common_param_traits.h" |
| 10 #include "content/public/common/permission_status.mojom.h" | |
| 11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
| 12 #include "ipc/ipc_platform_file.h" | 12 #include "ipc/ipc_platform_file.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 #define IPC_MESSAGE_START LayoutTestMsgStart | 15 #define IPC_MESSAGE_START LayoutTestMsgStart |
| 16 | 16 |
| 17 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::PermissionStatus, | 17 IPC_ENUM_TRAITS_MIN_MAX_VALUE(permission::Status, |
| 18 content::PERMISSION_STATUS_GRANTED, | 18 permission::STATUS_GRANTED, |
| 19 content::PERMISSION_STATUS_ASK) | 19 permission::STATUS_ASK) |
| 20 | 20 |
| 21 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_ReadFileToString, | 21 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_ReadFileToString, |
| 22 base::FilePath /* local path */, | 22 base::FilePath /* local path */, |
| 23 std::string /* contents */) | 23 std::string /* contents */) |
| 24 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_RegisterIsolatedFileSystem, | 24 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_RegisterIsolatedFileSystem, |
| 25 std::vector<base::FilePath> /* absolute_filenames */, | 25 std::vector<base::FilePath> /* absolute_filenames */, |
| 26 std::string /* filesystem_id */) | 26 std::string /* filesystem_id */) |
| 27 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ClearAllDatabases) | 27 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ClearAllDatabases) |
| 28 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_SetDatabaseQuota, | 28 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_SetDatabaseQuota, |
| 29 int /* quota */) | 29 int /* quota */) |
| 30 IPC_MESSAGE_ROUTED2(LayoutTestHostMsg_SimulateWebNotificationClick, | 30 IPC_MESSAGE_ROUTED2(LayoutTestHostMsg_SimulateWebNotificationClick, |
| 31 std::string /* title */, | 31 std::string /* title */, |
| 32 int /* action_index */) | 32 int /* action_index */) |
| 33 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_AcceptAllCookies, | 33 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_AcceptAllCookies, |
| 34 bool /* accept */) | 34 bool /* accept */) |
| 35 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_DeleteAllCookies) | 35 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_DeleteAllCookies) |
| 36 IPC_MESSAGE_ROUTED4(LayoutTestHostMsg_SetPermission, | 36 IPC_MESSAGE_ROUTED4(LayoutTestHostMsg_SetPermission, |
| 37 std::string /* name */, | 37 std::string /* name */, |
| 38 content::PermissionStatus /* status */, | 38 permission::Status /* status */, |
| 39 GURL /* origin */, | 39 GURL /* origin */, |
| 40 GURL /* embedding_origin */ ) | 40 GURL /* embedding_origin */) |
| 41 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ResetPermissions) | 41 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ResetPermissions) |
| 42 IPC_MESSAGE_CONTROL1(LayoutTestHostMsg_SetBluetoothAdapter, | 42 IPC_MESSAGE_CONTROL1(LayoutTestHostMsg_SetBluetoothAdapter, |
| 43 std::string /* name */) | 43 std::string /* name */) |
| OLD | NEW |