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

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

Issue 2144653002: [Autofill] Log whether queried credit card form context is secure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 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
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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 639
640 // This should be called when parsing each form. 640 // This should be called when parsing each form.
641 static void LogParseFormTiming(const base::TimeDelta& duration); 641 static void LogParseFormTiming(const base::TimeDelta& duration);
642 642
643 // Log how many profiles were considered for the deduplication process. 643 // Log how many profiles were considered for the deduplication process.
644 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered); 644 static void LogNumberOfProfilesConsideredForDedupe(size_t num_considered);
645 645
646 // Log how many profiles were removed as part of the deduplication process. 646 // Log how many profiles were removed as part of the deduplication process.
647 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed); 647 static void LogNumberOfProfilesRemovedDuringDedupe(size_t num_removed);
648 648
649 // Log whether the Autofill query on a credit card form is made in a secure
650 // context.
651 static void LogIsQueriedCreditCardFormSecure(bool is_secure);
652
649 // Utility to autofill form events in the relevant histograms depending on 653 // Utility to autofill form events in the relevant histograms depending on
650 // the presence of server and/or local data. 654 // the presence of server and/or local data.
651 class FormEventLogger { 655 class FormEventLogger {
652 public: 656 public:
653 FormEventLogger(bool is_for_credit_card); 657 FormEventLogger(bool is_for_credit_card);
654 658
655 inline void set_is_server_data_available(bool is_server_data_available) { 659 inline void set_is_server_data_available(bool is_server_data_available) {
656 is_server_data_available_ = is_server_data_available; 660 is_server_data_available_ = is_server_data_available;
657 } 661 }
658 662
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 FormFieldData last_polled_field_; 701 FormFieldData last_polled_field_;
698 }; 702 };
699 703
700 private: 704 private:
701 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics); 705 DISALLOW_IMPLICIT_CONSTRUCTORS(AutofillMetrics);
702 }; 706 };
703 707
704 } // namespace autofill 708 } // namespace autofill
705 709
706 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 710 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager.cc ('k') | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698