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

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

Issue 113482: Adding the ability to alter Chrome's proxy settings via the automation interf... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 // The return value has an integer corresponding to the PID of the tab's 328 // The return value has an integer corresponding to the PID of the tab's
329 // renderer, 0 if the tab currently has no renderer process, or -1 on error. 329 // renderer, 0 if the tab currently has no renderer process, or -1 on error.
330 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabProcessID, 330 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_TabProcessID,
331 int /* tab_handle */, 331 int /* tab_handle */,
332 int /* process ID */) 332 int /* process ID */)
333 333
334 // This tells the browser to enable or disable the filtered network layer. 334 // This tells the browser to enable or disable the filtered network layer.
335 IPC_MESSAGE_ROUTED1(AutomationMsg_SetFilteredInet, 335 IPC_MESSAGE_ROUTED1(AutomationMsg_SetFilteredInet,
336 bool /* enabled */) 336 bool /* enabled */)
337 337
338 // This message tells the browser to start using the new proxy configuration
339 // represented by the given JSON string. The parameters used in the JSON
340 // string are defined in automation_constants.h.
341 IPC_SYNC_MESSAGE_ROUTED1_0(AutomationMsg_SetProxyConfig,
342 std::string /* proxy_config_json_string */)
343
338 // Gets the directory that downloads will occur in for the active profile. 344 // Gets the directory that downloads will occur in for the active profile.
339 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_DownloadDirectory, 345 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_DownloadDirectory,
340 int /* tab_handle */, 346 int /* tab_handle */,
341 std::wstring /* directory */) 347 std::wstring /* directory */)
342 348
343 // This message requests the id of the view that has the focus in the 349 // This message requests the id of the view that has the focus in the
344 // specified window. If no view is focused, -1 is returned. Note that the 350 // specified window. If no view is focused, -1 is returned. Note that the
345 // window should either be a ViewWindow or a Browser. 351 // window should either be a ViewWindow or a Browser.
346 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetFocusedViewID, 352 IPC_SYNC_MESSAGE_ROUTED1_1(AutomationMsg_GetFocusedViewID,
347 int /* view_handle */, 353 int /* view_handle */,
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 753
748 // Posts a message from external host to chrome renderer. 754 // Posts a message from external host to chrome renderer.
749 IPC_MESSAGE_ROUTED4(AutomationMsg_HandleMessageFromExternalHost, 755 IPC_MESSAGE_ROUTED4(AutomationMsg_HandleMessageFromExternalHost,
750 int /* automation handle */, 756 int /* automation handle */,
751 std::string /* message */, 757 std::string /* message */,
752 std::string /* origin */, 758 std::string /* origin */,
753 std::string /* target */) 759 std::string /* target */)
754 760
755 // A message for an external host. 761 // A message for an external host.
756 IPC_MESSAGE_ROUTED4(AutomationMsg_ForwardMessageToExternalHost, 762 IPC_MESSAGE_ROUTED4(AutomationMsg_ForwardMessageToExternalHost,
757 int, // handle 763 int, /* handle */
758 std::string /* message */, 764 std::string /* message */,
759 std::string /* origin */, 765 std::string /* origin */,
760 std::string /* target */) 766 std::string /* target */)
761 767
762 // This message starts a find within a tab corresponding to the supplied 768 // This message starts a find within a tab corresponding to the supplied
763 // tab handle. The parameter |request| specifies what to search for. 769 // tab handle. The parameter |request| specifies what to search for.
764 // If an error occurs, |matches_found| will be -1. 770 // If an error occurs, |matches_found| will be -1.
765 // 771 //
766 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_Find, 772 IPC_SYNC_MESSAGE_ROUTED2_2(AutomationMsg_Find,
767 int /* tab_handle */, 773 int /* tab_handle */,
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 // a valid normal browser window, i.e. normal type and non-incognito mode. 916 // a valid normal browser window, i.e. normal type and non-incognito mode.
911 // On error, the returned handle value is 0. 917 // On error, the returned handle value is 0.
912 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_FindNormalBrowserWindow, int) 918 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_FindNormalBrowserWindow, int)
913 919
914 // This message requests the number of normal browser windows, i.e. normal 920 // This message requests the number of normal browser windows, i.e. normal
915 // type and non-incognito mode that the app currently has open. The return 921 // type and non-incognito mode that the app currently has open. The return
916 // value is the number of windows. 922 // value is the number of windows.
917 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_NormalBrowserWindowCount, int) 923 IPC_SYNC_MESSAGE_ROUTED0_1(AutomationMsg_NormalBrowserWindowCount, int)
918 924
919 IPC_END_MESSAGES(Automation) 925 IPC_END_MESSAGES(Automation)
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_constants.h ('k') | chrome/test/automation/automation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698