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

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

Issue 6294016: Move AutoFill messages into a separate file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 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 #include <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/file_util_proxy.h" 13 #include "base/file_util_proxy.h"
14 #include "base/nullable_string16.h" 14 #include "base/nullable_string16.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/sync_socket.h" 16 #include "base/sync_socket.h"
17 #include "chrome/common/content_settings.h" 17 #include "chrome/common/content_settings.h"
18 #include "chrome/common/geoposition.h" 18 #include "chrome/common/geoposition.h"
19 #include "chrome/common/nacl_types.h" 19 #include "chrome/common/nacl_types.h"
20 #include "chrome/common/notification_type.h" 20 #include "chrome/common/notification_type.h"
21 #include "chrome/common/page_zoom.h" 21 #include "chrome/common/page_zoom.h"
22 #include "chrome/common/translate_errors.h" 22 #include "chrome/common/translate_errors.h"
23 #include "chrome/common/window_container_type.h" 23 #include "chrome/common/window_container_type.h"
24 #include "ipc/ipc_message_macros.h" 24 #include "ipc/ipc_message_macros.h"
25 #include "media/audio/audio_buffers_state.h" 25 #include "media/audio/audio_buffers_state.h"
26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
29 #include "webkit/glue/context_menu.h" 29 #include "webkit/glue/context_menu.h"
30 #include "webkit/glue/form_data.h"
31 #include "webkit/glue/password_form_dom_manager.h"
32 #include "webkit/glue/webdropdata.h" 30 #include "webkit/glue/webdropdata.h"
33 #include "webkit/plugins/npapi/webplugininfo.h" 31 #include "webkit/plugins/npapi/webplugininfo.h"
34 32
35 #if defined(OS_POSIX) 33 #if defined(OS_POSIX)
36 #include "base/file_descriptor_posix.h" 34 #include "base/file_descriptor_posix.h"
37 #endif 35 #endif
38 36
39 #if defined(OS_MACOSX) 37 #if defined(OS_MACOSX)
40 #include "chrome/common/font_descriptor_mac.h" 38 #include "chrome/common/font_descriptor_mac.h"
41 #endif 39 #endif
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding, 456 IPC_MESSAGE_ROUTED1(ViewMsg_SetPageEncoding,
459 std::string /*new encoding name*/) 457 std::string /*new encoding name*/)
460 458
461 // Reset encoding of page in the renderer back to default. 459 // Reset encoding of page in the renderer back to default.
462 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault) 460 IPC_MESSAGE_ROUTED0(ViewMsg_ResetPageEncodingToDefault)
463 461
464 // Requests the renderer to reserve a range of page ids. 462 // Requests the renderer to reserve a range of page ids.
465 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange, 463 IPC_MESSAGE_ROUTED1(ViewMsg_ReservePageIDRange,
466 int /* size_of_range */) 464 int /* size_of_range */)
467 465
468 // Fill a form with data and optionally submit it
469 IPC_MESSAGE_ROUTED1(ViewMsg_FormFill,
470 webkit_glue::FormData /* form */)
471
472 // Fill a password form and prepare field autocomplete for multiple
473 // matching logins.
474 IPC_MESSAGE_ROUTED1(ViewMsg_FillPasswordForm,
475 webkit_glue::PasswordFormFillData)
476
477 // D&d drop target messages. 466 // D&d drop target messages.
478 IPC_MESSAGE_ROUTED4(ViewMsg_DragTargetDragEnter, 467 IPC_MESSAGE_ROUTED4(ViewMsg_DragTargetDragEnter,
479 WebDropData /* drop_data */, 468 WebDropData /* drop_data */,
480 gfx::Point /* client_pt */, 469 gfx::Point /* client_pt */,
481 gfx::Point /* screen_pt */, 470 gfx::Point /* screen_pt */,
482 WebKit::WebDragOperationsMask /* ops_allowed */) 471 WebKit::WebDragOperationsMask /* ops_allowed */)
483 IPC_MESSAGE_ROUTED3(ViewMsg_DragTargetDragOver, 472 IPC_MESSAGE_ROUTED3(ViewMsg_DragTargetDragOver,
484 gfx::Point /* client_pt */, 473 gfx::Point /* client_pt */,
485 gfx::Point /* screen_pt */, 474 gfx::Point /* screen_pt */,
486 WebKit::WebDragOperationsMask /* ops_allowed */) 475 WebKit::WebDragOperationsMask /* ops_allowed */)
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage, 681 IPC_MESSAGE_CONTROL3(AppCacheMsg_LogMessage,
693 int /* host_id */, 682 int /* host_id */,
694 int /* log_level */, 683 int /* log_level */,
695 std::string /* message */) 684 std::string /* message */)
696 685
697 // Notifies the renderer of the fact that AppCache access was blocked. 686 // Notifies the renderer of the fact that AppCache access was blocked.
698 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked, 687 IPC_MESSAGE_CONTROL2(AppCacheMsg_ContentBlocked,
699 int /* host_id */, 688 int /* host_id */,
700 GURL /* manifest_url */) 689 GURL /* manifest_url */)
701 690
702 // Reply to the ViewHostMsg_QueryFormFieldAutoFill message with the
703 // AutoFill suggestions.
704 IPC_MESSAGE_ROUTED5(ViewMsg_AutoFillSuggestionsReturned,
705 int /* id of the request message */,
706 std::vector<string16> /* names */,
707 std::vector<string16> /* labels */,
708 std::vector<string16> /* icons */,
709 std::vector<int> /* unique_ids */)
710
711 // Reply to the ViewHostMsg_FillAutoFillFormData message with the
712 // AutoFill form data.
713 IPC_MESSAGE_ROUTED2(ViewMsg_AutoFillFormDataFilled,
714 int /* id of the request message */,
715 webkit_glue::FormData /* form data */)
716
717 // Sent by the Browser process to alert a window about whether a it should 691 // Sent by the Browser process to alert a window about whether a it should
718 // allow a scripted window.close(). The renderer assumes every new window is a 692 // allow a scripted window.close(). The renderer assumes every new window is a
719 // blocked popup until notified otherwise. 693 // blocked popup until notified otherwise.
720 IPC_MESSAGE_ROUTED1(ViewMsg_AllowScriptToClose, 694 IPC_MESSAGE_ROUTED1(ViewMsg_AllowScriptToClose,
721 bool /* script_can_close */) 695 bool /* script_can_close */)
722 696
723 // Sent by AudioRendererHost to renderer to request an audio packet. 697 // Sent by AudioRendererHost to renderer to request an audio packet.
724 IPC_MESSAGE_ROUTED2(ViewMsg_RequestAudioPacket, 698 IPC_MESSAGE_ROUTED2(ViewMsg_RequestAudioPacket,
725 int /* stream id */, 699 int /* stream id */,
726 AudioBuffersState) 700 AudioBuffersState)
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 1631
1658 // Notification that the text selection has changed. 1632 // Notification that the text selection has changed.
1659 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged, 1633 IPC_MESSAGE_ROUTED1(ViewHostMsg_SelectionChanged,
1660 std::string /* currently selected text */) 1634 std::string /* currently selected text */)
1661 1635
1662 // Asks the browser to display the file chooser. The result is returned in a 1636 // Asks the browser to display the file chooser. The result is returned in a
1663 // ViewHost_RunFileChooserResponse message. 1637 // ViewHost_RunFileChooserResponse message.
1664 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser, 1638 IPC_MESSAGE_ROUTED1(ViewHostMsg_RunFileChooser,
1665 ViewHostMsg_RunFileChooser_Params) 1639 ViewHostMsg_RunFileChooser_Params)
1666 1640
1667 // Notification that forms have been seen that are candidates for
1668 // filling/submitting by the AutoFillManager.
1669 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormsSeen,
1670 std::vector<webkit_glue::FormData> /* forms */)
1671
1672 // Notification that password forms have been seen that are candidates for
1673 // filling/submitting by the password manager.
1674 IPC_MESSAGE_ROUTED1(ViewHostMsg_PasswordFormsFound,
1675 std::vector<webkit_glue::PasswordForm> /* forms */)
1676
1677 // Notification that initial layout has occurred and the following password
1678 // forms are visible on the page (e.g. not set to display:none.)
1679 IPC_MESSAGE_ROUTED1(ViewHostMsg_PasswordFormsVisible,
1680 std::vector<webkit_glue::PasswordForm> /* forms */)
1681
1682 // Notification that a form has been submitted. The user hit the button.
1683 IPC_MESSAGE_ROUTED1(ViewHostMsg_FormSubmitted,
1684 webkit_glue::FormData /* form */)
1685
1686 // Used to tell the parent the user started dragging in the content area. The 1641 // Used to tell the parent the user started dragging in the content area. The
1687 // WebDropData struct contains contextual information about the pieces of the 1642 // WebDropData struct contains contextual information about the pieces of the
1688 // page the user dragged. The parent uses this notification to initiate a 1643 // page the user dragged. The parent uses this notification to initiate a
1689 // drag session at the OS level. 1644 // drag session at the OS level.
1690 IPC_MESSAGE_ROUTED4(ViewHostMsg_StartDragging, 1645 IPC_MESSAGE_ROUTED4(ViewHostMsg_StartDragging,
1691 WebDropData /* drop_data */, 1646 WebDropData /* drop_data */,
1692 WebKit::WebDragOperationsMask /* ops_allowed */, 1647 WebKit::WebDragOperationsMask /* ops_allowed */,
1693 SkBitmap /* image */, 1648 SkBitmap /* image */,
1694 gfx::Point /* image_offset */) 1649 gfx::Point /* image_offset */)
1695 1650
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
2020 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_SwapCache, 1975 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_SwapCache,
2021 int /* host_id */, 1976 int /* host_id */,
2022 bool /* success */) 1977 bool /* success */)
2023 1978
2024 // Gets resource list from appcache synchronously. 1979 // Gets resource list from appcache synchronously.
2025 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_GetResourceList, 1980 IPC_SYNC_MESSAGE_CONTROL1_1(AppCacheMsg_GetResourceList,
2026 int /* host_id in*/, 1981 int /* host_id in*/,
2027 std::vector<appcache::AppCacheResourceInfo> 1982 std::vector<appcache::AppCacheResourceInfo>
2028 /* resources out */) 1983 /* resources out */)
2029 1984
2030 // Queries the browser for AutoFill suggestions for a form input field.
2031 IPC_MESSAGE_ROUTED3(ViewHostMsg_QueryFormFieldAutoFill,
2032 int /* id of this message */,
2033 webkit_glue::FormData /* the form */,
2034 webkit_glue::FormField /* the form field */)
2035
2036 // Sent when the popup with AutoFill suggestions for a form is shown.
2037 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidShowAutoFillSuggestions)
2038
2039 // Instructs the browser to fill in the values for a form using AutoFill
2040 // profile data.
2041 IPC_MESSAGE_ROUTED4(ViewHostMsg_FillAutoFillFormData,
2042 int /* id of this message */,
2043 webkit_glue::FormData /* the form */,
2044 webkit_glue::FormField /* the form field */,
2045 int /* profile unique ID */)
2046
2047 // Sent when a form is previewed or filled with AutoFill suggestions.
2048 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidFillAutoFillFormData)
2049
2050 // Instructs the browser to remove the specified Autocomplete entry from the
2051 // database.
2052 IPC_MESSAGE_ROUTED2(ViewHostMsg_RemoveAutocompleteEntry,
2053 string16 /* field name */,
2054 string16 /* value */)
2055
2056 // Instructs the browser to show the AutoFill dialog.
2057 IPC_MESSAGE_ROUTED0(ViewHostMsg_ShowAutoFillDialog)
2058
2059 // Get the list of proxies to use for |url|, as a semicolon delimited list 1985 // Get the list of proxies to use for |url|, as a semicolon delimited list
2060 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also 1986 // of "<TYPE> <HOST>:<PORT>" | "DIRECT". See also
2061 // PluginProcessHostMsg_ResolveProxy which does the same thing. 1987 // PluginProcessHostMsg_ResolveProxy which does the same thing.
2062 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy, 1988 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ResolveProxy,
2063 GURL /* url */, 1989 GURL /* url */,
2064 int /* network error */, 1990 int /* network error */,
2065 std::string /* proxy list */) 1991 std::string /* proxy list */)
2066 1992
2067 // Request that got sent to browser for creating an audio output stream 1993 // Request that got sent to browser for creating an audio output stream
2068 IPC_MESSAGE_ROUTED3(ViewHostMsg_CreateAudioStream, 1994 IPC_MESSAGE_ROUTED3(ViewHostMsg_CreateAudioStream,
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
2584 // The currently displayed PDF has an unsupported feature. 2510 // The currently displayed PDF has an unsupported feature.
2585 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) 2511 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature)
2586 2512
2587 // JavaScript related messages ----------------------------------------------- 2513 // JavaScript related messages -----------------------------------------------
2588 2514
2589 // Notify the JavaScript engine in the render to change its parameters 2515 // Notify the JavaScript engine in the render to change its parameters
2590 // while performing stress testing. 2516 // while performing stress testing.
2591 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2517 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2592 int /* cmd */, 2518 int /* cmd */,
2593 int /* param */) 2519 int /* param */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698