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

Side by Side Diff: components/autofill/core/browser/autofill_metrics.h

Issue 2575263002: [Autofill] Add a new metric for upstream. (Closed)
Patch Set: Added all the unit tests. Created 4 years 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 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 FORM_EVENT_SERVER_SUGGESTION_FILLED, 356 FORM_EVENT_SERVER_SUGGESTION_FILLED,
357 // A masked server card suggestion was used to fill the form. 357 // A masked server card suggestion was used to fill the form.
358 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_FILLED, 358 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_FILLED,
359 // A suggestion was used to fill the form. The origin type (local or server 359 // A suggestion was used to fill the form. The origin type (local or server
360 // or masked server card) of the first selected within a page load will 360 // or masked server card) of the first selected within a page load will
361 // determine which of the following two will be fired. 361 // determine which of the following two will be fired.
362 FORM_EVENT_LOCAL_SUGGESTION_FILLED_ONCE, 362 FORM_EVENT_LOCAL_SUGGESTION_FILLED_ONCE,
363 FORM_EVENT_SERVER_SUGGESTION_FILLED_ONCE, 363 FORM_EVENT_SERVER_SUGGESTION_FILLED_ONCE,
364 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_FILLED_ONCE, 364 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_FILLED_ONCE,
365 // A form was submitted. Depending on the user filling a local, server, 365 // A form was submitted. Depending on the user filling a local, server,
366 // masked server card or no suggestion one of the following will be 366 // masked server card or suggestion shown or no suggestion filled one of the
367 // triggered. Only one of the following four will be triggered per page 367 // following will be triggered. Only one of the following four will be
368 // load. 368 // triggered per page load.
369 FORM_EVENT_SUGGESTION_SHOWN_SUBMITTED_ONCE,
Jared Saul 2016/12/15 21:30:26 FORM_EVENT_SUGGESTION_SHOWN_SUBMITTED_ONCE shouldn
Shanfeng 2016/12/15 21:59:03 Done.
369 FORM_EVENT_NO_SUGGESTION_SUBMITTED_ONCE, 370 FORM_EVENT_NO_SUGGESTION_SUBMITTED_ONCE,
370 FORM_EVENT_LOCAL_SUGGESTION_SUBMITTED_ONCE, 371 FORM_EVENT_LOCAL_SUGGESTION_SUBMITTED_ONCE,
371 FORM_EVENT_SERVER_SUGGESTION_SUBMITTED_ONCE, 372 FORM_EVENT_SERVER_SUGGESTION_SUBMITTED_ONCE,
372 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SUBMITTED_ONCE, 373 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SUBMITTED_ONCE,
373 // A masked server card suggestion was selected to fill the form. 374 // A masked server card suggestion was selected to fill the form.
374 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SELECTED, 375 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SELECTED,
375 // Same as above but only triggered once per page load. 376 // Same as above but only triggered once per page load.
376 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SELECTED_ONCE, 377 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_SELECTED_ONCE,
377 // An autofillable form is about to be submitted. If the submission is not 378 // An autofillable form is about to be submitted. If the submission is not
378 // interrupted by JavaScript, the "form submitted" events above will also be 379 // interrupted by JavaScript, the "form submitted" events above will also be
379 // logged. Depending on the user filling a local, server, masked server card 380 // logged. Depending on the user filling a local, server, masked server card
380 // or no suggestion one of the following will be triggered, at most once per 381 // or suggestion shown or no suggestion filled one of the following will be
381 // page load. 382 // triggered, at most once per page load.
383 FORM_EVENT_SUGGESTION_SHOWN_WILL_SUBMIT_ONCE,
Jared Saul 2016/12/15 21:30:26 ditto
Shanfeng 2016/12/15 21:59:03 Done.
382 FORM_EVENT_NO_SUGGESTION_WILL_SUBMIT_ONCE, 384 FORM_EVENT_NO_SUGGESTION_WILL_SUBMIT_ONCE,
383 FORM_EVENT_LOCAL_SUGGESTION_WILL_SUBMIT_ONCE, 385 FORM_EVENT_LOCAL_SUGGESTION_WILL_SUBMIT_ONCE,
384 FORM_EVENT_SERVER_SUGGESTION_WILL_SUBMIT_ONCE, 386 FORM_EVENT_SERVER_SUGGESTION_WILL_SUBMIT_ONCE,
385 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_WILL_SUBMIT_ONCE, 387 FORM_EVENT_MASKED_SERVER_CARD_SUGGESTION_WILL_SUBMIT_ONCE,
386 388
387 NUM_FORM_EVENTS, 389 NUM_FORM_EVENTS,
388 }; 390 };
389 391
390 // Events related to the Unmask Credit Card Prompt. 392 // Events related to the Unmask Credit Card Prompt.
391 enum UnmaskPromptEvent { 393 enum UnmaskPromptEvent {
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 FormFieldData last_polled_field_; 709 FormFieldData last_polled_field_;
708 }; 710 };
709 711
710 private: 712 private:
711 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 713 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
712 }; 714 };
713 715
714 } // namespace autofill 716 } // namespace autofill
715 717
716 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 718 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_metrics.cc » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698