| 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 <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/gtest_prod_util.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 15 #include "base/time.h" | 16 #include "base/time.h" |
| 16 #include "chrome/browser/ui/autofill/account_chooser_model.h" | 17 #include "chrome/browser/ui/autofill/account_chooser_model.h" |
| 17 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" | 18 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h" |
| 18 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" | 19 #include "chrome/browser/ui/autofill/autofill_dialog_models.h" |
| 19 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 20 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| 20 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" | 21 #include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h" |
| 21 #include "chrome/browser/ui/autofill/country_combobox_model.h" | 22 #include "chrome/browser/ui/autofill/country_combobox_model.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 virtual void OpenTabWithUrl(const GURL& url); | 281 virtual void OpenTabWithUrl(const GURL& url); |
| 281 | 282 |
| 282 // Whether |section| was sent into edit mode based on existing data. This | 283 // Whether |section| was sent into edit mode based on existing data. This |
| 283 // happens when a user clicks "Edit" or a suggestion is invalid. | 284 // happens when a user clicks "Edit" or a suggestion is invalid. |
| 284 virtual bool IsEditingExistingData(DialogSection section) const; | 285 virtual bool IsEditingExistingData(DialogSection section) const; |
| 285 | 286 |
| 286 // Should be called on the Wallet sign-in error. | 287 // Should be called on the Wallet sign-in error. |
| 287 virtual void OnWalletSigninError(); | 288 virtual void OnWalletSigninError(); |
| 288 | 289 |
| 289 private: | 290 private: |
| 291 FRIEND_TEST_ALL_PREFIXES(AutofillDialogControllerTest, ErrorReasonInvalid); |
| 292 |
| 290 // Whether or not the current request wants credit info back. | 293 // Whether or not the current request wants credit info back. |
| 291 bool RequestingCreditCardInfo() const; | 294 bool RequestingCreditCardInfo() const; |
| 292 | 295 |
| 293 // Whether the information input in this dialog will be securely transmitted | 296 // Whether the information input in this dialog will be securely transmitted |
| 294 // to the requesting site. | 297 // to the requesting site. |
| 295 bool TransmissionWillBeSecure() const; | 298 bool TransmissionWillBeSecure() const; |
| 296 | 299 |
| 297 // Initializes |suggested_email_| et al. | 300 // Initializes |suggested_email_| et al. |
| 298 void SuggestionsUpdated(); | 301 void SuggestionsUpdated(); |
| 299 | 302 |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 | 668 |
| 666 // Whether the latency to display to the UI was logged to UMA yet. | 669 // Whether the latency to display to the UI was logged to UMA yet. |
| 667 bool was_ui_latency_logged_; | 670 bool was_ui_latency_logged_; |
| 668 | 671 |
| 669 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); | 672 DISALLOW_COPY_AND_ASSIGN(AutofillDialogControllerImpl); |
| 670 }; | 673 }; |
| 671 | 674 |
| 672 } // namespace autofill | 675 } // namespace autofill |
| 673 | 676 |
| 674 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ | 677 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_CONTROLLER_IMPL_H_ |
| OLD | NEW |