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

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

Issue 23537014: rAc: Get rid of dialog type in rAc, there is only one type left now. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 ServerFieldType field_type, 340 ServerFieldType field_type,
341 const std::string& experiment_id) const; 341 const std::string& experiment_id) const;
342 342
343 virtual void LogQualityMetric(QualityMetric metric, 343 virtual void LogQualityMetric(QualityMetric metric,
344 const std::string& experiment_id) const; 344 const std::string& experiment_id) const;
345 345
346 virtual void LogServerQueryMetric(ServerQueryMetric metric) const; 346 virtual void LogServerQueryMetric(ServerQueryMetric metric) const;
347 347
348 virtual void LogUserHappinessMetric(UserHappinessMetric metric) const; 348 virtual void LogUserHappinessMetric(UserHappinessMetric metric) const;
349 349
350 // Logs |state| to the dismissal states histogram for |dialog_type|. 350 // Logs |state| to the dismissal states histogram.
351 virtual void LogDialogDismissalState(autofill::DialogType dialog_type, 351 virtual void LogDialogDismissalState(DialogDismissalState state) const;
352 DialogDismissalState state) const;
353 352
354 // This should be called as soon as the user's signed-in status and Wallet 353 // This should be called as soon as the user's signed-in status and Wallet
355 // item count is known. Records that a user starting out in |user_state| is 354 // item count is known. Records that a user starting out in |user_state| is
356 // interacting with a dialog of |dialog_type|. 355 // interacting with a dialog.
357 virtual void LogDialogInitialUserState( 356 virtual void LogDialogInitialUserState(
358 autofill::DialogType dialog_type,
359 DialogInitialUserStateMetric user_type) const; 357 DialogInitialUserStateMetric user_type) const;
360 358
361 // Logs the time elapsed between the dialog being shown for |dialog_type| and 359 // Logs the time elapsed between the dialog being shown and when it is ready
362 // when it is ready for user interaction. 360 // for user interaction.
363 virtual void LogDialogLatencyToShow(autofill::DialogType dialog_type, 361 virtual void LogDialogLatencyToShow(const base::TimeDelta& duration) const;
364 const base::TimeDelta& duration) const;
365 362
366 // Logs |event| to the popup events histogram for |dialog_type|. 363 // Logs |event| to the popup events histogram.
367 virtual void LogDialogPopupEvent(autofill::DialogType dialog_type, 364 virtual void LogDialogPopupEvent(DialogPopupEvent event) const;
368 DialogPopupEvent event) const;
369 365
370 // Logs |metric| to the security metrics histogram for |dialog_type|. 366 // Logs |metric| to the security metrics histogram.
371 virtual void LogDialogSecurityMetric(autofill::DialogType dialog_type, 367 virtual void LogDialogSecurityMetric(DialogSecurityMetric metric) const;
372 DialogSecurityMetric metric) const;
373 368
374 // This should be called when the Autofill dialog, invoked by a dialog of type 369 // This should be called when the Autofill dialog is closed. |duration|
375 // |dialog_type|, is closed. |duration| should be the time elapsed between 370 // should be the time elapsed between the dialog being shown and it being
376 // the dialog being shown and it being closed. |dismissal_action| should 371 // closed. |dismissal_action| should indicate whether the user dismissed
377 // indicate whether the user dismissed the dialog by submitting the form data 372 // the dialog by submitting the form data or by canceling.
378 // or by canceling.
379 virtual void LogDialogUiDuration( 373 virtual void LogDialogUiDuration(
380 const base::TimeDelta& duration, 374 const base::TimeDelta& duration,
381 autofill::DialogType dialog_type,
382 DialogDismissalAction dismissal_action) const; 375 DialogDismissalAction dismissal_action) const;
383 376
384 // Logs |event| to the UI events histogram for |dialog_type|. 377 // Logs |event| to the UI events histogram.
385 virtual void LogDialogUiEvent(autofill::DialogType dialog_type, 378 virtual void LogDialogUiEvent(DialogUiEvent event) const;
386 DialogUiEvent event) const;
387 379
388 // Logs |metric| to the Wallet errors histogram for |dialog_type|. 380 // Logs |metric| to the Wallet errors histogram.
389 virtual void LogWalletErrorMetric(autofill::DialogType dialog_type, 381 virtual void LogWalletErrorMetric(WalletErrorMetric metric) const;
390 WalletErrorMetric metric) const;
391 382
392 // Logs the network request time of Wallet API calls. 383 // Logs the network request time of Wallet API calls.
393 virtual void LogWalletApiCallDuration( 384 virtual void LogWalletApiCallDuration(
394 WalletApiCallMetric metric, 385 WalletApiCallMetric metric,
395 const base::TimeDelta& duration) const; 386 const base::TimeDelta& duration) const;
396 387
397 // Logs |required_action| to the required actions histogram for |dialog_type|. 388 // Logs |required_action| to the required actions histogram.
398 virtual void LogWalletRequiredActionMetric( 389 virtual void LogWalletRequiredActionMetric(
399 autofill::DialogType dialog_type,
400 WalletRequiredActionMetric required_action) const; 390 WalletRequiredActionMetric required_action) const;
401 391
402 // This should be called when a form that has been Autofilled is submitted. 392 // This should be called when a form that has been Autofilled is submitted.
403 // |duration| should be the time elapsed between form load and submission. 393 // |duration| should be the time elapsed between form load and submission.
404 virtual void LogFormFillDurationFromLoadWithAutofill( 394 virtual void LogFormFillDurationFromLoadWithAutofill(
405 const base::TimeDelta& duration) const; 395 const base::TimeDelta& duration) const;
406 396
407 // This should be called when a fillable form that has not been Autofilled is 397 // This should be called when a fillable form that has not been Autofilled is
408 // submitted. |duration| should be the time elapsed between form load and 398 // submitted. |duration| should be the time elapsed between form load and
409 // submission. 399 // submission.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 virtual void LogServerExperimentIdForUpload( 433 virtual void LogServerExperimentIdForUpload(
444 const std::string& experiment_id) const; 434 const std::string& experiment_id) const;
445 435
446 private: 436 private:
447 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics); 437 DISALLOW_COPY_AND_ASSIGN(AutofillMetrics);
448 }; 438 };
449 439
450 } // namespace autofill 440 } // namespace autofill
451 441
452 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_ 442 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_METRICS_H_
OLDNEW
« no previous file with comments | « components/autofill/core/browser/autofill_manager_unittest.cc ('k') | components/autofill/core/browser/autofill_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698