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

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

Issue 14060013: Add UMA stats to track whitelist download latency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename variables and update comments. Created 7 years, 8 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_AUTOFILL_METRICS_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 ACCEPT_TOS, 343 ACCEPT_TOS,
344 UPDATE_EXPIRATION_DATE, 344 UPDATE_EXPIRATION_DATE,
345 UPGRADE_MIN_ADDRESS, 345 UPGRADE_MIN_ADDRESS,
346 CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS, 346 CHOOSE_ANOTHER_INSTRUMENT_OR_ADDRESS,
347 VERIFY_CVV, 347 VERIFY_CVV,
348 INVALID_FORM_FIELD, 348 INVALID_FORM_FIELD,
349 REQUIRE_PHONE_NUMBER, 349 REQUIRE_PHONE_NUMBER,
350 NUM_WALLET_REQUIRED_ACTIONS 350 NUM_WALLET_REQUIRED_ACTIONS
351 }; 351 };
352 352
353 // The success or failure of downloading Autocheckout whitelist file.
354 enum AutocheckoutWhitelistDownloadStatus {
355 AUTOCHECKOUT_WHITELIST_DOWNLOAD_FAILED,
356 AUTOCHECKOUT_WHITELIST_DOWNLOAD_SUCCEEDED,
357 };
358
353 AutofillMetrics(); 359 AutofillMetrics();
354 virtual ~AutofillMetrics(); 360 virtual ~AutofillMetrics();
355 361
356 // Logs how the user interacted with the Autocheckout bubble. 362 // Logs how the user interacted with the Autocheckout bubble.
357 virtual void LogAutocheckoutBubbleMetric(BubbleMetric metric) const; 363 virtual void LogAutocheckoutBubbleMetric(BubbleMetric metric) const;
358 364
359 // Logs the result of an Autocheckout buy flow. 365 // Logs the result of an Autocheckout buy flow.
360 virtual void LogAutocheckoutBuyFlowMetric( 366 virtual void LogAutocheckoutBuyFlowMetric(
361 AutocheckoutBuyFlowMetric metric) const; 367 AutocheckoutBuyFlowMetric metric) const;
362 368
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 434
429 // Logs |required_action| to the required actions histogram for |dialog_type|. 435 // Logs |required_action| to the required actions histogram for |dialog_type|.
430 virtual void LogWalletRequiredActionMetric( 436 virtual void LogWalletRequiredActionMetric(
431 autofill::DialogType dialog_type, 437 autofill::DialogType dialog_type,
432 WalletRequiredActionMetric required_action) const; 438 WalletRequiredActionMetric required_action) const;
433 439
434 virtual void LogAutocheckoutDuration( 440 virtual void LogAutocheckoutDuration(
435 const base::TimeDelta& duration, 441 const base::TimeDelta& duration,
436 AutocheckoutCompletionStatus status) const; 442 AutocheckoutCompletionStatus status) const;
437 443
444 // Logs the time taken to download Autocheckout whitelist file.
445 virtual void LogAutocheckoutWhitelistDownloadDuration(
446 const base::TimeDelta& duration,
447 AutocheckoutWhitelistDownloadStatus status) const;
448
438 // This should be called when a form that has been Autofilled is submitted. 449 // This should be called when a form that has been Autofilled is submitted.
439 // |duration| should be the time elapsed between form load and submission. 450 // |duration| should be the time elapsed between form load and submission.
440 virtual void LogFormFillDurationFromLoadWithAutofill( 451 virtual void LogFormFillDurationFromLoadWithAutofill(
441 const base::TimeDelta& duration) const; 452 const base::TimeDelta& duration) const;
442 453
443 // This should be called when a fillable form that has not been Autofilled is 454 // This should be called when a fillable form that has not been Autofilled is
444 // submitted. |duration| should be the time elapsed between form load and 455 // submitted. |duration| should be the time elapsed between form load and
445 // submission. 456 // submission.
446 virtual void LogFormFillDurationFromLoadWithoutAutofill( 457 virtual void LogFormFillDurationFromLoadWithoutAutofill(
447 const base::TimeDelta& duration) const; 458 const base::TimeDelta& duration) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 virtual void LogServerExperimentIdForUpload( 490 virtual void LogServerExperimentIdForUpload(
480 const std::string& experiment_id) const; 491 const std::string& experiment_id) const;
481 492
482 private: 493 private:
483 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); 494 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics);
484 }; 495 };
485 496
486 } // namespace autofill 497 } // namespace autofill
487 498
488 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_ 499 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698