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

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: 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 WhitelistDownloadStatus {
ahutter 2013/04/16 17:56:54 Probably want to throw Autocheckout on the front o
benquan 2013/04/17 01:51:30 Done.
355 // The download was failed.
ahutter 2013/04/16 17:56:54 The download failed.
Ilya Sherman 2013/04/17 00:18:01 nit: This comment is almost verbatim identical to
benquan 2013/04/17 01:51:30 Done.
benquan 2013/04/17 05:48:18 Done.
356 WHITELIST_DOWNLOAD_FAILED,
ahutter 2013/04/16 17:56:54 Ditto about AUTOCHECKOUT
benquan 2013/04/17 01:51:30 Done.
357 // The download was succeeded.
ahutter 2013/04/16 17:56:54 The download was successful.
benquan 2013/04/17 01:51:30 Done.
358 WHITELIST_DOWNLOAD_SUCCEEDED,
ahutter 2013/04/16 17:56:54 ditto about AUTOCHECKOUT.
benquan 2013/04/17 01:51:30 Done.
359 };
360
353 AutofillMetrics(); 361 AutofillMetrics();
354 virtual ~AutofillMetrics(); 362 virtual ~AutofillMetrics();
355 363
356 // Logs how the user interacted with the Autocheckout bubble. 364 // Logs how the user interacted with the Autocheckout bubble.
357 virtual void LogAutocheckoutBubbleMetric(BubbleMetric metric) const; 365 virtual void LogAutocheckoutBubbleMetric(BubbleMetric metric) const;
358 366
359 // Logs the result of an Autocheckout buy flow. 367 // Logs the result of an Autocheckout buy flow.
360 virtual void LogAutocheckoutBuyFlowMetric( 368 virtual void LogAutocheckoutBuyFlowMetric(
361 AutocheckoutBuyFlowMetric metric) const; 369 AutocheckoutBuyFlowMetric metric) const;
362 370
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 436
429 // Logs |required_action| to the required actions histogram for |dialog_type|. 437 // Logs |required_action| to the required actions histogram for |dialog_type|.
430 virtual void LogWalletRequiredActionMetric( 438 virtual void LogWalletRequiredActionMetric(
431 autofill::DialogType dialog_type, 439 autofill::DialogType dialog_type,
432 WalletRequiredActionMetric required_action) const; 440 WalletRequiredActionMetric required_action) const;
433 441
434 virtual void LogAutocheckoutDuration( 442 virtual void LogAutocheckoutDuration(
435 const base::TimeDelta& duration, 443 const base::TimeDelta& duration,
436 AutocheckoutCompletionStatus status) const; 444 AutocheckoutCompletionStatus status) const;
437 445
446 virtual void LogAutocheckoutWhitelistDownloadDuration(
ahutter 2013/04/16 17:56:54 Docs.
benquan 2013/04/17 01:51:30 Done.
447 const base::TimeDelta& duration, WhitelistDownloadStatus status) const;
Ilya Sherman 2013/04/17 00:18:01 nit: One parameter per line, please, if they have
benquan 2013/04/17 01:51:30 Done.
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