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

Side by Side Diff: chrome/browser/autofill/test_autofill_manager_delegate.h

Issue 12378055: Make autofill stop depending on InfoBarService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 7 years, 9 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 6 #define CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/autofill/autofill_manager_delegate.h" 9 #include "chrome/browser/autofill/autofill_manager_delegate.h"
10 10
11 namespace autofill { 11 namespace autofill {
12 12
13 // This class is only for easier writing of testings. All pure virtual functions 13 // This class is only for easier writing of testings. All pure virtual functions
14 // have been giving empty methods. 14 // have been giving empty methods.
15 class TestAutofillManagerDelegate : public AutofillManagerDelegate { 15 class TestAutofillManagerDelegate : public AutofillManagerDelegate {
16 public: 16 public:
17 TestAutofillManagerDelegate(); 17 TestAutofillManagerDelegate();
18 virtual ~TestAutofillManagerDelegate(); 18 virtual ~TestAutofillManagerDelegate();
19 19
20 // AutofillManagerDelegate implementation. 20 // AutofillManagerDelegate implementation.
21 virtual InfoBarService* GetInfoBarService() OVERRIDE;
22 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE; 21 virtual PersonalDataManager* GetPersonalDataManager() OVERRIDE;
23 virtual PrefService* GetPrefs() OVERRIDE; 22 virtual PrefService* GetPrefs() OVERRIDE;
24 virtual void HideRequestAutocompleteDialog() OVERRIDE; 23 virtual void HideRequestAutocompleteDialog() OVERRIDE;
25 virtual bool IsSavingPasswordsEnabled() const OVERRIDE; 24 virtual bool IsSavingPasswordsEnabled() const OVERRIDE;
26 virtual bool IsPasswordSyncEnabled() const OVERRIDE; 25 virtual bool IsPasswordSyncEnabled() const OVERRIDE;
27 virtual void SetSyncStateChangedCallback( 26 virtual void SetSyncStateChangedCallback(
28 const base::Closure& callback) OVERRIDE; 27 const base::Closure& callback) OVERRIDE;
29 virtual void OnAutocheckoutError() OVERRIDE; 28 virtual void OnAutocheckoutError() OVERRIDE;
30 virtual void ShowAutofillSettings() OVERRIDE; 29 virtual void ShowAutofillSettings() OVERRIDE;
30 virtual void ConfirmSaveCreditCard(
31 const AutofillMetrics& metric_logger,
32 const CreditCard& credit_card,
33 const base::Closure& save_card_callback) OVERRIDE;
31 virtual void ShowPasswordGenerationBubble( 34 virtual void ShowPasswordGenerationBubble(
32 const gfx::Rect& bounds, 35 const gfx::Rect& bounds,
33 const content::PasswordForm& form, 36 const content::PasswordForm& form,
34 autofill::PasswordGenerator* generator) OVERRIDE; 37 autofill::PasswordGenerator* generator) OVERRIDE;
35 virtual void ShowAutocheckoutBubble( 38 virtual void ShowAutocheckoutBubble(
36 const gfx::RectF& bounding_box, 39 const gfx::RectF& bounding_box,
37 const gfx::NativeView& native_view, 40 const gfx::NativeView& native_view,
38 const base::Closure& callback) OVERRIDE; 41 const base::Closure& callback) OVERRIDE;
39 virtual void ShowRequestAutocompleteDialog( 42 virtual void ShowRequestAutocompleteDialog(
40 const FormData& form, 43 const FormData& form,
(...skipping 12 matching lines...) Expand all
53 virtual void HideAutofillPopup() OVERRIDE; 56 virtual void HideAutofillPopup() OVERRIDE;
54 virtual void UpdateProgressBar(double value) OVERRIDE; 57 virtual void UpdateProgressBar(double value) OVERRIDE;
55 58
56 private: 59 private:
57 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate); 60 DISALLOW_COPY_AND_ASSIGN(TestAutofillManagerDelegate);
58 }; 61 };
59 62
60 } // namespace autofill 63 } // namespace autofill
61 64
62 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_ 65 #endif // CHROME_BROWSER_AUTOFILL_TEST_AUTOFILL_MANAGER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698