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

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

Issue 10787023: Adding UMA stats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the test. Created 8 years, 5 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) 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 // 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 8
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "chrome/browser/ui/password_generation_status.h"
10 #include "content/public/common/webkit_param_traits.h" 11 #include "content/public/common/webkit_param_traits.h"
11 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
12 #include "ipc/ipc_message_utils.h" 13 #include "ipc/ipc_message_utils.h"
13 #include "ui/gfx/rect.h" 14 #include "ui/gfx/rect.h"
14 #include "webkit/forms/form_data.h" 15 #include "webkit/forms/form_data.h"
15 #include "webkit/forms/form_data_predictions.h" 16 #include "webkit/forms/form_data_predictions.h"
16 #include "webkit/forms/form_field.h" 17 #include "webkit/forms/form_field.h"
17 #include "webkit/forms/form_field_predictions.h" 18 #include "webkit/forms/form_field_predictions.h"
18 #include "webkit/forms/password_form.h" 19 #include "webkit/forms/password_form.h"
19 #include "webkit/forms/password_form_dom_manager.h" 20 #include "webkit/forms/password_form_dom_manager.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 IPC_STRUCT_TRAITS_MEMBER(experiment_id) 58 IPC_STRUCT_TRAITS_MEMBER(experiment_id)
58 IPC_STRUCT_TRAITS_MEMBER(fields) 59 IPC_STRUCT_TRAITS_MEMBER(fields)
59 IPC_STRUCT_TRAITS_END() 60 IPC_STRUCT_TRAITS_END()
60 61
61 IPC_STRUCT_TRAITS_BEGIN(webkit::forms::PasswordFormFillData) 62 IPC_STRUCT_TRAITS_BEGIN(webkit::forms::PasswordFormFillData)
62 IPC_STRUCT_TRAITS_MEMBER(basic_data) 63 IPC_STRUCT_TRAITS_MEMBER(basic_data)
63 IPC_STRUCT_TRAITS_MEMBER(additional_logins) 64 IPC_STRUCT_TRAITS_MEMBER(additional_logins)
64 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) 65 IPC_STRUCT_TRAITS_MEMBER(wait_for_username)
65 IPC_STRUCT_TRAITS_END() 66 IPC_STRUCT_TRAITS_END()
66 67
68 IPC_STRUCT_TRAITS_BEGIN(password_generation::PasswordGenerationStatus)
69 IPC_STRUCT_TRAITS_MEMBER(generated_password)
70 IPC_STRUCT_TRAITS_MEMBER(learn_more_visited)
71 IPC_STRUCT_TRAITS_MEMBER(password_accepted)
72 IPC_STRUCT_TRAITS_MEMBER(password_edited)
73 IPC_STRUCT_TRAITS_MEMBER(password_regenerated)
74 IPC_STRUCT_TRAITS_END()
75
67 // Autofill messages sent from the browser to the renderer. 76 // Autofill messages sent from the browser to the renderer.
68 77
69 // Reply to the AutofillHostMsg_QueryFormFieldAutofill message with the 78 // Reply to the AutofillHostMsg_QueryFormFieldAutofill message with the
70 // Autofill suggestions. 79 // Autofill suggestions.
71 IPC_MESSAGE_ROUTED5(AutofillMsg_SuggestionsReturned, 80 IPC_MESSAGE_ROUTED5(AutofillMsg_SuggestionsReturned,
72 int /* id of the request message */, 81 int /* id of the request message */,
73 std::vector<string16> /* names */, 82 std::vector<string16> /* names */,
74 std::vector<string16> /* labels */, 83 std::vector<string16> /* labels */,
75 std::vector<string16> /* icons */, 84 std::vector<string16> /* icons */,
76 std::vector<int> /* unique_ids */) 85 std::vector<int> /* unique_ids */)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Sets the currently selected node's value. 121 // Sets the currently selected node's value.
113 IPC_MESSAGE_ROUTED1(AutofillMsg_SetNodeText, 122 IPC_MESSAGE_ROUTED1(AutofillMsg_SetNodeText,
114 string16 /* new node text */) 123 string16 /* new node text */)
115 124
116 // Sets the currently selected node's value to be the given data list value. 125 // Sets the currently selected node's value to be the given data list value.
117 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptDataListSuggestion, 126 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptDataListSuggestion,
118 string16 /* accepted data list value */) 127 string16 /* accepted data list value */)
119 128
120 // Tells the renderer to populate the correct password fields with this 129 // Tells the renderer to populate the correct password fields with this
121 // generated password. 130 // generated password.
122 IPC_MESSAGE_ROUTED1(AutofillMsg_GeneratedPasswordAccepted, 131 IPC_MESSAGE_ROUTED1(AutofillMsg_PasswordGenerationBubbleClosed,
123 string16 /* generated_password */) 132 password_generation::PasswordGenerationStatus)
124 133
125 // Tells the renderer whether password generation is enabled. 134 // Tells the renderer whether password generation is enabled.
126 IPC_MESSAGE_ROUTED1(AutofillMsg_PasswordGenerationEnabled, 135 IPC_MESSAGE_ROUTED1(AutofillMsg_PasswordGenerationEnabled,
127 bool /* is_enabled */) 136 bool /* is_enabled */)
128 137
129 // Tells the renderer that the password field has accept the suggestion. 138 // Tells the renderer that the password field has accept the suggestion.
130 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion, 139 IPC_MESSAGE_ROUTED1(AutofillMsg_AcceptPasswordAutofillSuggestion,
131 string16 /* username value*/) 140 string16 /* username value*/)
132 141
133 // Tells the renderer that this password form is not blacklisted. A form can 142 // Tells the renderer that this password form is not blacklisted. A form can
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 webkit::forms::FormField /* the form field */, 234 webkit::forms::FormField /* the form field */,
226 gfx::Rect /* input field bounds, window-relative */, 235 gfx::Rect /* input field bounds, window-relative */,
227 std::vector<string16> /* suggestions */) 236 std::vector<string16> /* suggestions */)
228 237
229 // Inform browser of data list values for the curent field. 238 // Inform browser of data list values for the curent field.
230 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, 239 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList,
231 std::vector<string16> /* values */, 240 std::vector<string16> /* values */,
232 std::vector<string16> /* labels */, 241 std::vector<string16> /* labels */,
233 std::vector<string16> /* icons */, 242 std::vector<string16> /* icons */,
234 std::vector<int> /* unique ids */) 243 std::vector<int> /* unique ids */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698