OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 void HandleSaveOrUpdateRequiredActions( | 442 void HandleSaveOrUpdateRequiredActions( |
443 const std::vector<wallet::RequiredAction>& required_actions); | 443 const std::vector<wallet::RequiredAction>& required_actions); |
444 | 444 |
445 // Whether submission is currently waiting for |action| to be handled. | 445 // Whether submission is currently waiting for |action| to be handled. |
446 bool IsSubmitPausedOn(wallet::RequiredAction action) const; | 446 bool IsSubmitPausedOn(wallet::RequiredAction action) const; |
447 | 447 |
448 // Called when there's nothing left to accept, update, save, or authenticate | 448 // Called when there's nothing left to accept, update, save, or authenticate |
449 // in order to fill |form_structure_| and pass data back to the invoking page. | 449 // in order to fill |form_structure_| and pass data back to the invoking page. |
450 void FinishSubmit(); | 450 void FinishSubmit(); |
451 | 451 |
| 452 // Writes to prefs the choice of AutofillDataModel for |section|. |
| 453 void PersistAutofillChoice(DialogSection section, |
| 454 const std::string& guid, |
| 455 int variant); |
| 456 |
| 457 // Reads from prefs the choice of AutofillDataModel for |section|. If there is |
| 458 // no pref for this section, sets the outparams to default values. |
| 459 void GetAutofillChoice(DialogSection section, |
| 460 std::string* guid, |
| 461 int* variant); |
| 462 |
| 463 // Calculates which AutofillDataModel variant |model| is referring to. |
| 464 size_t GetSelectedVariantForModel(const SuggestionsMenuModel& model); |
| 465 |
452 // Logs metrics when the dialog is submitted. | 466 // Logs metrics when the dialog is submitted. |
453 void LogOnFinishSubmitMetrics(); | 467 void LogOnFinishSubmitMetrics(); |
454 | 468 |
455 // Logs metrics when the dialog is canceled. | 469 // Logs metrics when the dialog is canceled. |
456 void LogOnCancelMetrics(); | 470 void LogOnCancelMetrics(); |
457 | 471 |
458 // Logs metrics when the edit ui is shown for the given |section|. | 472 // Logs metrics when the edit ui is shown for the given |section|. |
459 void LogEditUiShownMetric(DialogSection section); | 473 void LogEditUiShownMetric(DialogSection section); |
460 | 474 |
461 // Logs metrics when a suggestion item from the given |model| is selected. | 475 // Logs metrics when a suggestion item from the given |model| is selected. |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 | 601 |
588 // Whether the latency to display to the UI was logged to UMA yet. | 602 // Whether the latency to display to the UI was logged to UMA yet. |
589 bool was_ui_latency_logged_; | 603 bool was_ui_latency_logged_; |
590 | 604 |
591 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 605 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
592 }; | 606 }; |
593 | 607 |
594 } // namespace autofill | 608 } // namespace autofill |
595 | 609 |
596 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 610 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
OLD | NEW |