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

Side by Side Diff: chrome/test/automation/automation_messages_internal.h

Issue 174396: Fix another source of flakiness in ErrorPageTest (Closed)
Patch Set: Created 11 years, 3 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // Defines the IPC messages used by the automation interface. 5 // Defines the IPC messages used by the automation interface.
6 6
7 // This header is meant to be included in multiple passes, hence no traditional 7 // This header is meant to be included in multiple passes, hence no traditional
8 // header guard. 8 // header guard.
9 // See ipc_message_macros.h for explanation of the macros and passes. 9 // See ipc_message_macros.h for explanation of the macros and passes.
10 10
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // string, and the second parameter is the cookie name and value to be set. 75 // string, and the second parameter is the cookie name and value to be set.
76 // The return value is a non-negative value on success. 76 // The return value is a non-negative value on success.
77 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetCookie, GURL, std::string, 77 IPC_SYNC_MESSAGE_ROUTED3_1(AutomationMsg_SetCookie, GURL, std::string,
78 int, int) 78 int, int)
79 79
80 // This message notifies the AutomationProvider to navigate to a specified 80 // This message notifies the AutomationProvider to navigate to a specified
81 // url in the tab with given handle. The first parameter is the handle to 81 // url in the tab with given handle. The first parameter is the handle to
82 // the tab resource. The second parameter is the target url. The return 82 // the tab resource. The second parameter is the target url. The return
83 // value contains a status code which is nonnegative on success. 83 // value contains a status code which is nonnegative on success.
84 // See AutomationMsg_NavigationResponseValues for the return value. 84 // See AutomationMsg_NavigationResponseValues for the return value.
85 //
86 // Deprecated in favor of
87 // AutomationMsg_NavigateToURLBlockUntilNavigationsComplete.
85 // TODO(phajdan.jr): Remove when the reference build gets updated. 88 // TODO(phajdan.jr): Remove when the reference build gets updated.
86 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigateToURL, int, GURL, 89 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigateToURL, int, GURL,
87 AutomationMsg_NavigationResponseValues) 90 AutomationMsg_NavigationResponseValues)
88 91
89 // This message is used to implement the asynchronous version of 92 // This message is used to implement the asynchronous version of
90 // NavigateToURL. 93 // NavigateToURL.
91 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigationAsync, 94 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_NavigationAsync,
92 int /* tab handle */, 95 int /* tab handle */,
93 GURL, 96 GURL,
94 bool /* result */) 97 bool /* result */)
95 98
96 // This message notifies the AutomationProvider to navigate back in session 99 // This message notifies the AutomationProvider to navigate back in session
97 // history in the tab with given handle. The first parameter is the handle 100 // history in the tab with given handle. The first parameter is the handle
98 // to the tab resource. The return value contains a status code which is 101 // to the tab resource.
99 // nonnegative on success. 102 // See AutomationMsg_NavigationResponseValues for the navigation response
100 // see AutomationMsg_NavigationResponseValues for the navigation response
101 // values. 103 // values.
104 //
105 // Deprecated in favor of AutomationMsg_GoBackBlockUntilNavigationsComplete.
106 // TODO(phajdan.jr): Remove when the reference build gets updated.
102 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GoBack, int, 107 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GoBack, int,
103 AutomationMsg_NavigationResponseValues) 108 AutomationMsg_NavigationResponseValues)
104 109
105 // This message notifies the AutomationProvider to navigate forward in session 110 // This message notifies the AutomationProvider to navigate forward in session
106 // history in the tab with given handle. The first parameter is the handle 111 // history in the tab with given handle. The first parameter is the handle
107 // to the tab resource. The response contains a status code which is 112 // to the tab resource.
108 // nonnegative on success. 113 // See AutomationMsg_NavigationResponseValues for the navigation response
109 // see AutomationMsg_NavigationResponseValues for the navigation response
110 // values. 114 // values.
115 //
116 // Deprecated in favor of
117 // AutomationMsg_GoForwardBlockUntilNavigationsComplete.
118 // TODO(phajdan.jr): Remove when the reference build gets updated.
111 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GoForward, int, 119 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GoForward, int,
112 AutomationMsg_NavigationResponseValues) 120 AutomationMsg_NavigationResponseValues)
113 121
114 // This message requests the number of browser windows that the app currently 122 // This message requests the number of browser windows that the app currently
115 // has open. The return value is the number of windows. 123 // has open. The return value is the number of windows.
116 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_BrowserWindowCount, int) 124 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_BrowserWindowCount, int)
117 125
118 // This message requests the handle (int64 app-unique identifier) of the 126 // This message requests the handle (int64 app-unique identifier) of the
119 // window with the given (zero-based) index. On error, the returned handle 127 // window with the given (zero-based) index. On error, the returned handle
120 // value is 0. 128 // value is 0.
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1033 // - bool: whether the operation was successful. 1041 // - bool: whether the operation was successful.
1034 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_WaitForBrowserWindowCountToBecome, 1042 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_WaitForBrowserWindowCountToBecome,
1035 int, bool) 1043 int, bool)
1036 1044
1037 // This message requests the provider to wait until an application modal 1045 // This message requests the provider to wait until an application modal
1038 // dialog is shown. 1046 // dialog is shown.
1039 // Response: 1047 // Response:
1040 // - bool: whether the operation was successful 1048 // - bool: whether the operation was successful
1041 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_WaitForAppModalDialogToBeShown, bool) 1049 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_WaitForAppModalDialogToBeShown, bool)
1042 1050
1051 // This message notifies the AutomationProvider to navigate back in session
1052 // history in the tab with given handle. The first parameter is the handle
1053 // to the tab resource. The second parameter is the number of navigations the
1054 // provider will wait for.
1055 // See AutomationMsg_NavigationResponseValues for the navigation response
1056 // values.
1057 IPC_SYNC_MESSAGE_ROUTED2_1(AutomationMsg_GoBackBlockUntilNavigationsComplete,
1058 int, int,
1059 AutomationMsg_NavigationResponseValues)
1060
1061 // This message notifies the AutomationProvider to navigate forward in session
1062 // history in the tab with given handle. The first parameter is the handle
1063 // to the tab resource. The second parameter is the number of navigations
1064 // the provider will wait for.
1065 // See AutomationMsg_NavigationResponseValues for the navigation response
1066 // values.
1067 IPC_SYNC_MESSAGE_ROUTED2_1(
1068 AutomationMsg_GoForwardBlockUntilNavigationsComplete, int, int,
1069 AutomationMsg_NavigationResponseValues)
1070
1043 IPC_END_MESSAGES(Automation) 1071 IPC_END_MESSAGES(Automation)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698