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

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

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 #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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 ServerFieldType field_type, 526 ServerFieldType field_type,
527 bool observed_submission); 527 bool observed_submission);
528 static void LogServerTypePrediction(FieldTypeQualityMetric metric, 528 static void LogServerTypePrediction(FieldTypeQualityMetric metric,
529 ServerFieldType field_type, 529 ServerFieldType field_type,
530 bool observed_submission); 530 bool observed_submission);
531 531
532 static void LogServerQueryMetric(ServerQueryMetric metric); 532 static void LogServerQueryMetric(ServerQueryMetric metric);
533 533
534 static void LogUserHappinessMetric(UserHappinessMetric metric); 534 static void LogUserHappinessMetric(UserHappinessMetric metric);
535 535
536 // Logs |state| to the dismissal states histogram.
537 static void LogDialogDismissalState(DialogDismissalState state);
538
539 // This should be called as soon as the user's signed-in status and Wallet
540 // item count is known. Records that a user starting out in |user_state| is
541 // interacting with a dialog.
542 static void LogDialogInitialUserState(DialogInitialUserStateMetric user_type);
543
544 // Logs the time elapsed between the dialog being shown and when it is ready
545 // for user interaction.
546 static void LogDialogLatencyToShow(const base::TimeDelta& duration);
547
548 // Logs |event| to the popup events histogram.
549 static void LogDialogPopupEvent(DialogPopupEvent event);
550
551 // Logs |metric| to the security metrics histogram.
552 static void LogDialogSecurityMetric(DialogSecurityMetric metric);
553
554 // This should be called when the Autofill dialog is closed. |duration|
555 // should be the time elapsed between the dialog being shown and it being
556 // closed. |dismissal_action| should indicate whether the user dismissed
557 // the dialog by submitting the form data or by canceling.
558 static void LogDialogUiDuration(const base::TimeDelta& duration,
559 DialogDismissalAction dismissal_action);
560
561 // Logs |event| to the UI events histogram.
562 static void LogDialogUiEvent(DialogUiEvent event);
563
564 // Logs |event| to the unmask prompt events histogram. 536 // Logs |event| to the unmask prompt events histogram.
565 static void LogUnmaskPromptEvent(UnmaskPromptEvent event); 537 static void LogUnmaskPromptEvent(UnmaskPromptEvent event);
566 538
567 // Logs the time elapsed between the unmask prompt being shown and it 539 // Logs the time elapsed between the unmask prompt being shown and it
568 // being closed. 540 // being closed.
569 static void LogUnmaskPromptEventDuration(const base::TimeDelta& duration, 541 static void LogUnmaskPromptEventDuration(const base::TimeDelta& duration,
570 UnmaskPromptEvent close_event); 542 UnmaskPromptEvent close_event);
571 543
572 // Logs the time elapsed between the user clicking Verify and 544 // Logs the time elapsed between the user clicking Verify and
573 // hitting cancel when abandoning a pending unmasking operation 545 // hitting cancel when abandoning a pending unmasking operation
574 // (aka GetRealPan). 546 // (aka GetRealPan).
575 static void LogTimeBeforeAbandonUnmasking(const base::TimeDelta& duration); 547 static void LogTimeBeforeAbandonUnmasking(const base::TimeDelta& duration);
576 548
577 // Logs |result| to the get real pan result histogram. 549 // Logs |result| to the get real pan result histogram.
578 static void LogRealPanResult(AutofillClient::PaymentsRpcResult result); 550 static void LogRealPanResult(AutofillClient::PaymentsRpcResult result);
579 551
580 // Logs |result| to duration of the GetRealPan RPC. 552 // Logs |result| to duration of the GetRealPan RPC.
581 static void LogRealPanDuration(const base::TimeDelta& duration, 553 static void LogRealPanDuration(const base::TimeDelta& duration,
582 AutofillClient::PaymentsRpcResult result); 554 AutofillClient::PaymentsRpcResult result);
583 555
584 // Logs |result| to the get real pan result histogram. 556 // Logs |result| to the get real pan result histogram.
585 static void LogUnmaskingDuration(const base::TimeDelta& duration, 557 static void LogUnmaskingDuration(const base::TimeDelta& duration,
586 AutofillClient::PaymentsRpcResult result); 558 AutofillClient::PaymentsRpcResult result);
587 559
588 // Logs |metric| to the Wallet errors histogram.
589 static void LogWalletErrorMetric(WalletErrorMetric metric);
590
591 // Logs the network request time of Wallet API calls.
592 static void LogWalletApiCallDuration(WalletApiCallMetric metric,
593 const base::TimeDelta& duration);
594
595 // Logs that the Wallet API call corresponding to |metric| was malformed.
596 static void LogWalletMalformedResponseMetric(WalletApiCallMetric metric);
597
598 // Logs |required_action| to the required actions histogram.
599 static void LogWalletRequiredActionMetric(
600 WalletRequiredActionMetric required_action);
601
602 // Logs HTTP response codes recieved by wallet client.
603 static void LogWalletResponseCode(int response_code);
604
605 // This should be called when a form that has been Autofilled is submitted. 560 // This should be called when a form that has been Autofilled is submitted.
606 // |duration| should be the time elapsed between form load and submission. 561 // |duration| should be the time elapsed between form load and submission.
607 static void LogFormFillDurationFromLoadWithAutofill( 562 static void LogFormFillDurationFromLoadWithAutofill(
608 const base::TimeDelta& duration); 563 const base::TimeDelta& duration);
609 564
610 // This should be called when a fillable form that has not been Autofilled is 565 // This should be called when a fillable form that has not been Autofilled is
611 // submitted. |duration| should be the time elapsed between form load and 566 // submitted. |duration| should be the time elapsed between form load and
612 // submission. 567 // submission.
613 static void LogFormFillDurationFromLoadWithoutAutofill( 568 static void LogFormFillDurationFromLoadWithoutAutofill(
614 const base::TimeDelta& duration); 569 const base::TimeDelta& duration);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 bool logged_suggestion_filled_was_masked_server_card_; 680 bool logged_suggestion_filled_was_masked_server_card_;
726 }; 681 };
727 682
728 private: 683 private:
729 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 684 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
730 }; 685 };
731 686
732 } // namespace autofill 687 } // namespace autofill
733 688
734 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 689 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.h ('k') | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698