| 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 "content/public/common/common_param_traits_macros.h" | 9 #include "content/public/common/common_param_traits_macros.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| 11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
| 12 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat
us.mojom.h" | 12 #include "third_party/WebKit/public/platform/modules/permissions/permission_stat
us.mojom.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 #include "url/ipc/url_param_traits.h" | 14 #include "url/ipc/url_param_traits.h" |
| 15 | 15 |
| 16 #define IPC_MESSAGE_START LayoutTestMsgStart | 16 #define IPC_MESSAGE_START LayoutTestMsgStart |
| 17 | 17 |
| 18 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_ReadFileToString, | 18 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_ReadFileToString, |
| 19 base::FilePath /* local path */, | 19 base::FilePath /* local path */, |
| 20 std::string /* contents */) | 20 std::string /* contents */) |
| 21 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_RegisterIsolatedFileSystem, | 21 IPC_SYNC_MESSAGE_ROUTED1_1(LayoutTestHostMsg_RegisterIsolatedFileSystem, |
| 22 std::vector<base::FilePath> /* absolute_filenames */, | 22 std::vector<base::FilePath> /* absolute_filenames */, |
| 23 std::string /* filesystem_id */) | 23 std::string /* filesystem_id */) |
| 24 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ClearAllDatabases) | 24 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ClearAllDatabases) |
| 25 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_SetDatabaseQuota, | 25 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_SetDatabaseQuota, |
| 26 int /* quota */) | 26 int /* quota */) |
| 27 IPC_MESSAGE_ROUTED2(LayoutTestHostMsg_SimulateWebNotificationClick, | 27 IPC_MESSAGE_ROUTED3(LayoutTestHostMsg_SimulateWebNotificationClick, |
| 28 std::string /* title */, | 28 std::string /* title */, |
| 29 int /* action_index */) | 29 int /* action_index */, |
| 30 base::NullableString16 /* reply */) |
| 30 IPC_MESSAGE_ROUTED2(LayoutTestHostMsg_SimulateWebNotificationClose, | 31 IPC_MESSAGE_ROUTED2(LayoutTestHostMsg_SimulateWebNotificationClose, |
| 31 std::string /* title */, | 32 std::string /* title */, |
| 32 bool /* by_user */) | 33 bool /* by_user */) |
| 33 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_BlockThirdPartyCookies, | 34 IPC_MESSAGE_ROUTED1(LayoutTestHostMsg_BlockThirdPartyCookies, |
| 34 bool /* block */) | 35 bool /* block */) |
| 35 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_DeleteAllCookies) | 36 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_DeleteAllCookies) |
| 36 IPC_MESSAGE_ROUTED4(LayoutTestHostMsg_SetPermission, | 37 IPC_MESSAGE_ROUTED4(LayoutTestHostMsg_SetPermission, |
| 37 std::string /* name */, | 38 std::string /* name */, |
| 38 blink::mojom::PermissionStatus /* status */, | 39 blink::mojom::PermissionStatus /* status */, |
| 39 GURL /* origin */, | 40 GURL /* origin */, |
| 40 GURL /* embedding_origin */) | 41 GURL /* embedding_origin */) |
| 41 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ResetPermissions) | 42 IPC_MESSAGE_ROUTED0(LayoutTestHostMsg_ResetPermissions) |
| 42 | 43 |
| 43 // Notifies the browser that one of renderers has changed layout test runtime | 44 // Notifies the browser that one of renderers has changed layout test runtime |
| 44 // flags (i.e. has set dump_as_text). | 45 // flags (i.e. has set dump_as_text). |
| 45 IPC_MESSAGE_CONTROL1( | 46 IPC_MESSAGE_CONTROL1( |
| 46 LayoutTestHostMsg_LayoutTestRuntimeFlagsChanged, | 47 LayoutTestHostMsg_LayoutTestRuntimeFlagsChanged, |
| 47 base::DictionaryValue /* changed_layout_test_runtime_flags */) | 48 base::DictionaryValue /* changed_layout_test_runtime_flags */) |
| 48 | 49 |
| 49 // Used send flag changes to renderers - either when | 50 // Used send flag changes to renderers - either when |
| 50 // 1) broadcasting change happening in one renderer to all other renderers, or | 51 // 1) broadcasting change happening in one renderer to all other renderers, or |
| 51 // 2) sending accumulated changes to a single new renderer. | 52 // 2) sending accumulated changes to a single new renderer. |
| 52 IPC_MESSAGE_CONTROL1( | 53 IPC_MESSAGE_CONTROL1( |
| 53 LayoutTestMsg_ReplicateLayoutTestRuntimeFlagsChanges, | 54 LayoutTestMsg_ReplicateLayoutTestRuntimeFlagsChanges, |
| 54 base::DictionaryValue /* changed_layout_test_runtime_flags */) | 55 base::DictionaryValue /* changed_layout_test_runtime_flags */) |
| 55 | 56 |
| 56 // Sent by secondary test window to notify the test has finished. | 57 // Sent by secondary test window to notify the test has finished. |
| 57 IPC_MESSAGE_CONTROL0(LayoutTestHostMsg_TestFinishedInSecondaryRenderer) | 58 IPC_MESSAGE_CONTROL0(LayoutTestHostMsg_TestFinishedInSecondaryRenderer) |
| OLD | NEW |