Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Side by Side Diff: content/shell/common/shell_messages.h

Issue 1736353002: ABANDONED CL: Shared-memory-based approach to layout tests runtime flags replication. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/test_runner/layout_dump_flags.h"
10 #include "content/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
11 #include "content/public/common/page_state.h" 10 #include "content/public/common/page_state.h"
12 #include "content/shell/common/leak_detection_result.h" 11 #include "content/shell/common/leak_detection_result.h"
13 #include "content/shell/common/shell_test_configuration.h" 12 #include "content/shell/common/shell_test_configuration.h"
14 #include "ipc/ipc_message_macros.h" 13 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_platform_file.h" 14 #include "ipc/ipc_platform_file.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "ui/gfx/ipc/gfx_param_traits.h" 16 #include "ui/gfx/ipc/gfx_param_traits.h"
18 17
19 #define IPC_MESSAGE_START ShellMsgStart 18 #define IPC_MESSAGE_START ShellMsgStart
20 19
21 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration) 20 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration)
22 IPC_STRUCT_TRAITS_MEMBER(current_working_directory) 21 IPC_STRUCT_TRAITS_MEMBER(current_working_directory)
23 IPC_STRUCT_TRAITS_MEMBER(temp_path) 22 IPC_STRUCT_TRAITS_MEMBER(temp_path)
24 IPC_STRUCT_TRAITS_MEMBER(test_url) 23 IPC_STRUCT_TRAITS_MEMBER(test_url)
25 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping) 24 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping)
26 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages) 25 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages)
27 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash) 26 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash)
28 IPC_STRUCT_TRAITS_MEMBER(initial_size) 27 IPC_STRUCT_TRAITS_MEMBER(initial_size)
29 IPC_STRUCT_TRAITS_END() 28 IPC_STRUCT_TRAITS_MEMBER(layout_dump_flags_memory_handle)
30
31 IPC_STRUCT_TRAITS_BEGIN(test_runner::LayoutDumpFlags)
32 IPC_STRUCT_TRAITS_MEMBER(dump_as_text)
33 IPC_STRUCT_TRAITS_MEMBER(dump_child_frames_as_text)
34 IPC_STRUCT_TRAITS_MEMBER(dump_as_markup)
35 IPC_STRUCT_TRAITS_MEMBER(dump_child_frames_as_markup)
36 IPC_STRUCT_TRAITS_MEMBER(dump_child_frame_scroll_positions)
37 IPC_STRUCT_TRAITS_MEMBER(is_printing)
38 IPC_STRUCT_TRAITS_END() 29 IPC_STRUCT_TRAITS_END()
39 30
40 // Tells the renderer to reset all test runners. 31 // Tells the renderer to reset all test runners.
41 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset) 32 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset)
42 33
43 // Sets the path to the WebKit checkout. 34 // Sets the path to the WebKit checkout.
44 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir, 35 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir,
45 base::FilePath /* webkit source dir */) 36 base::FilePath /* webkit source dir */)
46 37
47 // Sets the test config for a layout test that is being started. 38 // Sets the test config for a layout test that is being started.
(...skipping 14 matching lines...) Expand all
62 // active RenderView of their WebContents. 53 // active RenderView of their WebContents.
63 IPC_MESSAGE_ROUTED3( 54 IPC_MESSAGE_ROUTED3(
64 ShellViewMsg_SessionHistory, 55 ShellViewMsg_SessionHistory,
65 std::vector<int> /* routing_ids */, 56 std::vector<int> /* routing_ids */,
66 std::vector<std::vector<content::PageState> > /* session_histories */, 57 std::vector<std::vector<content::PageState> > /* session_histories */,
67 std::vector<unsigned> /* current_entry_indexes */) 58 std::vector<unsigned> /* current_entry_indexes */)
68 59
69 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection) 60 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection)
70 61
71 // Asks a frame to dump its contents into a string and send them back over IPC. 62 // Asks a frame to dump its contents into a string and send them back over IPC.
72 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpRequest, 63 IPC_MESSAGE_ROUTED0(ShellViewMsg_LayoutDumpRequest)
73 test_runner::LayoutDumpFlags)
74 64
75 // Notifies BlinkTestRunner that the layout dump has completed 65 // Notifies BlinkTestRunner that the layout dump has completed
76 // (and that it can proceed with finishing up the test). 66 // (and that it can proceed with finishing up the test).
77 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted, 67 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted,
78 std::string /* completed/stitched layout dump */) 68 std::string /* completed/stitched layout dump */)
79 69
80 // Send a text dump of the WebContents to the render host. 70 // Send a text dump of the WebContents to the render host.
81 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, 71 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump,
82 std::string /* dump */) 72 std::string /* dump */)
83 73
84 // Asks the browser process to perform a layout dump (potentially spanning 74 // Asks the browser process to perform a layout dump (potentially spanning
85 // multiple cross-process frames) using the given flags. This triggers 75 // multiple cross-process frames). This triggers multiple
86 // multiple ShellViewMsg_LayoutDumpRequest / ShellViewHostMsg_LayoutDumpResponse 76 // ShellViewMsg_LayoutDumpRequest / ShellViewHostMsg_LayoutDumpResponse messages
87 // messages and ends with sending of ShellViewMsg_LayoutDumpCompleted. 77 // and ends with sending of ShellViewMsg_LayoutDumpCompleted.
88 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_InitiateLayoutDump, 78 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_InitiateLayoutDump,
89 test_runner::LayoutDumpFlags) 79 bool /* dump_child_frames */)
90 80
91 // Sends a layout dump of a frame (response to ShellViewMsg_LayoutDumpRequest). 81 // Sends a layout dump of a frame (response to ShellViewMsg_LayoutDumpRequest).
92 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_LayoutDumpResponse, std::string /* dump */) 82 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_LayoutDumpResponse, std::string /* dump */)
93 83
94 // Send an image dump of the WebContents to the render host. 84 // Send an image dump of the WebContents to the render host.
95 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump, 85 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_ImageDump,
96 std::string /* actual pixel hash */, 86 std::string /* actual pixel hash */,
97 SkBitmap /* image */) 87 SkBitmap /* image */)
98 88
99 // Send an audio dump to the render host. 89 // Send an audio dump to the render host.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 content::LeakDetectionResult /* result */) 124 content::LeakDetectionResult /* result */)
135 125
136 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser, 126 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser,
137 bool /* enable */) 127 bool /* enable */)
138 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents) 128 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents)
139 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents, 129 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents,
140 std::vector<std::string> /* events */) 130 std::vector<std::string> /* events */)
141 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent, 131 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent,
142 std::string /* event */, 132 std::string /* event */,
143 std::string /* argument */) 133 std::string /* argument */)
OLDNEW
« no previous file with comments | « content/shell/browser/layout_test/blink_test_controller.cc ('k') | content/shell/common/shell_test_configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698