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

Side by Side Diff: chrome/common/automation_messages_internal.h

Issue 7548024: Refactor: Make PyAuto InstallExtension() take a string. Delete dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixup per kkania. Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/automation_messages.cc ('k') | chrome/test/automation/automation_proxy.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 // Returns a metric event duration that was last recorded. Returns -1 if the 1121 // Returns a metric event duration that was last recorded. Returns -1 if the
1122 // event hasn't occurred yet. 1122 // event hasn't occurred yet.
1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration, 1123 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_GetMetricEventDuration,
1124 std::string /* event_name */, 1124 std::string /* event_name */,
1125 int /* duration ms */) 1125 int /* duration ms */)
1126 1126
1127 // Sent by automation provider - go to history entry via automation. 1127 // Sent by automation provider - go to history entry via automation.
1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset, 1128 IPC_MESSAGE_ROUTED1(AutomationMsg_RequestGoToHistoryEntryOffset,
1129 int) // numbers of entries (negative or positive) 1129 int) // numbers of entries (negative or positive)
1130 1130
1131 // Silently install the extension in the given crx file. 1131 // DEPRECATED MESSAGE.
1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_InstallExtension, 1132 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DEPRECATED_InstallExtension,
1133 FilePath /* full path to crx file */, 1133 FilePath /* full path to crx file */,
1134 AutomationMsg_ExtensionResponseValues) 1134 int)
1135 1135
1136 // DEPRECATED MESSAGE - But we must leave this comment and message so as 1136 // DEPRECATED MESSAGE - But we must leave this comment and message so as
1137 // not to perturb line numbers (see comment at top of file re __LINE__). 1137 // not to perturb line numbers (see comment at top of file re __LINE__).
1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DeprecatedMessageTwo, 1138 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_DeprecatedMessageTwo,
1139 int, 1139 int,
1140 int) 1140 int)
1141 1141
1142 // DEPRECATED MESSAGE - But we must leave this comment and message so as 1142 // DEPRECATED MESSAGE - But we must leave this comment and message so as
1143 // not to perturb line numbers (see comment at top of file re __LINE__). 1143 // not to perturb line numbers (see comment at top of file re __LINE__).
1144 // (intentionally blank line) 1144 // (intentionally blank line)
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 bool /* success */) 1293 bool /* success */)
1294 1294
1295 // Generic pyauto pattern to help avoid future addition of 1295 // Generic pyauto pattern to help avoid future addition of
1296 // automation messages. 1296 // automation messages.
1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest, 1297 IPC_SYNC_MESSAGE_CONTROL2_2(AutomationMsg_SendJSONRequest,
1298 int /* browser_handle */, 1298 int /* browser_handle */,
1299 std::string /* JSON request */, 1299 std::string /* JSON request */,
1300 std::string /* JSON response */, 1300 std::string /* JSON response */,
1301 bool /* success */) 1301 bool /* success */)
1302 1302
1303 // Installs an extension from the crx file and returns its id. 1303 // Installs an extension from a crx file or unpacked extension folder
1304 // On error, |extension handle| will be 0. 1304 // and returns its id. On error, |extension handle| will be 0.
1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_InstallExtensionAndGetHandle, 1305 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_InstallExtension,
1306 FilePath /* full path to crx file */, 1306 FilePath /* full path to crx or unpacked dir */,
1307 bool /* with UI */, 1307 bool /* with UI */,
1308 int /* extension handle */) 1308 int /* extension handle */)
1309 1309
1310 // Waits for the next extension test result. Sets |test result| as the 1310 // Waits for the next extension test result. Sets |test result| as the
1311 // received result and |message| as any accompanying message with the 1311 // received result and |message| as any accompanying message with the
1312 // result, which could be the empty string. 1312 // result, which could be the empty string.
1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_WaitForExtensionTestResult, 1313 IPC_SYNC_MESSAGE_CONTROL0_2(AutomationMsg_WaitForExtensionTestResult,
1314 bool /* test result */, 1314 bool /* test result */,
1315 std::string /* message */) 1315 std::string /* message */)
1316 1316
1317 // Uninstalls an extension. On success |success| is true. 1317 // Uninstalls an extension. On success |success| is true.
1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_UninstallExtension, 1318 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_UninstallExtension,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 // Sent when the renderer has completed or canceled a client redirect for a 1486 // Sent when the renderer has completed or canceled a client redirect for a
1487 // particular frame. This message may be sent multiple times for the same 1487 // particular frame. This message may be sent multiple times for the same
1488 // redirect. 1488 // redirect.
1489 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect, 1489 IPC_MESSAGE_ROUTED1(AutomationMsg_DidCompleteOrCancelClientRedirect,
1490 int64 /* frame_id */) 1490 int64 /* frame_id */)
1491 1491
1492 1492
1493 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. 1493 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE.
1494 // This is the section for renderer -> browser automation messages. If it is 1494 // This is the section for renderer -> browser automation messages. If it is
1495 // an automation <-> browser message, put it above this section. 1495 // an automation <-> browser message, put it above this section.
OLDNEW
« no previous file with comments | « chrome/common/automation_messages.cc ('k') | chrome/test/automation/automation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698