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/shell/shell_webpreferences.h" | 10 #include "content/shell/shell_webpreferences.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 std::string /* actual pixel hash */, | 52 std::string /* actual pixel hash */, |
53 SkBitmap /* image */) | 53 SkBitmap /* image */) |
54 | 54 |
55 // The main frame of the render view finished loading. | 55 // The main frame of the render view finished loading. |
56 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad) | 56 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DidFinishLoad) |
57 | 57 |
58 // Print a message from a layout test runner. | 58 // Print a message from a layout test runner. |
59 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_PrintMessage, | 59 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_PrintMessage, |
60 std::string /* message */) | 60 std::string /* message */) |
61 | 61 |
| 62 // Read a file and returns its contents. |
| 63 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_ReadFileToString, |
| 64 FilePath /* local path */, |
| 65 std::string /* contents */) |
| 66 |
62 // The following messages correspond to methods of the testRunner. | 67 // The following messages correspond to methods of the testRunner. |
63 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) | 68 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_NotifyDone) |
64 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) | 69 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpAsText) |
65 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) | 70 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_DumpChildFramesAsText) |
66 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) | 71 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_SetPrinting) |
67 IPC_MESSAGE_ROUTED1( | 72 IPC_MESSAGE_ROUTED1( |
68 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, | 73 ShellViewHostMsg_SetShouldStayOnPageAfterHandlingBeforeUnload, |
69 bool /* should_stay_on_page */) | 74 bool /* should_stay_on_page */) |
70 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) | 75 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_WaitUntilDone) |
71 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_OverridePreferences, | 76 IPC_MESSAGE_ROUTED1(ShellViewHostMsg_OverridePreferences, |
72 content::ShellWebPreferences /* preferences */) | 77 content::ShellWebPreferences /* preferences */) |
73 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CanOpenWindows) | 78 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CanOpenWindows) |
74 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ShowWebInspector) | 79 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_ShowWebInspector) |
75 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseWebInspector) | 80 IPC_MESSAGE_ROUTED0(ShellViewHostMsg_CloseWebInspector) |
76 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_RegisterIsolatedFileSystem, | 81 IPC_SYNC_MESSAGE_ROUTED1_1(ShellViewHostMsg_RegisterIsolatedFileSystem, |
77 std::vector<FilePath> /* absolute_filenames */, | 82 std::vector<FilePath> /* absolute_filenames */, |
78 std::string /* filesystem_id */) | 83 std::string /* filesystem_id */) |
79 | 84 |
80 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, | 85 IPC_MESSAGE_ROUTED2(ShellViewHostMsg_NotImplemented, |
81 std::string /* object_name */, | 86 std::string /* object_name */, |
82 std::string /* property_name */) | 87 std::string /* property_name */) |
OLD | NEW |