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

Side by Side Diff: components/autofill/content/common/autofill_messages.h

Issue 286243002: Mac: Autofill should not immediately request access to address book. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from isherman. Created 6 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 IPC_STRUCT_TRAITS_MEMBER(password) 87 IPC_STRUCT_TRAITS_MEMBER(password)
88 IPC_STRUCT_TRAITS_MEMBER(realm) 88 IPC_STRUCT_TRAITS_MEMBER(realm)
89 IPC_STRUCT_TRAITS_END() 89 IPC_STRUCT_TRAITS_END()
90 90
91 IPC_ENUM_TRAITS_MAX_VALUE( 91 IPC_ENUM_TRAITS_MAX_VALUE(
92 blink::WebFormElement::AutocompleteResult, 92 blink::WebFormElement::AutocompleteResult,
93 blink::WebFormElement::AutocompleteResultErrorInvalid) 93 blink::WebFormElement::AutocompleteResultErrorInvalid)
94 94
95 // Autofill messages sent from the browser to the renderer. 95 // Autofill messages sent from the browser to the renderer.
96 96
97 // Instructs the renderer to immediately return an IPC acknowledging the ping.
98 // This is used to correctly sequence events, since IPCs are guaranteed to be
99 // processed in order.
100 IPC_MESSAGE_ROUTED0(AutofillMsg_Ping)
101
97 // Instructs the renderer to fill the active form with the given form data. 102 // Instructs the renderer to fill the active form with the given form data.
98 IPC_MESSAGE_ROUTED2(AutofillMsg_FillForm, 103 IPC_MESSAGE_ROUTED2(AutofillMsg_FillForm,
99 int /* query_id */, 104 int /* query_id */,
100 autofill::FormData /* form */) 105 autofill::FormData /* form */)
101 106
102 // Instructs the renderer to preview the active form with the given form data. 107 // Instructs the renderer to preview the active form with the given form data.
103 IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewForm, 108 IPC_MESSAGE_ROUTED2(AutofillMsg_PreviewForm,
104 int /* query_id */, 109 int /* query_id */,
105 autofill::FormData /* form */) 110 autofill::FormData /* form */)
106 111
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 IPC_MESSAGE_ROUTED5(AutofillHostMsg_QueryFormFieldAutofill, 219 IPC_MESSAGE_ROUTED5(AutofillHostMsg_QueryFormFieldAutofill,
215 int /* id of this message */, 220 int /* id of this message */,
216 autofill::FormData /* the form */, 221 autofill::FormData /* the form */,
217 autofill::FormFieldData /* the form field */, 222 autofill::FormFieldData /* the form field */,
218 gfx::RectF /* input field bounds, window-relative */, 223 gfx::RectF /* input field bounds, window-relative */,
219 bool /* display warning if autofill disabled */) 224 bool /* display warning if autofill disabled */)
220 225
221 // Sent when a form is previewed with Autofill suggestions. 226 // Sent when a form is previewed with Autofill suggestions.
222 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData) 227 IPC_MESSAGE_ROUTED0(AutofillHostMsg_DidPreviewAutofillFormData)
223 228
229 // Sent immediately after the renderer receives a ping IPC.
230 IPC_MESSAGE_ROUTED0(AutofillHostMsg_PingAck)
231
224 // Sent when a form is filled with Autofill suggestions. 232 // Sent when a form is filled with Autofill suggestions.
225 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData, 233 IPC_MESSAGE_ROUTED1(AutofillHostMsg_DidFillAutofillFormData,
226 base::TimeTicks /* timestamp */) 234 base::TimeTicks /* timestamp */)
227 235
228 // Sent when a form receives a request to do interactive autocomplete. 236 // Sent when a form receives a request to do interactive autocomplete.
229 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RequestAutocomplete, 237 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RequestAutocomplete,
230 autofill::FormData /* form_data */, 238 autofill::FormData /* form_data */,
231 GURL /* frame_url */) 239 GURL /* frame_url */)
232 240
233 // Sent when interactive autocomplete is cancelled (e.g. because the invoking 241 // Sent when interactive autocomplete is cancelled (e.g. because the invoking
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, 276 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions,
269 autofill::FormFieldData /* the form field */, 277 autofill::FormFieldData /* the form field */,
270 gfx::RectF /* input field bounds, window-relative */, 278 gfx::RectF /* input field bounds, window-relative */,
271 std::vector<base::string16> /* suggestions */, 279 std::vector<base::string16> /* suggestions */,
272 std::vector<base::string16> /* realms */) 280 std::vector<base::string16> /* realms */)
273 281
274 // Inform browser of data list values for the curent field. 282 // Inform browser of data list values for the curent field.
275 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, 283 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
276 std::vector<base::string16> /* values */, 284 std::vector<base::string16> /* values */,
277 std::vector<base::string16> /* labels */) 285 std::vector<base::string16> /* labels */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698