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

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

Issue 2594913002: Replace IPC messages in layout_test_render_frame_observer. (Closed)
Patch Set: Removed a redundant line Created 3 years, 10 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
« no previous file with comments | « content/shell/common/layout_test.mojom ('k') | content/shell/common/shell_test_configuration.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/values.h" 9 #include "base/values.h"
10 #include "content/public/common/common_param_traits.h" 10 #include "content/public/common/common_param_traits.h"
11 #include "content/public/common/page_state.h" 11 #include "content/public/common/page_state.h"
12 #include "content/shell/common/leak_detection_result.h" 12 #include "content/shell/common/leak_detection_result.h"
13 #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 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" 17 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h"
19 18
20 #define IPC_MESSAGE_START ShellMsgStart 19 #define IPC_MESSAGE_START ShellMsgStart
21 20
22 IPC_STRUCT_TRAITS_BEGIN(content::ShellTestConfiguration)
23 IPC_STRUCT_TRAITS_MEMBER(current_working_directory)
24 IPC_STRUCT_TRAITS_MEMBER(temp_path)
25 IPC_STRUCT_TRAITS_MEMBER(test_url)
26 IPC_STRUCT_TRAITS_MEMBER(enable_pixel_dumping)
27 IPC_STRUCT_TRAITS_MEMBER(allow_external_pages)
28 IPC_STRUCT_TRAITS_MEMBER(expected_pixel_hash)
29 IPC_STRUCT_TRAITS_MEMBER(initial_size)
30 IPC_STRUCT_TRAITS_END()
31
32 // Tells the renderer to reset all test runners. 21 // Tells the renderer to reset all test runners.
33 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset) 22 IPC_MESSAGE_ROUTED0(ShellViewMsg_Reset)
34 23
35 // Sets the path to the WebKit checkout. 24 // Sets the path to the WebKit checkout.
36 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir, 25 IPC_MESSAGE_CONTROL1(ShellViewMsg_SetWebKitSourceDir,
37 base::FilePath /* webkit source dir */) 26 base::FilePath /* webkit source dir */)
38 27
39 // Sets the test config for a layout test that is being started. This message
40 // is sent only to a renderer that hosts parts of the main test window.
41 IPC_MESSAGE_ROUTED1(ShellViewMsg_SetTestConfiguration,
42 content::ShellTestConfiguration)
43
44 // Replicates test config (for an already started test) to a new renderer
45 // that hosts parts of the main test window.
46 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplicateTestConfiguration,
47 content::ShellTestConfiguration)
48
49 // Sets up a secondary renderer (renderer that doesn't [yet] host parts of the
50 // main test window) for a layout test.
51 IPC_MESSAGE_ROUTED0(ShellViewMsg_SetupSecondaryRenderer)
52
53 // Tells the main window that a secondary renderer in a different process asked 28 // Tells the main window that a secondary renderer in a different process asked
54 // to finish the test. 29 // to finish the test.
55 IPC_MESSAGE_ROUTED0(ShellViewMsg_TestFinishedInSecondaryRenderer) 30 IPC_MESSAGE_ROUTED0(ShellViewMsg_TestFinishedInSecondaryRenderer)
56 31
57 // Pushes a snapshot of the current session history from the browser process. 32 // Pushes a snapshot of the current session history from the browser process.
58 // This includes only information about those RenderViews that are in the 33 // This includes only information about those RenderViews that are in the
59 // same process as the main window of the layout test and that are the current 34 // same process as the main window of the layout test and that are the current
60 // active RenderView of their WebContents. 35 // active RenderView of their WebContents.
61 IPC_MESSAGE_ROUTED3( 36 IPC_MESSAGE_ROUTED3(
62 ShellViewMsg_SessionHistory, 37 ShellViewMsg_SessionHistory,
63 std::vector<int> /* routing_ids */, 38 std::vector<int> /* routing_ids */,
64 std::vector<std::vector<content::PageState> > /* session_histories */, 39 std::vector<std::vector<content::PageState> > /* session_histories */,
65 std::vector<unsigned> /* current_entry_indexes */) 40 std::vector<unsigned> /* current_entry_indexes */)
66 41
67 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection) 42 IPC_MESSAGE_ROUTED0(ShellViewMsg_TryLeakDetection)
68 43
69 // Asks a frame to dump its contents into a string and send them back over IPC.
70 IPC_MESSAGE_ROUTED0(ShellViewMsg_LayoutDumpRequest)
71
72 // Notifies BlinkTestRunner that the layout dump has completed 44 // Notifies BlinkTestRunner that the layout dump has completed
73 // (and that it can proceed with finishing up the test). 45 // (and that it can proceed with finishing up the test).
74 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted, 46 IPC_MESSAGE_ROUTED1(ShellViewMsg_LayoutDumpCompleted,
75 std::string /* completed/stitched layout dump */) 47 std::string /* completed/stitched layout dump */)
76 48
77 // Send a text dump of the WebContents to the render host. 49 // Send a text dump of the WebContents to the render host.
78 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump, 50 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_TextDump,
79 std::string /* dump */) 51 std::string /* dump */)
80 52
81 // Asks the browser process to perform a layout dump spanning all the 53 // Asks the browser process to perform a layout dump spanning all the
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 content::LeakDetectionResult /* result */) 103 content::LeakDetectionResult /* result */)
132 104
133 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser, 105 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_SetBluetoothManualChooser,
134 bool /* enable */) 106 bool /* enable */)
135 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents) 107 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_GetBluetoothManualChooserEvents)
136 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents, 108 IPC_MESSAGE_ROUTED1(ShellViewMsg_ReplyBluetoothManualChooserEvents,
137 std::vector<std::string> /* events */) 109 std::vector<std::string> /* events */)
138 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent, 110 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_SendBluetoothManualChooserEvent,
139 std::string /* event */, 111 std::string /* event */,
140 std::string /* argument */) 112 std::string /* argument */)
OLDNEW
« no previous file with comments | « content/shell/common/layout_test.mojom ('k') | content/shell/common/shell_test_configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698