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 // Defines the IPC messages used by the automation interface. | 5 // Defines the IPC messages used by the automation interface. |
6 | 6 |
7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous | 7 // NOTE: All IPC messages have either a routing_id of 0 (for asynchronous |
8 // messages), or one that's been assigned by the proxy (for calls | 8 // messages), or one that's been assigned by the proxy (for calls |
9 // which expect a response). The routing_id shouldn't be used for | 9 // which expect a response). The routing_id shouldn't be used for |
10 // any other purpose in these message types. | 10 // any other purpose in these message types. |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 int /* opaque_cookie_id */) | 794 int /* opaque_cookie_id */) |
795 | 795 |
796 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, | 796 IPC_MESSAGE_CONTROL5(AutomationMsg_GetCookiesHostResponse, |
797 int /* tab_handle */, | 797 int /* tab_handle */, |
798 bool /* success */, | 798 bool /* success */, |
799 GURL /* url */, | 799 GURL /* url */, |
800 std::string /* cookies */, | 800 std::string /* cookies */, |
801 int /* opaque_cookie_id */) | 801 int /* opaque_cookie_id */) |
802 | 802 |
803 // Return the bookmarks encoded as a JSON string. | 803 // Return the bookmarks encoded as a JSON string. |
804 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_GetBookmarksAsJSON, | 804 IPC_SYNC_MESSAGE_CONTROL1_2(AutomationMsg_DEPRECATED_GetBookmarksAsJSON, |
805 int /* browser_handle */, | 805 int /* browser_handle */, |
806 std::string /* bookmarks as a JSON string */, | 806 std::string /* bookmarks as a JSON string */, |
807 bool /* success */) | 807 bool /* success */) |
808 | 808 |
809 // Wait for the bookmark model to load. | 809 // Wait for the bookmark model to load. |
810 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBookmarkModelToLoad, | 810 IPC_SYNC_MESSAGE_CONTROL1_1(AutomationMsg_WaitForBookmarkModelToLoad, |
811 int /* browser_handle */, | 811 int /* browser_handle */, |
812 bool /* success */) | 812 bool /* success */) |
813 | 813 |
814 // Bookmark addition, modification, and removal. | 814 // Bookmark addition, modification, and removal. |
815 // Bookmarks are indexed by their id. | 815 // Bookmarks are indexed by their id. |
816 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_AddBookmarkGroup, | 816 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_DEPRECATED_AddBookmarkGroup, |
817 int /* browser_handle */, | 817 int /* browser_handle */, |
818 int64 /* parent_id */, | 818 int64 /* parent_id */, |
819 int /* index */, | 819 int /* index */, |
820 std::wstring /* title */, | 820 std::wstring /* title */, |
821 bool /* success */) | 821 bool /* success */) |
822 IPC_SYNC_MESSAGE_CONTROL5_1(AutomationMsg_AddBookmarkURL, | 822 IPC_SYNC_MESSAGE_CONTROL5_1(AutomationMsg_DEPRECATED_AddBookmarkURL, |
823 int /* browser_handle */, | 823 int /* browser_handle */, |
824 int64 /* parent_id */, | 824 int64 /* parent_id */, |
825 int /* index */, | 825 int /* index */, |
826 std::wstring /* title */, | 826 std::wstring /* title */, |
827 GURL /* url */, | 827 GURL /* url */, |
828 bool /* success */) | 828 bool /* success */) |
829 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_ReparentBookmark, | 829 IPC_SYNC_MESSAGE_CONTROL4_1(AutomationMsg_DEPRECATED_ReparentBookmark, |
830 int /* browser_handle */, | 830 int /* browser_handle */, |
831 int64 /* id */, | 831 int64 /* id */, |
832 int64 /* new_parent_id */, | 832 int64 /* new_parent_id */, |
833 int /* index */, | 833 int /* index */, |
834 bool /* success */) | 834 bool /* success */) |
835 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetBookmarkTitle, | 835 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetBookmarkTitle, |
836 int /* browser_handle */, | 836 int /* browser_handle */, |
837 int64 /* id */, | 837 int64 /* id */, |
838 std::wstring /* title */, | 838 std::wstring /* title */, |
839 bool /* success */) | 839 bool /* success */) |
840 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_SetBookmarkURL, | 840 IPC_SYNC_MESSAGE_CONTROL3_1(AutomationMsg_DEPRECATED_SetBookmarkURL, |
841 int /* browser_handle */, | 841 int /* browser_handle */, |
842 int64 /* id */, | 842 int64 /* id */, |
843 GURL /* url */, | 843 GURL /* url */, |
844 bool /* success */) | 844 bool /* success */) |
845 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_RemoveBookmark, | 845 IPC_SYNC_MESSAGE_CONTROL2_1(AutomationMsg_DEPRECATED_RemoveBookmark, |
846 int /* browser_handle */, | 846 int /* browser_handle */, |
847 int64 /* id */, | 847 int64 /* id */, |
848 bool /* success */) | 848 bool /* success */) |
849 | 849 |
850 // This message informs the browser process to remove the history entries | 850 // This message informs the browser process to remove the history entries |
851 // for the specified types across all time ranges. See | 851 // for the specified types across all time ranges. See |
852 // browsing_data_remover.h for a list of REMOVE_* types supported in the | 852 // browsing_data_remover.h for a list of REMOVE_* types supported in the |
853 // remove_mask parameter. | 853 // remove_mask parameter. |
854 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData, | 854 IPC_MESSAGE_CONTROL1(AutomationMsg_RemoveBrowsingData, |
855 int) | 855 int) |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1001 | 1001 |
1002 // Sent when the automation mouse event has been processed. | 1002 // Sent when the automation mouse event has been processed. |
1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, | 1003 IPC_MESSAGE_ROUTED2(AutomationMsg_ProcessMouseEventACK, |
1004 bool /* success */, | 1004 bool /* success */, |
1005 std::string /* error message */) | 1005 std::string /* error message */) |
1006 | 1006 |
1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. | 1007 // YOUR NEW MESSAGE MIGHT NOT BELONG HERE. |
1008 // This is the section for renderer -> browser automation messages. If it is | 1008 // This is the section for renderer -> browser automation messages. If it is |
1009 // an automation <-> browser message, put it above this section. The "no line | 1009 // an automation <-> browser message, put it above this section. The "no line |
1010 // number change" applies only to the automation <-> browser messages. | 1010 // number change" applies only to the automation <-> browser messages. |
OLD | NEW |