OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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.h" | 9 #include "content/public/common/common_param_traits.h" |
| 10 #include "content/public/common/page_state.h" |
10 #include "content/shell/common/shell_test_configuration.h" | 11 #include "content/shell/common/shell_test_configuration.h" |
11 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
12 #include "ipc/ipc_platform_file.h" | 13 #include "ipc/ipc_platform_file.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
14 | 15 |
15 #define IPC_MESSAGE_START ShellMsgStart | 16 #define IPC_MESSAGE_START ShellMsgStart |
16 | 17 |
17 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration) | 18 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration) |
18 IPC_STRUCT_TRAITS_MEMBER(current_working_directory) | 19 IPC_STRUCT_TRAITS_MEMBER(current_working_directory) |
19 IPC_STRUCT_TRAITS_MEMBER(temp_path) | 20 IPC_STRUCT_TRAITS_MEMBER(temp_path) |
(...skipping 24 matching lines...) Expand all Loading... |
44 // notifyDone(). | 45 // notifyDone(). |
45 IPC_MESSAGE_ROUTED0(ShellViewMsg_NotifyDone) | 46 IPC_MESSAGE_ROUTED0(ShellViewMsg_NotifyDone) |
46 | 47 |
47 // Pushes a snapshot of the current session history from the browser process. | 48 // Pushes a snapshot of the current session history from the browser process. |
48 // This includes only information about those RenderViews that are in the | 49 // This includes only information about those RenderViews that are in the |
49 // same process as the main window of the layout test and that are the current | 50 // same process as the main window of the layout test and that are the current |
50 // active RenderView of their WebContents. | 51 // active RenderView of their WebContents. |
51 IPC_MESSAGE_ROUTED3( | 52 IPC_MESSAGE_ROUTED3( |
52 ShellViewMsg_SessionHistory, | 53 ShellViewMsg_SessionHistory, |
53 std::vector<int> /* routing_ids */, | 54 std::vector<int> /* routing_ids */, |
54 std::vector<std::vector<std::string> > /* session_histories */, | 55 std::vector<std::vector<content::PageState> > /* session_histories */, |
55 std::vector<unsigned> /* current_entry_indexes */) | 56 std::vector<unsigned> /* current_entry_indexes */) |
56 | 57 |
57 // Send a text dump of the WebContents to the render host. | 58 // Send a text dump of the WebContents to the render host. |
58 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, | 59 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, |
59 std::string /* dump */) | 60 std::string /* dump */) |
60 | 61 |
61 // Send an image dump of the WebContents to the render host. | 62 // Send an image dump of the WebContents to the render host. |
62 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, | 63 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, |
63 std::string /* actual pixel hash */, | 64 std::string /* actual pixel hash */, |
64 SkBitmap /* image */) | 65 SkBitmap /* image */) |
(...skipping 30 matching lines...) Expand all Loading... |
95 std::string /* frame_name */) | 96 std::string /* frame_name */) |
96 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ClearAllDatabases) | 97 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ClearAllDatabases) |
97 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDatabaseQuota, | 98 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDatabaseQuota, |
98 int /* quota */) | 99 int /* quota */) |
99 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AcceptAllCookies, | 100 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_AcceptAllCookies, |
100 bool /* accept */) | 101 bool /* accept */) |
101 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDeviceScaleFactor, | 102 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetDeviceScaleFactor, |
102 float /* factor */) | 103 float /* factor */) |
103 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CaptureSessionHistory) | 104 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CaptureSessionHistory) |
104 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseRemainingWindows) | 105 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseRemainingWindows) |
OLD | NEW |